Jump to content
php.lv forumi

MySQL query


KillerBean

Recommended Posts

Kjipa query's:

$query = "SELECT aaa, bee FROM table WHERE aaa<=100 AND bee='viens' ASC";

 

tiek atlasiiti ieraxti kur bee ailee ir 'viens' a ja vajag atlasiit taadus kur bee ailee ir 'viens' vai 'divi'

 

$query = "SELECT aaa, bee FROM table WHERE aaa<=100 AND bee='viens' OR bee='divi' ASC";

 

un jautaajums ir par to OR lietoshanu vai vinja buus pareiza??! vai neiznaak, ka ir:

a) aaa<=100 && bee='viens'

b) bee='divi'

Link to comment
Share on other sites

×
×
  • Create New...