Hey guys, I'm making a jeopardy game in PHP to better myself. I've been working on it for a couple days, and i ran into a problem making an Edit category Name system. i can connect to the db fine, and insert data fine, but i can't figure out how to make it send all five textfields to their ID spot in `sections`. I have id's one through five, but i can't figure out how to send it all to the database. i get some unexpected T_VARIABLE error on line 7, which is
<?php
include 'jepconfig.php';
$name=$_POST['secname'];
$idnum=$_POST['idnum'];
$query="INSERT $name INTO sections WHERE id="$idnum""
$result = mysql_query($query)
?>
I may have done something wrong in that one, but nothing else i tried has worked either. Can someone help? I can upload the game of what i have so far if needed.