Home Yellow Pages Movies Classifieds Jokes Jobs Free Hosting Videos
 
  Home
  Free Hosting
  Tutorials
  Cpanel Tutorial
  Helm Tutorial
  Helm Reseller
  ASP Tutorials
  PHP Tutorials

Subscribe
Joke Mail Newsletter




PHP Tutorials

PHP MySQL

Connecting to the MySQL Server

Before you can perform any operation on a database you must connect to the MySQL server. The syntax for performing this operation is simple.

A simplified version of the code is shown below.

<html>
<head>
<title>Connect Server</title>
</head>
<body>
 
<?php
 
$link = mysql_connect("localhost","username","password"]) or die("Connect Error: " . mysql_error());
print "Successfully connected.\n";
mysql_close($link);
 
?>
 
</body>
</html>


BizHat.com   Bookmark   Astrology   Chat Room   Classifieds   Computer   Downloads   Directory   Dating   Domain Tools   Education   eCards   Finance   Forums   Freelance Work   Free Hosting   Free Mail   Gallery   Games   Guest Book   Greeting Cards   Ham Radio   Health   Home Business   Hosting Tutorials   Hosting Directory   India   Jobs   Jokes   Kerala   Matrimonial   Music   Movies   News   News Letter   Recipes   Real Estate   Search   SMS   Tourist Guide   Top 100 Sites   Vote Us   Yellow Pages   Arthunkal Church   Site Map  

Google
Terms of Service  Advertise with us  Privacy Policy  Contact us 
Copyright © 2003-2005 BizHat.com, Hosted by FlashWebHost.com