about php.ini and mysql linux

I can't use mysql .How should i config the file of php.ini . the message:

Fatal error: Call to undefined function mysql_errno() in /var/www/html/inc/dv_clssql.php on line 129

how should i do? please help me

You really have not given us sufficient information to help you.

First, can you connect to your MySQL database from the command line i.e.

mysql <database> -u <username> -p <password>

If you are connecting to a different host you will have to add a "-h <host>" option as well.

Have to configured your php.ini file to contain the right variables and values so that your PHP scripts can access the database?

I can connect to my MySQL database,But i don't know how configure the file "php.ini".