Issue with php variables inline with HTML Code
Posted: Wed Oct 14, 2009 6:18 pm
My Code is...
My Result is...
If I try to use the same variable with HTML code
My Code is...
I can't for the life of me figure out why it displays two different ways.
Code: Select all
<?php
$b = 1;
echo $save[$b][name];
?>
Code: Select all
Displays the correct value
My Code is...
Code: Select all
<?php
$b = 1;
echo"<table><tr><td>$save[$b][name]</td></tr></table>";
?>
Code: Select all
Displays array[name]