Quote:
Originally Posted by DJ29Joesph
ok, if I'm correct the only thing wrong is "u=$name should be a single quote not double
|
If $name is inside a single quote, PHP won't give it a value. It must be inside double quotes, or inside no quotes at all, for PHP to assign a value to $name.
This is why
$allnames["$name[voteoption]"] uses double-quotes instead of single-quotes, too.
Quote:
Originally Posted by php.net
The most important feature of double-quoted strings is the fact that variable names will be expanded. See string parsing for details.
|