I’m trying to submit user data into an SQL database from a PHP file, the data is working fine since I’ve echo tested it. My problem is none of the data is being saved to the database.
I’ve outputted from the same database and it’s working correctly.
Can anyone spot anything wrong with the code?
fields: track band genre filepath album id
$genre = $_POST['genre'];
mysql_query(
"INSERT INTO music(
track,
band,
genre,
filepath,
album)
VALUES(
'".$bandtag."',
'".$info[2]."',
'".$genre."',
'".$target_path."',
'".$album."'
");
$_SESSION['page_upload_progress'] = "test";