Add voting options
Here you need to query and display all the voting questions that have been added:
query("select * from votename"); while($row = mysqli_fetch_assoc($result)){ ?>
All codes:
onload = function(){document.getElementById('errortext').innerHTML='请选择问题!';}"; }else{ $result = $db->query("insert into voteoption (optionname, upid, votenum) values ('$voteoption', '$subject', '0')"); if($result){ echo ""; }else{ echo ""; } } } ?>
Show results: