Web Hosting, Design, & Coding forum

General discussion

PHP loging in to MySql

ive been diging a lil bit and best solution that i could find is not one i like verry much. id like to have one file rather then on each php file.

im looking for a database acess, based on user. not just the root, but rather like people log in at login.php and they are transported to the same type of page that everyone is, how ever it has thier information. and when they click on other lings it keeps them loged in aswell as only thier info.

best info that i could get was this
mysql_connect(address, username, password)

how ever id whant the users to access the databased based on thier user imputed data.

such as, john logs in, john sees john's info from database. and not hellins, or the whole database. i tried taking a peek at how phpbb did thiers but im still confused a little bit.

Discussion is locked
You are posting a reply to: PHP loging in to MySql
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: PHP loging in to MySql
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
phpbb is a tad advanced

In reply to: PHP loging in to MySql

I suggest you take a look at members area tutorials on google. Most of them have step by step explainations that will really help. If you still have problems email me.

Collapse -
I need a little clarification

In reply to: phpbb is a tad advanced

Are you trying to connect to the database differently based on user? Or are you just trying to pull out different information from the database based on each user?

Collapse -

In reply to: I need a little clarification

well as a normal user

basicly like, how php games are done for example.

how ever, i will also like to make an admin one where they can go in and edit the users, and or formulas.

basicly i really dont whant like, each page to have formula in the form or what ever. i whant it editable using the admin login.

Collapse -
linked to database...

In reply to: phpbb is a tad advanced

ive linked to the database. my book doenst inform me about how to do any of this, i looked. On the net i found somethign that enabled me to link the page to the database. how ever i havent figured out how to get the "tables", like on phpmyadmin.

Popular Forums

Computer Newbies 10,686 discussions
Computer Help 54,365 discussions
Laptops 21,181 discussions
Networking & Wireless 16,313 discussions
Phones 17,137 discussions
Security 31,287 discussions
TVs & Home Theaters 22,101 discussions
Windows 7 8,164 discussions
Windows 10 2,657 discussions


This one tip will help you sleep better tonight

A few seconds are all you need to get a better night's rest.