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: 1383 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: mysql+allow remote connection+mysql administrator+windows  allow connection to mysql  how to allow connection to mysql  allow connection mysql  mysql allow connection  mysql to allow connection  MYSQL and C++ Connection Example  mysql connection in c++  allow connection for mysql  allow mysql to have connection  how to allow mysql connection  allow mysql for remote connection  mysql allow remote connection  mysql "allow remote connection"  "allow remote connection" mysql  How to allow remote connection to MySQL  mysql allow remote connection  mysql "how to allow remote connection"  mysql remote connection example  how to allow remote connection in mysql