Looping within a string?

From: Date: Fri, 17 Dec 2004 02:33:37 +0000
Subject: Looping within a string?
Groups: php.db 
Request: Send a blank email to php-db+get-37727@lists.php.net to get a copy of this message
Hi there everyone, I’m having to send an email with looped results, but I’m having problems. I can send an email no problem, and this code works OUTSIDE of the string, but not inside, can anyone see what is going wrong? <? $stringexample = ‘$sqlc = "SELECT * FROM products_temp"; $sql_resultc = mysql_query($sqlc,$connection); while ($row = mysql_fetch_array($sql_resultc)) { $idupdate = $row["id"]; ?> <? $idupdate; }; The connection is defined outside of the string at the top of the page. Thank you. Chris ?>’; --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.816 / Virus Database: 554 - Release Date: 12/14/2004

« previous php.db (#37727) next »