Networking, Programming and Graphics - Tutorials
ONLINEHOWTO.net Tutorials Category

How to connect to MySQL database

Type: Code Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Level: Beginner Networking, Programming and Graphics - Tutorials 
Networking, Programming and Graphics - Tutorials
Date: 2007-Mar-12
Networking, Programming and Graphics - Tutorials
Visited: 4780 times
Networking, Programming and Graphics - Tutorials
Rating: Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Published: Ivory Morhuld

This tutorial will show you how to connect to MySQL database from PHP script.

mysql_connect (host, username, password)

Returns a MySQL link identifier on success, or FALSE on failure.

<?php
$host
="localhost";
$user="root";
$password="password";
$connect=mysql_connect($host$user$password);
?>
Rate this tutorial:                    
Post Comment

Need a specific tutorial? Do not hesitate and submit a request!
Your e-mail: