Nieuw lid |
|
<table border=0 cellpadding=0 cellspacing=0 width=453>
<tr><td width=500 background="images/titmain.jpg" height=30><table height=100%><tr><td width=10></td><td class="body" valign="bottom"><b>Add Achievement</b></td></tr></table></td></tr>
<tr><td background="images/mainback.jpg">
<?php
include('connectdb.php');
if(isset($_POST['submit'])) {
$cat = $_POST['cat'];
$ranking = $_POST['ranking'];
$place = $_POST['place'];
$game = $_POST['game'];
$type = $_POST['type'];
$query = "INSERT INTO achievements(cat, ranking, place, game, type) VALUES ('$cat', '$ranking', '$place', '$game', '$type')";
mysql_query($query) or die(mysql_error());
?>
<table class="body">
<tr><td width=15></td><td class="body">
Achievement has been added. Thank you.
<?php
}
else {
?>
<table class="body">
<tr><td width=15></td><td class="body">
<form action="index.php?page=addachievement" method="POST">
Categorie:<br><select name="cat" class="body">
<option value="Counterstrike">Counterstrike
<option value="Other Games">Other Games
</select><br />
Ranking:<br><input type="text" name="ranking" class="body"><br>
Place:<br><input type="text" name="place" class="body" value=""><br>
Game:<br><input type="text" name="game" class="body"><br>
Type:<br><input type="text" name="type" class="body"><br>
<input type="submit" name="submit" value="Submit">
</form>
<?php
}
} else {
print("ERROR: You are not permitted to do this!");
}
?>
</td><td width=25></td></tr>
</table>
</td></tr>
<tr><td background="images/mainbottom.jpg" height=30>
</td></tr>
</table>
<table border=0 cellpadding=0 cellspacing=0 width=453> <tr><td width=500 background="images/titmain.jpg" height=30><table height=100%><tr><td width=10></td><td class="body" valign="bottom"><b>Add Achievement</b></td></tr></table></td></tr> <tr><td background="images/mainback.jpg"> <?php include('connectdb.php'); if(isset($_POST['submit'])) { $cat = $_POST['cat']; $ranking = $_POST['ranking']; $place = $_POST['place']; $game = $_POST['game']; $type = $_POST['type']; $query = "INSERT INTO achievements(cat, ranking, place, game, type) VALUES ('$cat', '$ranking', '$place', '$game', '$type')"; ?> <table class="body"> <tr><td width=15></td><td class="body"> Achievement has been added. Thank you. <?php } else { ?> <table class="body"> <tr><td width=15></td><td class="body"> <form action="index.php?page=addachievement" method="POST"> Categorie:<br><select name="cat" class="body"> <option value="Counterstrike">Counterstrike <option value="Other Games">Other Games </select><br /> Ranking:<br><input type="text" name="ranking" class="body"><br> Place:<br><input type="text" name="place" class="body" value=""><br> Game:<br><input type="text" name="game" class="body"><br> Type:<br><input type="text" name="type" class="body"><br> <input type="submit" name="submit" value="Submit"> </form> <?php } } else { print("ERROR: You are not permitted to do this!"); } ?> </td><td width=25></td></tr> </table> </td></tr> <tr><td background="images/mainbottom.jpg" height=30> </td></tr> </table>
Parse error: parse error in c:\program files\easyphp1-8\www\ts\addachievement.php on line 37
|