Jump to content

Syntax Error


unemployment

Recommended Posts

I have a MySQL syntax error.  Anyone know why?

 

$sql = "SELECT `user_id`, `friend_id` WHERE `user_id` OR `friend_id` = '${user_info['uid']}'";

 

UPDATE:

hmmm I'm guessing I forgot FROM :)

 

UPDATE:

My OR is still not working

 

$sql = "SELECT `user_id`, `friend_id` FROM `partners` WHERE `user_id` OR `friend_id` = '${user_info['uid']}'";

Link to comment
https://forums.phpfreaks.com/topic/232408-syntax-error/
Share on other sites

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.