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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php