Php mySQL help for newbie

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
oz
Forum Newbie
Posts: 11
Joined: Sun May 26, 2002 7:15 am
Location: Michigan
Contact:

Php mySQL help for newbie

Post by oz »

I'm very new to PhP. I have a web host with a mySQL database.

They provided me with a database name lklein.

I set up a BB YAOBB I think the name is. It works fine with the lklein database.

Ok my Question.

If I add some other php script for an all-together different purpose, Do I use this same data base or will the contents be destroyed.

Not sure if they will let me set up another one. This one was already set up and they do not allow any command line progys like Telnet.

Oz :?:

?>
MattF
Forum Contributor
Posts: 225
Joined: Sun May 19, 2002 9:58 am
Location: Sussex, UK

Post by MattF »

I assume you mean YABB. The thing about a database is that it is a collection of tables. Your YABB database probably has several tables with information like threads, users and posts. You will be fine to use other scripts with your database as long as you make sure you use different table names for each different script. For a good web based mySQL manager you should try phpMyAdmin from http://www.phpwizard.net .
User avatar
oz
Forum Newbie
Posts: 11
Joined: Sun May 26, 2002 7:15 am
Location: Michigan
Contact:

Post by oz »

Ok, Thanks! BTW is there a list somewhere of PHP environment varibles?
like $HTTP_AGENT, etc.

Oz
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Post Reply