Jump to content

[SOLVED] Connect to SQL


Brian W

Recommended Posts

do u mean ?

<?php

$db_host = "localhost"; // Your database host server, eg. db.server.com

$db_user = "user"; // User who has access to the database

$db_pass = "password"; // User password to access database

$db_name = "database"; // Existing database name

 

// -- Connecting to the database (not persistent connection)

 

$connect = mysql_connect($db_host, $db_user, $db_pass);

mysql_select_db($db_name,$connect) or die(mysql_error());

 

 

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.