php-mysql-novice
Pages
Home
About This Blog
Friday, November 25, 2011
♫ CONNECT DB WITH PHP:
simply write the php code in the first line
<?php
$dbname="databasename";
$dbc=mysql_connect("localhost","root","") or die("cannt connect to server");
$dbs=mysql_select_db($dbname,$dbc) or die("cannt select database");
?>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment