| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Echo not working as expected.|
Driving me crazy
I have a script that is a mixture of php and html code. I have a variable that is pulled from a database using the following query
SELECT city FROM geo where id=1234
If I echo the result out in the php portion of the script using
The result is echoed fine, however if I try to echo it out in the html part of the script using the following
<p><?php echo $row['city'];?></p>
No result is returned.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved