- foghorn
- Oct 9, 2006
-
Haters gunna hate.
|
I've been banging my head against the wall over this one all night.
The following throws an T_ENCAPSED_STRING error, assume properly passed variables from HTML form:
code:$description = addslashes($description);
$query = "INSERT INTO nations (name, description, population, flag, active, language, mod, kind, password) VALUES ('".$name"', '".$description."', '".$population."', '".$flag."', ".$active.", '".$language."', '0', '".$type."', '".$password."')";
mysql_query($query) or die(mysql_error());
Everything else on that page is used elsewhere in the app somewhere, so I know it's not the problem.
|
#
¿
Dec 11, 2007 08:57
|
|
- Adbot
-
ADBOT LOVES YOU
|
|
#
¿
May 2, 2024 20:09
|
|
- foghorn
- Oct 9, 2006
-
Haters gunna hate.
|
Alex007 posted:
You missed a period after $name :code:(...) VALUES ('".$name[u].[/u]"', (...)
Thanks. Guess I just needed a second pair of eyes!
|
#
¿
Dec 11, 2007 16:47
|
|