<?php
$dbservertype = "mysql";
$dbservername = "localhost";
$dbusername = "root";
$dbpassword = "******";
$dbname = "testdb";
mysql_connect($dbservername,$dbusername,$dbpassword);
mysql_select_db($dbname);
?>
execute it in linux like this
[xxx@localhost]$ /usr/bin/php test.php
if will display an error like this
X-Powered-By: PHP/4.2.2
Content-type: text/html
<br />
<b>Fatal error</b>: Call to undefined function: mysql_connect() in <b>/home/webdev/naia/test.php</b> on line <b>9</b><br />
what do u think would be the problem and how can i connect to the database and have some query from the shell?