Re: [PHP-DB] trying to dump out table info

2009-07-14 Thread Daniel Brown
On Tue, Jul 14, 2009 at 08:16, h...@deweywilliams.com wrote: > > The problem I have always had with the PHP Manual (online) has been the lack > of complete examples.  Yes, there are examples of how to use each function. > But functions such as the MySQL related ones require multiple steps to get >

Re: [PHP-DB] trying to dump out table info

2009-07-14 Thread h...@deweywilliams.com
Govinda wrote: I learn the best by *seeing* example code. I wish I could see a working example. -G Govinda, Dan has shown you the path. Good luck. The problem I have always had with the PHP Manual (online) has been the lack of complete examples. Yes, there are examples of how to use

Re: [PHP-DB] trying to dump out table info

2009-07-13 Thread Daniel Brown
On Mon, Jul 13, 2009 at 20:17, Govinda wrote: > > Dan, I am really making the effort..  despite how it may look. I believe you. I sent you the function and code that should work for you, but it may have been lost in the chopped replies. So it'll be something like this: -- daniel.br...@p

Re: [PHP-DB] trying to dump out table info

2009-07-13 Thread Govinda
On Jul 13, 2009, at 5:42 PM, Daniel Brown wrote: On Mon, Jul 13, 2009 at 19:28, Govinda 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

Re: [PHP-DB] trying to dump out table info

2009-07-13 Thread Daniel Brown
On Mon, Jul 13, 2009 at 19:28, Govinda 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 TAB

Re: [PHP-DB] trying to dump out table info

2009-07-13 Thread Govinda
On Jul 13, 2009, at 4:40 PM, Daniel Brown wrote: On Mon, Jul 13, 2009 at 17:24, Govinda wrote: "No database selected" You're getting warmer How would you select a MySQL database in PHP? (Hint: there's a built-in function.) To try and follow your lead and focus just on what yo

Re: [PHP-DB] trying to dump out table info

2009-07-13 Thread Daniel Brown
On Mon, Jul 13, 2009 at 17:24, Govinda wrote: > > "No database selected" You're getting warmer How would you select a MySQL database in PHP? (Hint: there's a built-in function.) -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ C

Re: [PHP-DB] trying to dump out table info

2009-07-13 Thread Govinda
On Jul 13, 2009, at 2:58 PM, Daniel Brown wrote: On Mon, Jul 13, 2009 at 16:53, Govinda wrote: Hi all I am not sure why this is failing/giving error. I am quite new at PHP/Mysql, and apologize for what will undoubtedly end up being a trivial error on my part. Hey, I recognize that c

Re: [PHP-DB] trying to dump out table info

2009-07-13 Thread Daniel Brown
On Mon, Jul 13, 2009 at 16:53, Govinda wrote: > Hi all > > I am not sure why this is failing/giving error.  I am quite new at > PHP/Mysql, and apologize for what will undoubtedly end up being a trivial > error on my part. Hey, I recognize that code ;-P > Here is my code: > > $db_billing=m

[PHP-DB] trying to dump out table info

2009-07-13 Thread Govinda
Hi all I am not sure why this is failing/giving error. I am quite new at PHP/ Mysql, and apologize for what will undoubtedly end up being a trivial error on my part. Here is my code: $db_billing=mysql_connect(localhost,metheuser,mypass,billing); if (!$db_billing) { die('Could not connect: '