Re: newbie having problem

From: Date: Mon, 03 Sep 2001 15:19:36 +0000
Subject: Re: newbie having problem
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-12121@lists.php.net to get a copy of this message
> if( $result == FALSE ) > { > echo mysql_error(); > } Yes - progress - its telling me that no database was selected. My code again: > > <?php > > mysql_connect ('pingu','root@localhost',''); > > mysql_select_db ('Bizplanes'); > > if ($Serial == "") > > {$Serial = '%';} > > if ($Type == "") > > {$Type = '%';} > > if ($Con == "") > > {$Con = '%';} > > $result=mysql_query ("SELECT * FROM biz WHERE > > ID LIKE '%$Serial%' AND > > Type LIKE '%$Type%' > > Con LIKE '%$Con%' > > ORDER BY ID"); > > ?> > > > > TABLE STUFF HERE Regards George Pitcher Technical Manager HERON Project Napier University Edinburgh EH10 5DT fmdev@yahoo.co.uk gep1@stir.ac.uk safc2_1nufc@yahoo.com http://www.heron.ac.uk ================================================ programmer - A device for transmuting caffeine into code. ================================================ _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

« previous php.db (#12121) next »