Re: [PHP-DB] PHP accessing MySQL

2001-11-27 Thread Jonathan Duncan
OK, I have found some more time to work on my PHP project. The problem is indicated in the following line: $tables = mysql_list_tables($db_names[$db_num]) or die("Couldn't list databases."); I took the variable $db_num and replaced it with a value of 1 as follows: $tables = mysql_list_tables($

Re: [PHP-DB] PHP accessing MySQL

2001-05-22 Thread Jonathan Duncan
YES!! I just had a feeling the book was wrong. That did get rid of the error. However, it did not completely solve my issue. Now when I run the script I just get the message "Couldn't list databases." This just happens to be the die message for the same line of code that I have been looking a

Re: [PHP-DB] PHP accessing MySQL

2001-05-22 Thread Julie Meloni
I believe you want to look at this page: http://www.thickbook.com/books/phpfe_errata.phtml -- ++ | Julie Meloni ([EMAIL PROTECTED]) | || | "PHP Essentials" and "PHP Fast & Easy" | | http://www.thickbook.c

Re: [PHP-DB] PHP accessing MySQL

2001-05-22 Thread Jonathan Duncan
"Miles Thompson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Jonathan .. see below. > At 08:38 PM 5/18/01 +, Jonathan Duncan wrote: > >Miles > > > >Thank you for the response. I did some debugging and the value of $dbs is 2. > > > >I am not sure of wha

Re: [PHP-DB] PHP accessing MySQL

2001-05-22 Thread Jonathan Duncan
That is what I thought, so I set $db_num to another number and still came up with the same error. jkd ""Darren"" <[EMAIL PROTECTED]> wrote in message 9e42lj$s7b$[EMAIL PROTECTED]">news:9e42lj$s7b$[EMAIL PROTECTED]... > I think the 0 is referring to your $db_num > "Jonathan Duncan" <[EMAIL PROTE

Re: [PHP-DB] PHP accessing MySQL

2001-05-18 Thread Miles Thompson
Jonathan .. see below. At 08:38 PM 5/18/01 +, Jonathan Duncan wrote: >Miles > >Thank you for the response. I did some debugging and the value of $dbs is 2. > >I am not sure of what example you are referring to. I am not using the >manual currently, although I have the PDF version of it. htt

Re: [PHP-DB] PHP accessing MySQL

2001-05-18 Thread Darren
I think the 0 is referring to your $db_num "Jonathan Duncan" <[EMAIL PROTECTED]> wrote in message 9e3suq$17r$[EMAIL PROTECTED]">news:9e3suq$17r$[EMAIL PROTECTED]... > I am making a script to access MySQL and when I run it I get this: > > Warning: 0 is not a MySQL link index in /sites/htdocs/php/db

[PHP-DB] PHP accessing MySQL

2001-05-18 Thread Jonathan Duncan
I am making a script to access MySQL and when I run it I get this: Warning: 0 is not a MySQL link index in /sites/htdocs/php/db_listtables.php on line 10 Following is the first 10 lines of my script: "; $db_num = 0; while ($db_num < mysql_num_rows($dbs)) { $db_names[$db_num] = mysql_tab