Jump to content
MakeWebGames

Recommended Posts

Posted

Do you want 1 image, or multiple images? O.o

If 1 - just a simple if() statement will suffice

 

if($_SESSION['userid'] == 1) {
echo '<img src = "Image.png" alt = "image" />';
}
Posted

if you using it to flag up users an array on who can view it and an if() to see if they have been flagged up (you can add something to the users table to do this set to 1 or 0 not that its already full)

Posted
$userids = array(1, 3, 11, 17, 38, 484);

if(in_array($_GET['u'], $userids))
{
echo "[img=image.png]";
}

 

will do, unless you wish to use a database query which is easily done.

-sniko/spiedex

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...