Code: Select all
<?
session_start();
if($havepet==1){
?>
You already have a pet, you cannot create another!
<?
}else{
printf("<?
mysql_connect("localhost","bladegames", "****");
mysql_select_db("bladegames");
session_start();
$id=$row->userid;
session_register("$userid");
if($submit=="Create my pet")
{
mysql_query("UPDATE bb1_user_table SET petname = '$petname', pet = '$pet', pic = '$pic', hp = '10', maxhp = '10', str = '7', def = '5', speed = '8', lv = '1', intl = '6'
WHERE userid = '$user_id'");
}
You have choosen Belron!
Belron is a Crocodile-like ZeoPet. Enter/View some information below about your pet:
<form method=post action="Belron.php">
</head>
<b>
<br>
Pet Name
<br>
</b>
<input type=text size=15 name="petname">
<br>
<b>
<br>
Pet Type
<br>
</b>
<select name="pic">
<option value="Belron.bmp">Belron</option>
</select>
<br>
<b>
<br>
Pet Color
<br>
</b>
<select name="pet">
<option value="Belron">Green</option>
</select>
<br>
<input type=submit name=submit value="Create my pet">
<input type=reset name=reset value="Clear">
<br><br>
</form>
<br><br>
<hr>
<font color="red" size=3><center><u>Belron's Stats</u></center></font><br>
<font color="black">Level:<font color="green">1<br>
<font color="black">Hp:<font color="green">10<br>
<font color="black">Strength:<font color="green">7<br>
<font color="black">Defense:<font color="green">5<br>
<font color="black">Speed:<font color="green">8<br>
");
}
?>