Reply to Re: Getting slew of errors when running php script

Your name:

Reply:


Posted by Gordon Burditt on 06/08/05 01:08

>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
>
>Notice: Undefined variable: root in C:\development_site\Database.php on
>line 13
>
>Notice: Undefined variable: killer in C:\development_site\Database.php
>on line 13

I recommend fixing these, if necessary by using isset() on the variable
before using its value. But the big problem comes next:

>Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for
>user 'ODBC'@'localhost' (using password: NO) in
>C:\development_site\Database.php on line 13

Here you have a serious problem: you can't connect to your
database. Test the login information using a command-line
client. And you really ought to have a password on your database,
even if it's only accessible via localhost.

>Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link
>resource in C:\development_site\Database.php on line 16

Your connect failed, so you can't select a database. Fix previous
error first.

>Warning: mysql_query(): supplied argument is not a valid MySQL-Link
>resource in C:\development_site\Database.php on line 20

Your connect failed, so you can't do queries. Fix previous error first.

>Warning: mysql_num_rows(): supplied argument is not a valid MySQL
>result resource in C:\development_site\Database.php on line 22

Your query failed, so you didn't get a result. Fix previous error first.

>Warning: mysql_fetch_array(): supplied argument is not a valid MySQL
>result resource in C:\development_site\Database.php on line 30

Your query failed, so you didn't get a result. Fix previous error first.

>Employee_no:
>Last_Name:
>First_Name:
>Commission:
>

Gordon L. Burditt

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация