MyBB Community Forums

Full Version: SQL Query Append
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok, If I do this in a search of posts by user:

$where_sql .= " AND pid = '0'";

Shouldn't that return a result of none, instead of a result of all posts?

Or, do I have to do a replacement of my that to replace the AND uid = '{$uid}' with AND uid = '0' ?

I'm going to try what while I wait on a response, but looking forward to the response anyways.