I am makeing a blog site with login form and that, but i now need a database info, i have username and password but what is my localhost? Can anyone plz tell me?
SQL database help needed
Started by haraldur, Nov 22 2009 11:54 AM
7 replies to this topic
#1
Posted 22 November 2009 - 11:54 AM
|
|
|
#2
Posted 22 November 2009 - 12:01 PM
localhost is "localhost"
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
I study Information Systems at Karlstad University when I'm not on CodeCall
#3
Posted 22 November 2009 - 12:10 PM
Yebb i know, but how do i find out what my localhost is? Im hosting the website on my laptop. Do you know what the localhost could be?
#4
Posted 22 November 2009 - 12:11 PM
Still localhost or 127.0.0.1 or you could try pinging it :D any of the 3 would work.
#5
Posted 22 November 2009 - 12:12 PM
But can someone tell me where i can find my localhost, if thats not it its 127.0.0.1 and how can i ping it?
#6
Posted 22 November 2009 - 12:14 PM
To make the connection you literally just put localhost in there.
#7
Posted 22 November 2009 - 12:16 PM
Ok so i write:
mysql_connect ("localhost","haraldur(username)","passy(password)");
to connect my site with my database?
mysql_connect ("localhost","haraldur(username)","passy(password)");
to connect my site with my database?
#8
Posted 22 November 2009 - 12:23 PM
Yes


Sign In
Create Account


Back to top










