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($
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
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
"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
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
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
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