Micro Sniff
New member
I have the following part of a PHP code below.
echo '<table width="400" border="1" cellspacing="0" cellpadding="3"><tr><td width="30%">echo $rows['name'];</td><td width="30%">echo $rows['lastname'];</td><td width="30%">echo $rows['email'];</td></tr></table>';
I am trying to echo a row from a database, but it's not working. How can I echo the $row variable in the code?
@jason
I tried something like that except with a ' instead of a " So I will try that.
echo '<table width="400" border="1" cellspacing="0" cellpadding="3"><tr><td width="30%">echo $rows['name'];</td><td width="30%">echo $rows['lastname'];</td><td width="30%">echo $rows['email'];</td></tr></table>';
I am trying to echo a row from a database, but it's not working. How can I echo the $row variable in the code?
@jason
I tried something like that except with a ' instead of a " So I will try that.