Bug #13468 Updated: Thank you!
| From: | random11 at telekbird dot com dot cn | Date: | Tue, 02 Oct 2001 13:18:36 +0000 |
| Subject: | Bug #13468 Updated: Thank you! | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-67034@lists.php.net to get a copy of this message | ||
ID: 13468
User updated by: random11@telekbird.com.cn
Reported By: random11@telekbird.com.cn
Old Summary: Always show "T_STRING' or `T_VARIABLE' or"
Old Status: Bogus
Status: Open
Bug Type: MySQL related
Operating System: Win 98 SE Chinese Ver
PHP Version: 4.0.6
New Comment:
Thank you, Derick!
MIKE
Previous Comments:
------------------------------------------------------------------------
[2001-10-02 09:11:45] derick@php.net
Bogus, and do not open it again please.
Derick
------------------------------------------------------------------------
[2001-10-02 09:10:42] random11@telekbird.com.cn
Sorry, it is not a bug!
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.
------------------------------------------------------------------------
[2001-10-02 09:10:13] derick@php.net
Not a bug, and BTW, this:
echo "<tr><td><a href=\"profile.php?id={$arr['user_id']}\"
target='_top'>";
works too. (Use { } around it)
Derick
------------------------------------------------------------------------
[2001-10-02 09:08:41] random11@telekbird.com.cn
Sorry, it is not a bug!
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.
------------------------------------------------------------------------
[2001-10-02 09:07:52] random11@telekbird.com.cn
Sorry, it is not a bug!
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.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=13468
Edit this bug report at http://bugs.php.net/?id=13468&edit=1