This topic is locked

Very dumb question... how do I connect to the db??

8/23/2005 3:10:18 PM
PHPRunner General questions
author

I have a database setup on my site, with three tables in it. I'm totally new to PHP and am trying to get some things working for a site I'm developing. I was kinda hoping PHPRunner might get me some legs up on the learning curve. But heck, I can't even figure out how to connect to the database... <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=1760&image=1&table=forumtopics' class='bbc_emoticon' alt=':(' />
Thanks!

Sergey Kornilov admin 8/24/2005

Hi,
for more information about this issue you can read the article Connecting to database.
Feel free to contact techsupport (support@xlinesoft.com) if you need any help.

501232 8/24/2005

I've read that... is the db supposed to be located locally? or can I connect to it at my site? Right now I'm trying to connect at my site and have no idea how to go about it.
If I'm going to put it local, then I have to set up a web server running on my machine in order for it to work properly?
Total beginner here... looking for help.

C
crono999 8/24/2005

you can easily connect to your database on your web server. however, the specific steps relate to what kind of database you are using. PHPrunner spells it out step by step for you when you run it. go slowly through the article the admin directed you too, you shouldn't have any problems. i was a beginner as well when i started using this (and still am...), and have been progressing quickly using this program. good luck.

501233 8/24/2005

sorry, but the page the admin sent me to doesn't answer my question. Why, instead of someone just answering it, do I keep getting pointed to a page that doesn't tell me anything? <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=5635&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />
I have a db setup at my site. I don't have it locally on my pc, so I'm assuming at that point that I wouldn't use "localhost"? Is that right? If it is, then what do I use? The URL of the site? That doesn't get me connected either. I can access the db through phpAdmin at my site, but I have no idea where it's actually "stored" there... also no idea at this point if the port is different than the default or not.
How can I evaluate the software in 21 days when I can't even seem to get connected to the db? Ok, so maybe I'm too stupid to use it... Just seems to me though that if this is a forum for people to get help, then there'd be people here giving help instead of pointing to a page that, as I said, doesn't answer my question. sigh

501234 8/24/2005

btw, using mySQL...

Sergey Kornilov admin 8/25/2005

Hi,
since you use MySQL, and your database is remote, and you are able to connect it from your site, consider using connection method described in Connect using PHP article.
Try entering localhost as server address, your username and password.

If you wouldn't succeed please contact your hosting admin to determine what server name should you use when connecting MySQL from your site.