bladewolf2010 Posted August 24, 2010 Posted August 24, 2010 How would I add an image above view user for a specific UID? Quote
Equinox Posted August 24, 2010 Posted August 24, 2010 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" />'; } Quote
bladewolf2010 Posted August 24, 2010 Author Posted August 24, 2010 Just one thanks :) Using it for my team of people that find cheaters Well i guess it will be multiple? Quote
bladewolf2010 Posted August 24, 2010 Author Posted August 24, 2010 Okay i'm prob adding it to the wrong place but It's adding it to every user NVM I got it :) Quote
Dominion Posted August 24, 2010 Posted August 24, 2010 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) Quote
Relux Posted August 30, 2010 Posted August 30, 2010 I think php.net is too difficult for a beginner. W3schools or php tutorial are the best places to start Quote
PHPDevil Posted September 3, 2010 Posted September 3, 2010 I think php.net is too difficult for a beginner. W3schools or http://='http://phpforms.net/tutorial/tutorial.html']php tutorial are the best places to startYeah PHP.net is hard to understand. Sometimes they make the simplest of codes into something in which you need a degree in PHP to know lol. W3SCHOOLS and TIZAG i would recommend for beginners Quote
Djkanna Posted September 3, 2010 Posted September 3, 2010 Way off topic. PHP.net is and I cannot stress how simple it is to use. Quote
sniko Posted September 4, 2010 Posted September 4, 2010 $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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.