| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Subscribe and Support WebmasterWorld|
|Echo not working as expected.|
Driving me crazy
| 4:29 pm on Mar 11, 2008 (gmt 0)|
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.
© Webmaster World 1996-2013 all rights reserved