| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|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.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved