- Mar 5, 2009
- 259
- 0
- 42
ok jus started out with this... i been followin a video tut all day, now im @ the point of connecting to the mysql DB
wen i run the .php script, it says this:
Fatal error. Call to undefined function mysql_connect() in C:\Website\rar2.php on line 3
i am following everythin the tut shows, so the code is as follows...
<?
require($_SERVER["DOCUMENT_ROOT@] . "config/db_config.php");
$connection = mysql_connect($db_host, $db_user, $db_password) or die("connection error");
echo "connection made";
?>
i have looked on the php site, and it shows the same function as above to be the one to use.
i got apache, php5 and mysql all running fine. I know its not apache otherwise i wouldnt be able to show the site, i know its not php because i have got a different script which works fine. i know mysql is runnin fine because i have been playing in there.
im using an old archive version of mysql because its the one thats being shown on the tutorial (which was made back in 2002 i think lol and mysql confuses me @ the best of times lol) so i dont know if it could be that :s.
any1 sorta see if they can spot where i might be going wrong 0.o
thnx
wen i run the .php script, it says this:
Fatal error. Call to undefined function mysql_connect() in C:\Website\rar2.php on line 3
i am following everythin the tut shows, so the code is as follows...
<?
require($_SERVER["DOCUMENT_ROOT@] . "config/db_config.php");
$connection = mysql_connect($db_host, $db_user, $db_password) or die("connection error");
echo "connection made";
?>
i have looked on the php site, and it shows the same function as above to be the one to use.
i got apache, php5 and mysql all running fine. I know its not apache otherwise i wouldnt be able to show the site, i know its not php because i have got a different script which works fine. i know mysql is runnin fine because i have been playing in there.
im using an old archive version of mysql because its the one thats being shown on the tutorial (which was made back in 2002 i think lol and mysql confuses me @ the best of times lol) so i dont know if it could be that :s.
any1 sorta see if they can spot where i might be going wrong 0.o
thnx