Most probably you have an error in your MySQL query or you are trying to
fetch rows from the connection identifier.
But why don't you post the code which generated this error? How can we
guess what's wrong in it elseway?
Sam wrote:
Warning: mysql_fetch_row(): supplied argument is not a valid
"Sam" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i'm new to this php/mysql thing - i've defected microsoft.
> when trying to pull data from a table in mysql, i get the following error:
>
> Warning: mysql_fetch_row(): supplied argument is not a valid MyS
you need
$query = SELECT COUNT(*) as count FROM bookings WHERE ('2002-04-04')
BETWEEN booking_start AND booking_end OR ('2002-04-10')BETWEEN
booking_start AND booking_end AND villa_id = ('3')
$villa = mysql_query($query);
while ($result = mysqul_result($villa))
{
echo "We have $result[count] vi
Robert,
I still feel fairly new to this myself but if I find that I'm having
problems writing to the database I generally try to echo the query to
the page and then test this out directly with the command line prompt
directly to the database.
At least that way you can test out the query in isola
4 matches
Mail list logo