Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
dg:greenbox:add [14 Sep 2011 21:41] – james | dg:greenbox:add [14 Sep 2011 21:44] – james |
---|
| |
$query = "INSERT INTO Items (Year,Type,Freq,Class,Description,Comments,SAN,Contributor,Email,MoreInfoURL,Cell) | $query = "INSERT INTO Items (Year,Type,Freq,Class,Description,Comments,SAN,Contributor,Email,MoreInfoURL,Cell) |
VALUES ('$_POST[0]','$Type','$Freq','$Class','$Description','$Comments','$SAN','$Contributor','$Email','$MoreInfoURL','$Cell')"; | VALUES ('$_POST[Year]','$Type','$Freq','$Class','$Description','$Comments','$SAN','$Contributor','$Email','$MoreInfoURL','$Cell')"; |
$result = mysql_query($query) | $result = mysql_query($query) |
or die ("Couldn't execute query."); | or die ("Couldn't execute query."); |
<br> | <br> |
<b>Add as much detail as you can in the form below, fields which cannot be blank are indicated with an Asterisk <font color=red>*</font></b> | <b>Add as much detail as you can in the form below, fields which cannot be blank are indicated with an Asterisk <font color=red>*</font></b> |
<form action="/doku.php/dg/greenbox/add" method="get"> | <form action="/doku.php/dg/greenbox/add" method="post"> |
<table> | <table> |
<tr> | <tr> |