Re: trying to dump out table info

From: Date: Mon, 13 Jul 2009 23:42:36 +0000
Subject: Re: trying to dump out table info
References: 1 2 3 4 5  Groups: php.db 
Request: Send a blank email to php-db+get-46295@lists.php.net to get a copy of this message
On Mon, Jul 13, 2009 at 19:28, Govinda<govinda.webdnatalk@gmail.com> wrote: > >        $db_billing=mysql_connect(localhost,metheuser,mypass,billing); > if (!$db_billing) { die('Could not connect: ' . mysql_error()); } if(!mysql_select_db('dbname',$db_billing)) die(mysql_error()); >        //$sql = "SHOW TABLES FROM billing LIKE 'mytable'"; >        $sql = "SHOW TABLES"; //line 237 The fourth parameter you have in mysql_connect() only evaluates within the engine as a boolean True statement. RTFM to see why. ;-P -- </Daniel P. Brown> daniel.brown@parasane.net || danbrown@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Check out our great hosting and dedicated server deals at http://twitter.com/pilotpig

« previous php.db (#46295) next »