#22636 [Opn->Fbk]: the function mysql_query makes errors in PHP variables
| From: | sniper@php.net | Date: | Tue, 11 Mar 2003 17:19:38 +0000 |
| Subject: | #22636 [Opn->Fbk]: the function mysql_query makes errors in PHP variables | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-35354@lists.php.net to get a copy of this message | ||
ID: 22636
Updated by: sniper@php.net
Reported By: real_mctl at yahoo dot fr
-Status: Open
+Status: Feedback
Bug Type: MySQL related
Operating System: Linux Red Hat 7.2
PHP Version: 4.3.1
New Comment:
huh? What if you remove that @ from the mysql_query() call?
Previous Comments:
------------------------------------------------------------------------
[2003-03-11 10:21:14] real_mctl at yahoo dot fr
It's simple, my entreprise updated the version of PHP, from 4.1.2 to
4.3.1.
The problem is that when the function mysql_query is executing some
query, this function overwrite all data on my PHP script even the query
itself !
An example (the query is indeed correct) :
$query = "select * from table" ;
$result = @mysql_query($query,$idCnx) ;
The execution of the query crashes, return 1 (don't return a ressource
id) and owerwrite the content of $query to an empty value !
Thanks
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22636&edit=1