[code=php]$trlocation = $_POST[location];
$locno = $_POST[locno];
$traid = $_POST[traid];
$type = $_POST[type];
$owner = $_POST[owner];
$notes = $_POST[notes];
$username = $_SESSION[username];
$filename = $uploadFilename;
$db->query(“INSERT INTO uploads (Location, Locno, Traid, Date, Type, Owner, Notes, author, filename)
VALUES (‘$trlocation’,’$locno’,’$traid’, now(), ‘$type’,’$owner’, ‘$notes’, ‘$username’,’$filename’)”);
This is the part of an upload script where it adds the upload form data into the database. The file is uploaded, but it doesn’t add the data.
I cant seem to find a decent validator. Can someone point out if ive made some kind of awful error.