Connect to SQL server using php

Status
Not open for further replies.

IotaInsanity

Junior Member
Joined
Oct 24, 2013
Messages
129
Reaction score
16
Can someone help me figure out how to connect to sql server via php. send me a skype request, iotainsanity, or ping me here. WIlling to pay decent amount.
 
<?php
$server = "ip_of_host_or_localhost";
$database = "name_of_database";
$username = "name_of_user";
$password = "password_of_user";

$mysqlConnection = mysql_connect($server, $username, $password);
if (!$mysqlConnection)
{
echo "mysql server is wacked, please check logs.";
}
else
{
mysql_select_db($database, $mysqlConnection);
echo "sql connection successful";
}
 
Status
Not open for further replies.
This thread has been auto closed due to the forum's thread age policy. Read more.
Back
Top