Neballer
03-01-2007, 05:59 AM
<?
import_request_variables('gpc');
include("connect_inc.php");
$query = "UPDATE diesel SET pic_name='$pic_name', date='$date', ";
$query .= "camera='$camera', category='$category', words='$words', topfive='$topfive' ";
$query .= "WHERE id='$id'";
if (mysql_query($query)) {
header("Location:delete_file.php?message=$id, $query more stuff after teh query");
//header("Location: delete_file.php?message=$row[id] - $pic_name: updated");
exit();
}
header("Location: delete_file.php?message=update failed: $query");
exit();
?>
For some reason $id always = 2. It is coming in with the rest of the data on the import_request_variables, and all of that data is correct as well as the form it is coming from.
Any ideas?
import_request_variables('gpc');
include("connect_inc.php");
$query = "UPDATE diesel SET pic_name='$pic_name', date='$date', ";
$query .= "camera='$camera', category='$category', words='$words', topfive='$topfive' ";
$query .= "WHERE id='$id'";
if (mysql_query($query)) {
header("Location:delete_file.php?message=$id, $query more stuff after teh query");
//header("Location: delete_file.php?message=$row[id] - $pic_name: updated");
exit();
}
header("Location: delete_file.php?message=update failed: $query");
exit();
?>
For some reason $id always = 2. It is coming in with the rest of the data on the import_request_variables, and all of that data is correct as well as the form it is coming from.
Any ideas?