
08/07/2011, 19:46
|
| | Fecha de Ingreso: noviembre-2007
Mensajes: 118
Antigüedad: 17 años, 4 meses Puntos: 0 | |
duda con query quiero hacer una consulta mediante php y quiero que sea algo asi:
WHERE date>=1309746780 AND ad_type LIKE '%sale%' AND publish=1 ORDER BY price
pero solo haga el date>= cuando el valor de la celda HEADLINE SEA <9 si es mayor que 9, que no haga el where date
algo asi
where ad_type LIKE '%sale%' AND publish=1 and date>=1309746780 and headline <=9 or where ad_type LIKE '%sale%' AND publish=1 and headline >9
pero no se si es posible asi |