Networking, Programming and Graphics Tutorials

Connecting to MySQL database from PHP [1/1]

Type: Code Networking, Programming and Graphics Tutorials
Connecting to MySQL database from PHP
Level: Beginner Networking, Programming and Graphics Tutorials 
Connecting to MySQL database from PHP
Date: 2007-Mar-16
Connecting to MySQL database from PHP
Visited: 3129 times
Connecting to MySQL database from PHP
Rating: Connecting to MySQL database from PHP
Connecting to MySQL database from PHP
Author: 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:                    
Networking, Programming and Graphics Tutorials - Connecting to MySQL database from PHP [1/1] - Networking, Programming and Graphics Tutorials

Need a specific tutorial? Do not hesitate and submit a request!
Related Tags: connecting remote to mysql  remotely connecting to mysql  remotely connecting to mysql as root  php connecting examle  connecting to ftp server using internet explorer  how to mysql connect to database  php and ajax mysql database example  ajax php mysql database  how to make a database in mysql  PHP and AJAX MySQL Database