why do I get this unexpected T_STRING error?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
someguyhere
Forum Contributor
Posts: 181
Joined: Sun Jul 27, 2008 3:24 pm

why do I get this unexpected T_STRING error?

Post 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']);
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: why do I get this unexpected T_STRING error?

Post by Weirdan »

there's obviously a syntax error. Did you mean to put double quotes before WHERE and before last closing brace?
Post Reply