Revision: 28824
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 15, 2010 01:58 by gough14
Initial Code
<?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
mysql_select_db("$db_name") or die("No database");
//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");
Initial URL
Initial Description
All you need to do is put in your database information and then you need to include the config.php file in your project.
Initial Title
Php & Mysql Connection Script
Initial Tags
Initial Language
PHP