TheBigChief Posted September 28, 2009 Posted September 28, 2009 This is my first ever script so please be kind with comments. I would also like to point out that this is an edit of the user statistics script by Jaimee Make ipdetails.php and add the code below: <?php require("top.php"); ?> <form method="post"> <?php if (in_array($name, $admin_array) or in_array($name, $manager_array)){ ?> <fieldset style="color: #ffffff; border: 1px solid #ffffff; width: 600px; text-align: left; padding: 5px;"> <table width="550" border="0" align="center" cellpadding="0" cellspacing="2" class="table"> <tr> <td colspan="3" align="left" class="head">IP Details: </td> </tr> <tr> <td width="150" align="left" class="sub">Name:</td> <td width="150" align="left" class="sub">Signup_IP:</td> <td width="250" align="left" class="sub">Login_IP:</td> </tr> <? $result = mysql_query("SELECT name,signup_ip,login_ip FROM login WHERE sitestate='0'") or die(mysql_error()); // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { // Print out the contents of each row into a table ?> <tr> <td width="150" align="left" class="cell"><?php echo "<a href=\"view_profile.php?name=". $row['name'] ."\" onFocus=\"if(this.blur)this.blur()\">".$row['name']."</a>"; ?></td> <td width="150" align="left" class="cell"><?php echo $row['signup_ip']; ?></td> <td width="250" align="left" class="cell"><?php echo $row['login_ip']; ?></td> </tr> <?php } // while ?> </table> </fieldset> </p> </form> <?php } include('information_bar.php'); ?> <?php require("bottom.php"); ?> add the below code to information_bar.php <a href=\"ipdetails.php\" onFocus=\"if(this.blur)this.blur()\">Player IP Details</a> || Quote
jamiee Posted September 29, 2009 Posted September 29, 2009 Well done, nice little script. I have something like this on my game just a little more advanced. Ill put my one up at some point it may give you a few more ideas. 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.