MyBB Community Forums

Full Version: Help me to understand this query?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Could you please explain what is the difference between these queries?


$query = $db->query("SELECT * FROM " . TABLE_PREFIX . "threads

$query = $db->simple_select("threads",
You use the simple_select method when you are only selecting data from one table. It also automatically prepends the table prefix to the name of the table. The query method is used when you need to select data from multiple tables by using a JOIN.
Thanks buddy very much for your AWESOME support.