moos3
10-30-2007, 03:25 AM
I'm trying to figure out the output statements in one using or's but I need to make sure its the best way to out put it.
$sql_test = "SELECT can_seller_custom_attribute_values.custom_attribute_value, can_seller_custom_attribute_values.custom_attribute_id FROM can_seller_custom_attribute_values WHERE can_seller_custom_attribute_values.custom_attribute_id='46' OR can_seller_custom_attribute_values.custom_attribute_id='47' OR can_seller_custom_attribute_values.custom_attribute_id='48' AND can_seller_custom_attribute_values.seller_customers_id = '1'";
$rs = mysql_query($sql_test);
$arry = mysql_fetch_array($rs);
var_dump($arry);
Is that The best way to handle it?
$sql_test = "SELECT can_seller_custom_attribute_values.custom_attribute_value, can_seller_custom_attribute_values.custom_attribute_id FROM can_seller_custom_attribute_values WHERE can_seller_custom_attribute_values.custom_attribute_id='46' OR can_seller_custom_attribute_values.custom_attribute_id='47' OR can_seller_custom_attribute_values.custom_attribute_id='48' AND can_seller_custom_attribute_values.seller_customers_id = '1'";
$rs = mysql_query($sql_test);
$arry = mysql_fetch_array($rs);
var_dump($arry);
Is that The best way to handle it?