yukarıdaki referans harika, ama ya dizelerle oynuyorsanız?
Burada olur
// Build this query:
// SELECT product_id, product_name, price
// FROM "products"
// WHERE (product_name = 'Bananas' OR product_name = 'Apples')
// AND (price = 100)
$name1 = 'Bananas';
$name2 = 'Apples';
$price = 100;
$select = $db->select()
->from('products',
array('product_id', 'product_name', 'price'))
->where("product_name = '" . $name1 . "' OR product_name = '" . $name2 . "'")
->where("price=?", $price);
Bunu umut olur ... dizeleriyle Yukarıdaki örnek. Dizeleri düzgün çalışması için beni kandırmaya çalıştım.
Şerefe.
Cevabınız için teşekkürler, minnettarım. –