/ Published in: PHP
All you need to do is put in your database information and then you need to include the config.php file in your project.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php // MYsql Info // This is where you put in your mysql host $db_host = "localhost"; // This is where you put in your mysql username $db_username = "root"; // This is where you put in your mysql password $db_password = ""; // This is where you put in your mysql database name $db_name = "Login"; // Start the Mysql Query mysql_connect("$db_host","$db_username","$db_password") or die("Sorry we could not connect to our database."); // Selecting our database from our Mysql Server //Once you fill out the info you need to connect this script to your project by a simple include. // Just like this... include_once("config.php");