NOTE: To Moderator.
Please remove this thread. The OP obviously has a serious
problem between
the keyboard and the chair! 8(
Nevermind!
8)
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote
in message
news:g3bafv$7cr$1@forums.macromedia.com...
> OK - when I do this -
>
> $LoginRS__query="SELECT UserName, UserPassword,
UserIsAdmin FROM users
> WHERE UserName='sssssss' AND UserPassword='cccccc'";
>
> (where the username and password are CORRECT)
> $LoginRS = mysql_query($LoginRS__query, $connADT) or
die(mysql_error());
> $loginFoundUser = mysql_num_rows($LoginRS);
> die(mysql_num_rows($LoginRS)?'TRUE':'FALSE');
>
> the page dies with a return of FALSE!
>
> What the heck?
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
> ==================
>
>
> "Murray *ACE*" <forums@HAHAgreat-web-sights.com>
wrote in message
> news:g3ba2h$6rb$1@forums.macromedia.com...
>> When I do an explicit SQL query with username and
password, the query
>> succeeds, and it says "Showing rows 0 - 0 (1 total,
Query took 0.0008
>> sec)". Does that mean that mysql_num_rows() will
return 0, or 1?
>>
>> --
>> Murray --- ICQ 71997575
>> Adobe Community Expert
>> (If you *MUST* email me, don't LAUGH when you do
so!)
>> ==================
>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>> ==================
>>
>>
>> "Murray *ACE*"
<forums@HAHAgreat-web-sights.com> wrote in message
>> news:g3b97l$607$1@forums.macromedia.com...
>>> But the same query returns 1 row when I do it
directly. That's the
>>> point. It's failing on the page, but both the
username and password are
>>> correctly entered and are in the database!
>>>
>>> --
>>> Murray --- ICQ 71997575
>>> Adobe Community Expert
>>> (If you *MUST* email me, don't LAUGH when you do
so!)
>>> ==================
>>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>>> ==================
>>>
>>>
>>> "Gary White" <reply@newsgroup.please>
wrote in message
>>>
news:ee8i549e617on9nri1a0hqh2pk5fpr0mq3@4ax.com...
>>>> On Wed, 18 Jun 2008 09:02:41 -0400, "Murray
*ACE*"
>>>> <forums@HAHAgreat-web-sights.com>
wrote:
>>>>
>>>>>As you can see from the code, I also have
a
>>>>>die(mysql_num_rows($LoginRS)),
>>>>>and that returns a FALSE!
>>>>
>>>> Your die is unconditional. It will happen
any time execution reaches
>>>> that point in the code. Your die:
>>>>
>>>>
>>>>
die(mysql_num_rows($LoginRS)?'TRUE':'FALSE');
>>>>
>>>> Will display TRUE if any rows are returned
by the query, or FALSE is
>>>> no rows are returned. Your description would
indicate that the query
>>>> was successfully executed and it returned
zero rows.
>>>>
>>>> Gary
>>>
>>
>