pastes a bullseye to a concrete wall
proceeds to bang ahead against bulls-eye
The filename is supposed to be inserted. I asked you what was actually inserted because you said it wasn't working.
Is it working or not?
brcolow, change your code from:
$sql ="INSERT INTO `revscreenshots` (id, name) VALUES ('$id', '$name')";
$result = mysql_query($sql);
if ($result)
echo "Your screenshot has been uploaded to the database.";
to:
$sql ="INSERT INTO `revscreenshots` (id, name) VALUES ('$id', '$name')";
echo $sql . "<br>";
$result = mysql_query($sql);
if(mysql_error() != "")
{
echo "mysql said: " . mysql_error();
die();
}
Once again, like I've said in the past, perform tests to see if what you did actually worked. Don't just assume.
Printing out the sql statement will let you see what the database is recieving. (If it's not working, this is most likely the problem, and seeing it should let you know why.)
Printing out mysql_error() will tell you what the database thought about it.