Page 1 of 1

why do I get this unexpected T_STRING error?

Posted: Sat Mar 19, 2011 7:27 pm
by someguyhere
Does anyone see anything wrong with the line of code below? It's giving me an error of: Parse error: syntax error, unexpected T_STRING

Code: Select all

	$wpdb->update('wp_network_members', $insert_member_data, WHERE f_name = $insert_member_data['f_name'] AND l_name = $insert_member_data['l_name']);

Re: why do I get this unexpected T_STRING error?

Posted: Sat Mar 19, 2011 7:57 pm
by Weirdan
there's obviously a syntax error. Did you mean to put double quotes before WHERE and before last closing brace?