![]() |
![]() |
BizzyD |
![]()
Post
#1
|
Group: Members Posts: 6 Joined: 14-November 13 Member No.: 19,984 ![]() |
Hello, I am coding a small UCP. And I want to show all the online admins. It works but I want it to show a picture instead of saying ex: Bizzy_D 1. It should be Bizzy_D PICTURE.
This is my code: CODE <html> <head> <title>Island Survival Roleplay</title> <link href="./style/main.css" rel="stylesheet" type="text/css"> <script src="./includes/jquery-1.9.1.js" type="text/javascript"></script> <script type="text/javascript"> </script> </head> <body> <nav> <ul> <li><a href="./home.php"><img border="0" src="style/images/home.png"></a><a href="./logout.php"><img border="0" src="style/images/logout.png"></a></li> </ul> </nav> <div class="container"> <div class="ribbon">Staff Page </div> <div class="defbox"> </div> </body> </html> <?php $con=mysqli_connect("localhost","root","","MyDB"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $result = mysqli_query($con,"SELECT * FROM playerdata WHERE AdminLevel = 1 OR AdminLevel = 2 OR AdminLevel = 3 OR AdminLevel = 4 OR AdminLevel = 5 OR AdminLevel = 6"); while($row = mysqli_fetch_array($result)) { echo $row['username'] . " " . $row['online_ig']; echo "<br>"; } mysqli_close($con); ?> |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 24th June 2024 - 06:02 AM |