Re: PHP 4.0 Bug #2582 Updated: problem solved
| From: | Gernot Schwed | Date: | Fri, 22 Oct 1999 07:30:05 +0000 |
| Subject: | Re: PHP 4.0 Bug #2582 Updated: problem solved | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-11827@lists.php.net to get a copy of this message | ||
Hi!
On 21 Oct 1999, Bug Database wrote:
> ID: 2582
> Updated by: andrei
> Reported By: gescw@stud.uni-sb.de
> Status: Open
> Bug Type: MySQL related
> Assigned To:
> Comments:
>
> What's the problem?
$hit = mysql_query("select * ".
"from $mysql_table where $cond order by date asc");
$hit = stripslashes($hit);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$num = mysql_num_rows($hit);
if ($num > 0) { ...
stripslashes causes no problem with php3.0.12 but with php4.0b I get an
error...
0 is not a result...
but I not really need stripslashes at this point and so I will quote it...
Thanks and greetings,
Gernot