It is currently Thu Mar 28, 2024 11:41 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Connecting database
PostPosted: Mon Mar 20, 2006 7:24 am 
Noobie
Noobie

Joined: Mon Mar 20, 2006 7:19 am
Posts: 2
newbie;

$dbcnx = @mysql_connect(" ? ", "username", "password");

i dont know how to connect my database at my host database phpadmin.

thanxs;


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 20, 2006 7:50 am 
Noobie
Noobie

Joined: Mon Mar 20, 2006 7:19 am
Posts: 2
my host site for database:

username: was_cs
password: *******
database name: was_cs
database host: 65.98.98.74
database port: 3306

how can i connect it to my database
please can somebody help me

$dbcnx = @mysql_connect("(what should i put here )", "was_cs", "*****");
if (!$dbcnx) {
echo( "<p>Unable to connect to the " .
"database server at this time.</p>" );
exit();
}
if (! @mysql_select_db("was_cs") ) {
echo( "<p>Unable to locate the clients " .
"database at this time.</p>" );
exit();
}


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 20, 2006 2:04 pm 
Posts like crazy!
Posts like crazy!

Joined: Mon Sep 26, 2005 5:03 pm
Posts: 204
Location: The Netherlands
http://nl2.php.net/manual/en/function.mysql-connect.php

so..
Code:
$dbcnx = @mysql_connect("65.98.98.74", "was_cs", "*****");


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ]  Moderators: fhmagic, KJ, Moderators, Support Team

All times are UTC


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:  
cron
100WebSpace © 2011