Quantcast
Channel: WHMCS Community Forums
Viewing all articles
Browse latest Browse all 13458

select_query() where AND/OR

$
0
0
With the select_query() SQL helper, is the where array an AND or an OR?

PHP Code:

select_query("table""id, user", array("field1" => "variable1""field2" => "variable2")); 

Is this saying:

PHP Code:

select `id`, `userfrom `tablewhere `field1`="variable1" AND `field2`="variable2"

OR

PHP Code:

select `id`, `userfrom `tablewhere `field1`="variable1" OR `field2`="variable2"


Viewing all articles
Browse latest Browse all 13458

Trending Articles