Hi Everyone,

Why bi cannot connect to Mysql dbf. When i trying to connect following error come up

Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\htdocs\example_php\myex.php on line 2

below is my script
$link = mysql_connect("localhost","root","abc456");
if (!$link) {
die('Could not connect: ' . mysql_error());
echo 'Connected successfully';

Line no 2 is connecting to mysql. Pls anyoone can help me on this.

Im using Apache 2, PHP