Niel Archer napsal(a):
Your variable value is not being inserted because you have used single
quotes for the echo, not double quotes as the nabble example does.
Special characters and variables are only interpreted in double quotes,
they are treated literally in single quotes.
--
Niel Archer
Your variable value is not being inserted because you have used single
quotes for the echo, not double quotes as the nabble example does.
Special characters and variables are only interpreted in double quotes,
they are treated literally in single quotes.
--
Niel Archer
--
PHP Database Mailing L
echo("");
Change to
echo"htmlspecialchars($rows[0], ENT_QUOTES) . "\">";
So html characters like > and < won't be interpreted by the browser.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.p
> Date: Wed, 26 Sep 2007 09:33:40 -0700
> From: [EMAIL PROTECTED]
> echo(" value=$rows[0]>");
If what you want rendered in html should have quotes like so:
Double quote the value like so:
echo("");
and escape $rows[0] in case it contains any double quotes thusly (or with
Try replacing this:
echo ' ' ;
With this:
echo ' ' ;
-Original Message-
From: Chris Carter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 26, 2007 10:04 PM
To: php-db@lists.php.net
Subject: [PHP-DB] Data
I am trying to fetch data through this code:
My code:
for($i=0;$i' ;
echo '' ;
echo ' ' ;
echo ' Store
name:' ;
echo ' ' ;
echo '