Jump to content

SQL database help needed

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
haraldur

haraldur

    Learning Programmer

  • Members
  • PipPipPip
  • 50 posts
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?

#2
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
localhost is "localhost"
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#3
haraldur

haraldur

    Learning Programmer

  • Members
  • PipPipPip
  • 50 posts
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
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
Still localhost or 127.0.0.1 or you could try pinging it :D any of the 3 would work.

#5
haraldur

haraldur

    Learning Programmer

  • Members
  • PipPipPip
  • 50 posts
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
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
To make the connection you literally just put localhost in there.

#7
haraldur

haraldur

    Learning Programmer

  • Members
  • PipPipPip
  • 50 posts
Ok so i write:

mysql_connect ("localhost","haraldur(username)","passy(password)");

to connect my site with my database?

#8
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,247 posts
Yes