Networking, Programming and Graphics Tutorials

PHP MySQL connection API [1/1]

Type: Code Networking, Programming and Graphics Tutorials
PHP MySQL connection API
Level: Beginner Networking, Programming and Graphics Tutorials 
PHP MySQL connection API
Date: 2007-Apr-02
PHP MySQL connection API
Visited: 1537 times
PHP MySQL connection API
Rating: PHP MySQL connection API
PHP MySQL connection API
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 - PHP MySQL connection API [1/1] - Networking, Programming and Graphics Tutorials

Need a specific tutorial? Do not hesitate and submit a request!
Related Tags: establish connection with mysql server with ftp connection  remote connection and localhost connection mysql  allow mysql connection  how to allow connection mysql  how to allow connection to mysql  mysql allow connection  mysql+allow connection  allow connection to mysql  connection to mysql with c++  C++ Mysql Connection