Apeterpan Php
New member
hey guyss
iam new to php and mysqll,
Actually iam learning it from a video tutoriall.
But now iam stuck..I have installed sql and everything.
now i just made a smal scriptt, But its not workingg.
my script is lik this
<?php
require($_server["DOCUMENT_ROOT"]."/config/db_config.php");
$connection = mysql_connect($db_host, $db_user, $db_password) or die("error connecting");
echo "connection made";
?>
but when i read it, it says
Warning: require(/config/db_config.php) [function.require]: failed to open stream: No such file or directory in D:\webroot\temp_con.php on line 2
Fatal error: require() [function.require]: Failed opening required '/config/db_config.php' (include_path='.;C:\php5\pear') in D:\webroot\temp_con.php on line 2
what to do ?
Iam learning from VTM VIDEOS FROM 3DBUZZ
Hey tanx Jolly, wen i made it uppercase tat problem solved, but now it is showing
Fatal error: Call to undefined function mysql_connect() in D:\webroot\temp_con.php on line 3
what to do with this ?
please help
iam new to php and mysqll,
Actually iam learning it from a video tutoriall.
But now iam stuck..I have installed sql and everything.
now i just made a smal scriptt, But its not workingg.
my script is lik this
<?php
require($_server["DOCUMENT_ROOT"]."/config/db_config.php");
$connection = mysql_connect($db_host, $db_user, $db_password) or die("error connecting");
echo "connection made";
?>
but when i read it, it says
Warning: require(/config/db_config.php) [function.require]: failed to open stream: No such file or directory in D:\webroot\temp_con.php on line 2
Fatal error: require() [function.require]: Failed opening required '/config/db_config.php' (include_path='.;C:\php5\pear') in D:\webroot\temp_con.php on line 2
what to do ?
Iam learning from VTM VIDEOS FROM 3DBUZZ
Hey tanx Jolly, wen i made it uppercase tat problem solved, but now it is showing
Fatal error: Call to undefined function mysql_connect() in D:\webroot\temp_con.php on line 3
what to do with this ?
please help