Wanted to test my install of PHP 4.0.4/Apache 1.3.19/ and MySQL 3.23.32.
I made a simple connection to the SQL DB.
<?
mysql_connect(<address>, <username>, <password>;
?>
Now when I it I get.
Fatal error: Call to unsupported or undefined function mysql_connect() in /home/httpd/html/zack/test.php3 on line 4
Any help would be great.
try to use..
$rc = mysql_connect ( "host", "username", "password" );
should work..
you need to assign a connection parameter yo the mysql_connect statement.
$db = mysql_connect("addr","user","passwd")
then use mysql_select_db("database name",$db)
this is it. then query using mysql_query()
Does a page containing the following <? phpinfo(); ?>
Show amy MySQL information? This error normally means PHP was installed without any MySQL support
Regards Darren http://www.php4hosting.com/