Jump to content

[SOLVED] unexpected T_CONSTANT_ENCAPSED_STRING


tidus97

Recommended Posts

hi guys. in my bit of code here:

 

	$query = "UPDATE users SET ".${'poll'.$pollId}." = '1' WHERE id='".$userArray[id]"'";
	mysql_query($query) or die(mysql_error());  

 

pollId is equal to 1

userArray[id] is also equal to one.

 

what i would expect query to be is:

UPDATE users SET poll1 = '1' WHERE id='1'

 

?

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.