JamesGMills
Programmer
OK... so over and over i have the problem of not being able to add the header location below any other code.
My question is how do i go about doing the below if i can not get the id first?
include ("inc_functions.php");
$sectionName = $_POST['sectionName'];
$q = functionQuery("INSERT INTO sections (id, name) VALUES ('', '$sectionName')");
$id = mysql_insert_id();
header ("Location: section_editor.php?section=$id");
My question is how do i go about doing the below if i can not get the id first?
include ("inc_functions.php");
$sectionName = $_POST['sectionName'];
$q = functionQuery("INSERT INTO sections (id, name) VALUES ('', '$sectionName')");
$id = mysql_insert_id();
header ("Location: section_editor.php?section=$id");