Posted by Andy Hassall on 06/08/05 01:01
On 7 Jun 2005 14:48:59 -0700, "mikey_boy" <mbiehl2@gmail.com> wrote:
>Here is the errors that display. I work in the IT field, I should've
>know to post the errors...MY BAD!!
>---------------------------------------------------------------------------------------------------------
>Notice: Undefined variable: discovery in
>C:\development_site\Database.php on line 13
This didn't come from the script you posted. It didn't contain "$discovery".
>Notice: Undefined variable: root in C:\development_site\Database.php on
>line 13
This didn't come from the script you posted. It didn't contain "$root".
>Notice: Undefined variable: killer in C:\development_site\Database.php
>on line 13
This didn't come from the script you posted. It didn't contain "$killer".
>Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for
>user 'ODBC'@'localhost' (using password: NO) in
>C:\development_site\Database.php on line 13
How about posting either:
(a) The errors from the script you posted, or
(b) The script that produced these errors.
Because they aren't the same. The one you posted used mysql_connect, and on a
different line number.
>Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link
>resource in C:\development_site\Database.php on line 16
Because you didn't check for errors on the mysql_pconnect.
>Warning: mysql_query(): supplied argument is not a valid MySQL-Link
>resource in C:\development_site\Database.php on line 20
Because you didn't check for errors on the mysql_pconnect nor on the
mysql_select_db.
>Warning: mysql_num_rows(): supplied argument is not a valid MySQL
>result resource in C:\development_site\Database.php on line 22
Because you didn't check for errors on the mysql_pconnect nor on the
mysql_select_db nor on the mysql_query.
>Warning: mysql_fetch_array(): supplied argument is not a valid MySQL
>result resource in C:\development_site\Database.php on line 30
Because you didn't check for errors on the mysql_pconnect nor on the
mysql_select_db nor on the mysql_query nor mysql_num_rows.
>Employee_no:
>Last_Name:
>First_Name:
>Commission:
You haven't got any data so they're all blank.
--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
[Back to original message]
|