Looping within a string?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
 

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux