/ Published in: PHP
user modding for a forum based gaming website (file used in password protected directory)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<body> <center> <?php /*connection data was moved to ext file '/connect/main.php'*/ mysql_connect("localhost", "gamemer1_removed", "removed") or die('Could not connect to Serv: ' . mysql_error()); if ($result == FALSE) { echo "Bad key result was returned"; } else { ?> <form action="insert.php" method="post"> Name <input type="text" name="ename" /><br> HWID <input type="text" name="ehwid" /><br> <input type="Submit" /> </form> <br><br><br> <table border="0" cellspacing="2" cellpadding="2"> <tr> <td><font face="Arial, Helvetica, sans-serif">Group ID</font></td> <td><font face="Arial, Helvetica, sans-serif">User Name</font></td> <td><font face="Arial, Helvetica, sans-serif">HWID</font></td> </tr> <?php $entry_name = $_POST['username']; $inhwid = $_POST['inhwid']; $id = $row['member_group_id']; $name = $row['name']; $hwid = $row['hwid']; ?> <tr> <td><font face="Arial, Helvetica, sans-serif"><?php echo $id; ?></font></td> <td><font face="Arial, Helvetica, sans-serif"><?php echo $name; ?></font></td> <td><font face="Arial, Helvetica, sans-serif"><?php echo $hwid; ?></font></td> </tr> <?php } } ?> </center> </body>