Bug #17009 Updated: no work with "where" clause in quey
| From: | z29anna at yahoo dot com | Date: | Sun, 05 May 2002 04:08:47 +0000 |
| Subject: | Bug #17009 Updated: no work with "where" clause in quey | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-6938@lists.php.net to get a copy of this message | ||
ID: 17009
Updated by: z29anna@yahoo.com
Reported By: z29anna@yahoo.com
Status: Open
Bug Type: MySQL related
Operating System: Redhat 7.2
PHP Version: 4.2.0
New Comment:
if so, how can I solve it?
Previous Comments:
------------------------------------------------------------------------
[2002-05-05 00:03:39] z29anna@yahoo.com
I upgrade my webserver hardware, then migrate all Mysql database and
entire web site content to new server.
I have tested Mysql from mysql databases server, every thing is OK, I
can use command line like this:
select * from content where id=2230
can get the data output correctly.
but:
when I test to get data by
http://192.168.0.4/reader/content.php?id=2230
get error: no data found
the content.php code contain:
"select * from content where id=$id"
-------------
if the code only contain "select id, title from content" then it works
fine, (without where clause)
in brife: the "where" clause no work in new php version 4.2
in the old server, I setup it with mysql 3.23.22, php 4.1, apache
1.3.19, redhat 7.0, all the programm is coded and tested, of couse
worked on this platform
the new server, I setup it with mysql 3.23.49a, php 4.2.0, apache
1.3.20, (still no work with where clause)
the configure line is:
'./configure' '--with-mysql' '--with-xml'
'--enable-track-vars'
'--with-apache=../apache_1.3.20'
****** I think I should change back to old php version
please let me know if this is realy a php bug.
thanks a lot
have good day
Anna Zhao
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17009&edit=1