Re: PHP 4.2.0 on win2k, can't use mysql_fetch_* functions
| From: | 1LT John W. Holmes | Date: | Mon, 29 Apr 2002 20:40:58 +0000 |
| Subject: | Re: PHP 4.2.0 on win2k, can't use mysql_fetch_* functions | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95254@lists.php.net to get a copy of this message | ||
There's a difference between error_reporting and display_errors.
Also, are you _really_ sure your query is returning anything? You may
_think_ it is, but if mysql_fetch_array doesn't return anything, then it
means your result set is empty. 9 times out of 10 this is going to turn out
to be something dumb like a variable was empty that you though wasn't...
Show us the code.
---John Holmes...
----- Original Message -----
From: "Austin Marshall" <amars@pdq.net>
To: "1LT John W. Holmes" <holmes072000@charter.net>
Cc: <php-general@lists.php.net>
Sent: Monday, April 29, 2002 4:34 PM
Subject: Re: [PHP] PHP 4.2.0 on win2k, can't use mysql_fetch_* functions
> 1lt John W. Holmes wrote:
> > Did you turn on Display_errors in php.ini?
> >
> > ---John Holmes...
>
> Of Course, i think i even had it at the highest alert level. No errors
> whatsoever, ... or die(mysql_error()) yields nothing either.
>
> >
> > ----- Original Message -----
> > From: "Austin W. Marshall" <amars@pdq.net>
> > To: <php-general@lists.php.net>
> > Sent: Monday, April 29, 2002 3:52 PM
> > Subject: [PHP] PHP 4.2.0 on win2k, can't use mysql_fetch_* functions
> >
> >
> >
> >>Is there something about the php 4.2.0 windows binary (installer
> >>version) that renders the mysql_fetch_* functions useless?
> >>
> >>I installed php 4.2.0 on windows 2000 along with Apache 1.3.24 and MySQL
> >>3.23.49, and in a script i have a simple SELECT statement. The content
> >>is in the database, the query executes successfuly, but it's as if
> >>mysql_fetch_array and mysql_fetch_row functions don't return anything.
> >> I know mysql support is built-in (as indicated on php.net) and working,
> >>because i was able to use php to insert data into the database. On that
> >>one computer i was able to recreate the problem consistently and in no
> >>situation would mysql_fetch array or _row return anything.
> >>
> >>I haven't had the opportunity to try this on any other win2k boxen, but
> >>am not having any problems in Linux or OpenBSD. Is anyone else
> >>experiencing any problems?
> >>
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >
> >
>
>
>