I have php and mysql running on a apache server. when i try to mysql_connect() i get this error.
Fatal error: Call to undefined function: mysql_connect() in /home/apache/htdocs/temp/index.php on line 2
I think that it is some kind of config problem or that php can't find the mysql lib or something like that. but i can't figure it out.
Here is my code
<?
mysql_connect("server", "root", "password");
?>
I used to have a query and some other useful things but when i relized i wasn't even connecting i reduced my code to this ingle line for testing.
Thank you