Re: trying to dump out table info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 13, 2009 at 19:28, Govinda<govinda.webdnatalk@xxxxxxxxx> 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@xxxxxxxxxxxx || danbrown@xxxxxxx
http://www.parasane.net/ || http://www.pilotpig.net/
Check out our great hosting and dedicated server deals at
http://twitter.com/pilotpig

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux