php-general | 2001092
Date: 09/30/01
- Next message: Web user: "[PHP] Re: mysql_fetch_array() doesn't work"
- Previous message: Rouvas Stathis: "Re: [PHP] screen resolution"
- Next in thread: Web user: "[PHP] Re: mysql_fetch_array() doesn't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
First, Thank you all for your help!
I finally found the reason for why does the IE always show info as below:
"Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' in c:\program files\apache
group\apache\htdocs\web\site1\list.php on line --[the number of line]"
It is because the echo (including print) doesn't work at the line below,
echo "<tr><td><a href=\"profile.php?id=$arr['user_id']\" target='_top'>";
showing the error info as I mentioned. ( but it should work according to PHP
books)
It only works when the $arr['user_id'] is out of the quotes.
echo "<tr><td><a href=\"profile.php?id=".$arr['user_id']."\"
target='_top'>";
then IE showed no error any longer.
So I have to let all $arr['key'] out of the quotes, then the scripts are
Ok.
Regards
Mike
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Web user: "[PHP] Re: mysql_fetch_array() doesn't work"
- Previous message: Rouvas Stathis: "Re: [PHP] screen resolution"
- Next in thread: Web user: "[PHP] Re: mysql_fetch_array() doesn't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

