Wednesday, July 21, 2010
HOW TO MAKE LOGIN FORM WITH PHP (connect)
Posted by Syarif | Wednesday, July 21, 2010 | Category:
PHP TUTORIAL
|
Now, lets connect the page that you've made with database server. There are many kind of database server that you may to build the table of the database, but I prefer to used MySQL.
OK, name this webpage: connect.php
<?php
$connect=mysql_connect('localhost','YOUR_USERNAME','YOUR_PASSWORD');
if (!$connect)
{
echo"MySQL is not connected";
}
mysql_select_db("test")
or die ("database is not present")
?>
Subscribe to:
Post Comments (Atom)
Currently have 0 comments: