Re: [PHPLIB] 0 is not? From: Damien Moody (damienm <email protected>)
Date: 01/13/00

Putting mysql_error() did the trick. It led me to an error in an SQL
statement, which was easily fixed.

> From: "James K. Wiggs" <wiggs <email protected>>
> Date: Thu, 13 Jan 2000 10:09:33 -0800 (PST)
> To: Damien Moody <damienm <email protected>>
> Cc: PHP List <phplib <email protected>>
> Subject: Re: [PHPLIB] 0 is not?
>
>
> Most likely, there is a syntax error of some sort in the query you're
> using to make the selection from the database. Try putting echoes of
> mysql_errno() and mysql_error() immediately after the SQL query to see if
> there is some specific error. The query you *think* you are generating
> may not be the query you are *actually* generating. I've been bitten by
> this one many, many times.
>
> regards,
> Jim Wiggs
>
>
> On Thu, 13 Jan 2000, Damien Moody wrote:
>
>> I get the following:
>>
>> Warning: 0 is not a MySQL result index in
>> /home/httpd/html/damien/ENTERDATA.PHP3 on line 32
>>
>> I'm trying to set up a simple add/edit/remove your name from a list script.
>> What does this warning mean and how do I fix it?
>>
>> -
>> PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
>> To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
>> the body, not the subject, of your message.
>>
>

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.