video 6 ended up being longer than I thought, had to split in to 2 videos

http://www.youtube.com/watch?v=8acMs9mkUCM
Code: Select all
<html>
<body>
<form method="post" action="skillform.php">
<center>
<p>Every Character can have up to 20 skills. but some are limited to low levels</p>
<br>
1st Skill:<input type="text" name="1st" size="20"><br>
1st Sword style skill [Offensive Form]<br><br><br>
<input type="submit" name="save">
</center>
</body>
</html>
Code: Select all
<?php
include 'connect.php';
?>
<?php
$skill=$_POST['1st'];
$isplayer="SELECT * from skills where skill='$skill'";
$isplayer2=mysql_query($isplayer) or die("Could not query players table");
$isplayer3=mysql_fetch_array($isplayer2);
$SQL = "INSERT into skills(skill, power, defense) VALUES ('$skill','5','0')";
mysql_query($SQL) or die("could not register");
print "Sword Style Skill/Form updated.";
?>
Code: Select all
<html>
<body>
<form action="skillform.php">
<select name="Offensive">
<option value="Slash">Slash</option>
<option value="Strike">Strike</option>
<option value="Pummel">Pummel</option>
</select>
</form>
</body>
</html>
Code: Select all
<html>
<body>
<form action="skillform.php">
<select name="Offensive">
<option value="Slash">Slash</option>
<option value="Strike">Strike</option>
<option value="Pummel">Pummel</option>
</select>
</form>
</body>
</html>