This topic is locked

Error when accessing link on generated main page

3/24/2005 10:13:04 PM
PHPRunner General questions
J
jules author

Hi!
I'm trying out PHPRunner. I got it working up to the login page. But I get the following error when clicking on the links on the main page.
Fatal error: Call to undefined function mysql_connect() in C:\Program files\PHPRunner\Output\include\dbconnection.php on line 9
Is this error connected to my version of PHP? Or is it MySQL that is causing the problem?
I tried connecting to the database using the PHPRunner script but i get the same error:
Fatal error: Call to undefined function mysql_connect() in C:\Program files\PHPRunner\Output\phprunner.php on line 42.
I'm a newbie in both PHP and MySQL, and I would really appreciate the help.
Thanks.

admin 3/25/2005

Hi,
PHP needs to be set up for working with MySQL.
to do this open file windows/php.ini in some text editor.

  1. Find ;extension=php_mysql.dll string and remove ;
  2. Find extension_dir = and make sure that here is an actual link to php_mysql.dll.
  3. Copy libmysql.dll into the Windows system directory

500229 3/25/2005

Hi again!
Thanks for the prompt reply. I did get it up and running, but this time I'm encountering another error:
PHP error happened

Technical information

Error type 2

Error description mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client

URL 127.0.0.1/PHPRunner/owner_tbl_list.php

Error file C:\Program files\PHPRunner\Output\include\dbconnection.php

Error line 9

SQL query
The error appears when I click on the links on the main page.
Thanks. Hope I could get this running this weekend.

admin 3/25/2005

Here is the article that explains how to use MySQL 4.1 with older clients

http://dev.mysql.com/doc/mysql/en/old-client.html