Friday, February 7, 2014

PHP PROGRAM TO CONNECT WITH DATABASE

PROGRAM:

<?php
$con = mysql_connect("localhost","root","");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
else
 {
   echo "ok data base";
  }
mysql_close($con);
?>



OUTPUT:

No comments:

Post a Comment