Re: trying to dump out table info
| From: | Daniel Brown | Date: | Tue, 14 Jul 2009 00:29:42 +0000 |
| Subject: | Re: trying to dump out table info | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-46298@lists.php.net to get a copy of this message | ||
On Mon, Jul 13, 2009 at 20:17, Govinda<govinda.webdnatalk@gmail.com> 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:
<?php
$host = 'localhost';
$user = 'user_name';
$pass = '123';
$db_name = 'my_database';
$link = mysql_connect($host,$user,$pass);
$conn = mysql_select_db($db_name,$link);
$sql = "SHOW TABLES";
$result = mysql_query($sql);
// ....
?>
--
</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