Call to undefined function mysql_connect()

hi all!

i got the error message while i am opening the php page.

"Call to undefined function mysql_connect()"

my source :

<?php
$db_name
='sample';
$conn=mysql_connect('servername','username','password') or die('Error connecting to mysql');
mysql_select_db('db_name');
?>

plz help.

Muthu

 
 

Drupal is a registered trademark of Dries Buytaert.