Simple PHP function won't Update!?

Lauren

New member
This is basically my Code...


--------------------------------------------------------------------------------------------------------------------------------------------------




<?
include ("header.php");
include ("protectcontent.php");
include ("alert.php");




if (isset($_POST['mitte']))
{

$fdigit =($_POST['furret']);



$updayte = mysql_query("UPDATE items SET ferretid = '$fdigit' WHERE itemid = $_GET[id]");


?> <CENTER>Request Complete! C: </CENTER><?

include ("footer.php"); die(); } ?>


<?
$bedluv = mysql_query("SELECT * FROM items WHERE itemid = '$_GET[id]'");
$pocoyomo = mysql_fetch_array($bedluv);
$itemname = $pocoyomo['name'];
$itemdescription = $pocoyomo['description'];
$imageurly = $pocoyomo['imageurl'];


?>

<form action=/viewitem.php method=post>
<table style="border:1px solid #4A795B;" width=30% cellpadding=5% align=center colspan=2>
<tr>
<td style="border:1px solid #4A795B;" align=center bgcolor=#599B71 colspan=2><b><? echo $itemname; ?></b></td></tr>
<tr>
<td style="border:1px solid #4A795B;" align=center colspan=2><img src="<? echo $imageurly; ?>" border="0"></td></tr>
<tr>
<td style="border:1px solid #4A795B;" align=center bgcolor=#599B71><input type="text" name="furret" value="Enter Ferret ID here!" /></td>
<td style="border:1px solid #4A795B;" align=center bgcolor=#599B71><input type=submit name="mitte" value="Assign."></td></tr>
</table>
</form>

<br>



<b><CENTER>Temporary!!</b>
<br> This is a temporary Fix until i have the time to work on Presentation "/ </center>






<? include ("footer.php"); ?>



---------------------------------------------------------------------------------------------------------------------------------------------


Okay, so what am i doing wrong? I've check MILLIONS of times to see if the Database names are correct, and infact everything seems right to me.
 
Back
Top