Hey
The code below is printing the variables name instead of it value...
Any help please 🙂
<code> <?php if ($row_rsSanna['status'] == "1") { echo '<td width="15%" bgcolor="#00CC00"><div align="center">available</div></td><td width="15%"><div align="center">$row_rsSanna[price]</div></td>'; } else { bla bla } ?> </code>
Review the difference between single-quoted and doublequoted strings. You are using single quotes and reaping what you sow.
strings
thanks very much, I nearly got there b4 I posted here, just forgot the spaces...
i had
bla bla align="center">'.$row_rsSanna[price].'</div></td>';
instead of....
bla bla align="center">' . $row_rsSanna[price] . '</div></td>';