Engineering Thinking
Friday, 27 April 2012
how to connect database?
<?php
$con=mysql_connect("localhost","root","")
or die("<h1>your connection not connected</h1>");
$db=mysql_select_db("db",$con)
or die("<h1>your select a database not found</h1>");
echo "<script>alert('you connect a proper database');</script>";
?>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment