Jump to content

PHP/MYSQL Data Help


devangel

Recommended Posts

Hey guys,

 

How would i be able to display my users details on my website,

 

i have registered but it only gets 2 values the id of the user and username.

 

$_SESSION['SESS_USERID'] = $user['userid'];

$_SESSION['SESS_USERNAME'] = $user['username'];

 

instead i want to get all the information located in users.

 

example:

 

User Details:

Username:

Level:

Gender:

 

i wanna be able to get that info from my database and display it.

 

can anybody help it would be greatly appreciated .

 

 

and also, i want to add a little panel to my index for admins.

 

i have a "authlevel" in users 0 = banner 1 = user 4 = admin

 

on my page i wanna do a small code

 

if user & user authlevel > 4 echo (panel)

 

how would i be able to do that with my above problem, like im trying to do that function  but its not working, it doesnt show

Link to comment
https://forums.phpfreaks.com/topic/195586-phpmysql-data-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.