I am normally a very good php user but that's relative.
I am tring to make a system where you upload multiple things to a mysql database. Here is an example of the code:
Yet this brings me to this:
Parse error: parse error, unexpected T_VARIABLE, expecting ']' in ****
Obviously it's the _POST[] variables with a sub variable. I am told that I could do that but when I remove the ' marks then another error shows.
also seen on sitepoint
I am tring to make a system where you upload multiple things to a mysql database. Here is an example of the code:
PHP:
$query = "INSERT INTO images VALUES (\"\", \"$_POST['title$num']\", \"$_POST['description$num']\" ) ";
Parse error: parse error, unexpected T_VARIABLE, expecting ']' in ****
Obviously it's the _POST[] variables with a sub variable. I am told that I could do that but when I remove the ' marks then another error shows.
also seen on sitepoint







