i've just learn how to store data from checkboxes, and this is it..
if(isset($_POST['Injured_person']))
{
$values = implode(",", $_POST['Injured_person']);
$query = "INSERT INTO position (Injured_person) VALUES('$values')";
mysql_query($query) or die("Error inserting into position: ".mysql_error());
}
if(isset($_POST['Type']))
{
$values = implode(",", $_POST['Type']);
$query = "INSERT INTO const_acc (Type) VALUES('$values')";
mysql_query($query) or die("Error inserting into const_acc: ".mysql_error());
}
{
if(isset($_POST['Location']))
{
$values = implode(",", $_POST['Location']);
$query = "INSERT INTO const_location (Location) VALUES('$values')";
mysql_query($query) or die("Error inserting into const_location: ".mysql_error());
}
and now, how im gonna retrieve/search back of what value that have been stored?
i mean, i wanted to create a 'Search' button, to search for any value from the checkboxes..