Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
dg:greenbox:add [14 Sep 2011 21:47] – james | dg:greenbox:add [14 Sep 2011 21:49] – 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[Year]','$_POST[Type]','$_POST[Freq]','$_POST[Class]','$_POST[Description]','$_POST[Comments]','$_POST[SAN]','$_POST[Contributor]','$_POST[Email]','$_POST[MoreInfoURL]','$_POST[Cell]')"; | VALUES ('1999','Mundane','0','Weapon','Webley Service Revolve','six shot .455 revolver','0/0','James Kemp','james@clwg.org','','')"; |
$result = mysql_query($query) | $result = mysql_query($query) |
or die ("Couldn't execute query."); | or die ("Couldn't execute query."); |