-1

Parse error: syntax error, unexpected T_DNUMBER in D:\InetPub\vhosts\xdran.com\httpdocs\settings.php on line 7

heres my configuration

<?
error_reporting(E_ALL ^E_NOTICE ^E_WARNING);

$web['connection'] = 'mssql';

$con = mssql_connect("203.143.82.98:1433","sa","z09184049210); 
//$mssql_server = "203.143.82.98"; //MSSQL server name or IP
//$mssql_username = "sa"; //MSSQL username
//$mssql_password = "z09184049210"; //MSSQL password

$web['database'] = 'Rancp';

$web['database'] = 'RanGame1';

$web['database'] = 'RanShop';

$web['database'] = 'RanUser';



require("includes/web.php");

?>
3
Contributors
6
Replies
8
Views
5 Years
Discussion Span
Last Post by esma.ramirez
0

im trying to connect remotely to my databse using host gato what should be the righr script?

0

You shouldn't show your server information, it'll lead up to hackers... so you should get Daniweb to cut that part out for you...

But here is the code in order to connect to mysql db written in php:

<?php
$username = "your_name";
$password = "your_password";
$hostname = "localhost"; 

//connection to the database
$dbhandle = mysql_connect($hostname, $username, $password) 
  or die("Unable to connect to MySQL");
echo "Connected to MySQL<br>";
?>
0

Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on '203.143.82.98' (10061) in D:\InetPub\vhosts\xdran.com\httpdocs\settings.php on line 6
Unable to connect to MySQL

after using the code you prvided thats the error and sir im trying to connect remotely via my web host to my database in my dds server which myssql and no mysql its the same?

0

can provide me sir the myssql php script?? because the one you gave it for mysql?

-1

At Least, you wrote:

$con = mssql_connect("203.143.82.98:1433","sa","z09184049210);

Than

$con = mssql_connect("203.143.82.98:1433","sa","z09184049210");

Check Out the last " before );

Edited by esma.ramirez

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.