head pic db4free graphic Menu pic db4free
 
















It is currently Wed 19 Jun, 2013 18:19

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue 04 Jan, 2011 05:11 
Offline

Joined: Thu 23 Dec, 2010 08:12
Posts: 1
I want to connect to db4free's database with php, it always takes me a long time to load then IE show error message> Can't connect to website(look like this).
It should show a blank page if it connected successfully,right?
(PS: I have tried to put the php file on external host and even localhost)
What can i do now?

PHP script

<?php

$host = 'db4free.net:3306';
$user = 'ccsky';
$pass = '123456';
$db = 'wingsv_login';


$connect = @mysql_connect ($host,$user,$pass) or die ('error connecting to the database!');

$select = @mysql_select_db($db,$connect) or die ('error selecting database!');

?>

Confused :roll:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group