Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 552
0 Users 3 Guests Online
Forum Index » PHP + MySQL » Show picture if logged in.
Posted on Saturday 29th September 2 at 04:56 PM
Dalez
templates/default/images/noavatar.png's Avatar
Junior Member
Hey, well, i'm making this game (kinda like habbo.. but pictures) and well.. i'm using the user system with it. And i want it so that they are logged in to see it. How would i do it?
Posted on Tuesday 2nd October 2007 at 01:37 AM
Diablosblizz
templates/default/images/noavatar.png's Avatar
Senior Member
Code
<?php
include("config.php");
if($logged['username']) {
// show picture
} else {
// show whatever if they're not logged in
}
</php>