-
Php Db Connection
Here is a Php Db Connection Script
<?php
$dbhost = "localhost";
$dbuser = "DBUSERNAME";
$dbpass = "DBPASSWORD";
$dbdata = "THEDATABASENAME";
if (!@mysql_connect($dbhost, $dbuser, $dbpass)) {
die("ERROR NOT CONNECTED......<br>ERROR: ".mysql_error());
}
if (!@mysql_select_db($dbdata)) {
die("ERROR NO DATABASE SELECTED<br>ERROR: ".mysql_error());
}
mysql_query("SET NAMES 'utf8'");
?>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks