RE: [PHP] Sending data in table, multiple rows, via mail()

From: Date: Tue, 09 Jul 2002 11:19:53 +0000
Subject: RE: [PHP] Sending data in table, multiple rows, via mail()
Groups: php.general 
Request: Send a blank email to php-general+get-106334@lists.php.net to get a copy of this message
This bit looks kind of wierd. Don't know if it even should be possible to do like that... > $realcontent=" > > if ($myrow = mysql_fetch_array($result)) { > do { > > > $myrow[pid]<br> > $myrow[nm]<br> > $myrow[q]<br> > > > } while ($myrow = mysql_fetch_array($result)); > } > > "; You might wanna do like this instead: $realcontent = ""; while ($myrow = mysql_fetch_array($result)) { $realcontent .= "$myrow['pid']<br>"; $realcontent .= "$myrow['nm']<br>"; $realcontent .= "$myrow['q']<br>"; } Regards Joakim Andersson

« previous php.general (#106334) next »