Accessing a database using PHP3?

He has: 176 posts

Joined: Oct 1999

I ran a test on my host to see if I could run PHP3 and it was successful.
I couldn't find any info on using MySQL with PHP3 so I emailed my support asking if was installed on the host and the reply I got was, "We do, you just have to request the database that's all".

How do i know what databases there are on the host and how do I create my own? After reading several tutorials on PHP3, none of them mentioned creating a database.

Your help will be much appreciated.

Regards,

------------------
KeithMcL
http://www.resources-webmasters.com
http://www.webmasterswork.com

They have: 334 posts

Joined: Dec 1999

You'll probably need to contact your host to find exactly which database they have installed and to have it created for you. Odds are that they'll need to set it up on their end. After it's set up, you communicate with it through Telnet or via Perl/PHP3, etc.

Try: http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial4.html

or
http://faq.web2010.com/tutorial/

for some basic PHP/MySql tutorials. If your host is using a database other than MySQL, just look for tutorials on that one instead.

Peter J. Boettcher's picture

They have: 812 posts

Joined: Feb 2000

kmcluk,

Odds are if your host uses PHP the database they'll be using will by mySQL. They should have some sort of online form that will allow you to setup the database.

I think your first step should be finding out for certain which format of database your host uses, just send an email and ask them, it's an easy question

Regards,
Peter J. Boettcher

PJ | Are we there yet?
pjboettcher.com

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.