r 05, 2001 7:46 AM
Subject: Re: [PHP-DB] newbie having problem
> Jason,
>
> Having tried your suggestion, I see that I can connect to the server but
> cannot select the db.
>
> Where do I go from here?
>
> George
> - Original Message -
> From: Jason Wong <
P-DB] newbie having problem
>
> - Original Message -
> From: George Pitcher <[EMAIL PROTECTED]>
> To: Torgil Zechel <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Monday, September 03, 2001 11:19 PM
> Subject: Re: [PHP-DB] newbie having problem
>
- Original Message -
From: George Pitcher <[EMAIL PROTECTED]>
To: Torgil Zechel <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, September 03, 2001 11:19 PM
Subject: Re: [PHP-DB] newbie having problem
> > if( $result == FALSE )
> > {
> > echo m
> if( $result == FALSE )
> {
> echo mysql_error();
> }
Yes - progress - its telling me that no database was selected.
My code again:
> > > mysql_connect ('pingu','root@localhost','');
> > mysql_select_db ('Bizplanes');
> > if ($Serial == "")
> > {$Serial = '%';}
> > if ($Type == "")
> > {$Type
rge
- Original Message -
From: Torgil Zechel <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 03, 2001 11:38 AM
Subject: SV: [PHP-DB] newbie having problem
> Check if mysql_query returns false. If it does (and im pretty sure it do),
> use mysql_error to c
Check if mysql_query returns false. If it does (and im pretty sure it do),
use mysql_error to check whats wrong... (Another way is to echo the query
and paste it into the mysql command line client..)
$result = mysql_query("...");
if( $result == FALSE )
{
echo mysql_error();
}
> I'm doin
Hi all,
I'm doing some basic php/MySQL stuff (LinuxPPC on Mac7100). I'm gettin g the
following error when I search for somthing.
Supplied argument is not a valid MySQL result resource in
/usr/local/apache/htdocs/bizflyer/Bizflyer_R1.php on line 32
Here's my relevant code:
==