hey guys i simplify my code but i still have a little syntax problem i cant solve, please help
<?php
include("connect.php");
ini_set('display_errors', 'Off');
if(isset($_POST['submitted'])){
$choice = $_POST['placeInLine'];
$query = "SELECT `choice` FROM `placeinline`";
$result = mysql_query($query );
if($query_run = mysql_query($query) ){
echo 'good';
}else{
echo mysql_error();
}
$disab = '' ;
$row = mysql_fetch_row($result);
if($choice==$row){
$disab = 'disabled';
}
<form id= "line" name="line " action="test1.php" method="post">
echo "<li> <input type='radio' name='placeInLine' id='choice1' $disab value='1' /> 10:00-10:15 </li>";
echo "<li> <input type='radio' name='placeInLine' id='choice2' $disab value='2' /> 10:15-10:30 </li>";
echo "<li> <input type='radio' name='placeInLine' id='choice3' $disab value='3' /> 10:30-10:45 </li>";
echo "<li> <input type='radio' name='placeInLine' id='choice4' $disab value='4' /> 10:45-11:00 </li>";
echo "<li> <input type='radio' name='placeInLine' id='choice5' $disab value='5' /> 11:00-11:15 </li>";
echo "<li> <input type='radio' name='placeInLine' id='choice6' $disab value='6' /> 11:15-11:30 </li>";
</form>
mysql_query("INSERT INTO $table(choice) VALUES ($choice)") or die(mysql_error());
$sqlinsert = "INSERT INTO placeinline (choice) VALUES ($choice)";
$newrecord = "1 choice added to the line";
echo $newrecord;
}
?>