Re: Re: PHP 4.0 Bug #2582 Updated: problem solved
| From: | Thies C. Arntzen | Date: | Fri, 22 Oct 1999 07:43:27 +0000 |
| Subject: | Re: Re: PHP 4.0 Bug #2582 Updated: problem solved | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-11828@lists.php.net to get a copy of this message | ||
gernod,
if stripslashed() gives you different results in PHP3<->PHP4 please tell
us (that's a bug!). BTW: what version of PHP4 have you tried?
regards,
tc
On Fri, 22 Oct 1999, Gernot Schwed wrote:
>
> 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
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany