i am working on red hat linux with apache php and mysql. Mysql is running and i have succsefuly installed phpMyAdmin. However when i try to connect to my database through php i get this error.
Fatal error: Call to undefined function: mysql_connect() in /home/apache/htdocs/lyrit/menutest.html on line 81
can you please tell me what is wrong.
-thank you
here is the code
<?
$db = mysql_connect("host", "user", "pass") or die("was unable to connect to server");
mysql_select_db("chpc",$db) or die("could not select the database");
$sql2="SELECT * FROM racks where rackname = 'CR3-ANSC'";
//after this i had a print statement but it took it out because i just wanted to check if i was even connecting.
?>[/COLOR]