Mysql - php sorgusu birden fazla parametre kullanılarak dizi sonuçlar almak

0 Cevap php

Ben, aşağıdaki gibi bir mysql tablo var

+---+-------+-----------+   
|Sl | Name  | Status    |
+---+-------+-----------+   
| 1 | Name1 | Active    |
| 2 | Name2 | Inactive  |  
| 3 | Name3 | Pending   |    
| 4 | Name4 | Dont Know |   
| 5 | Name5 | Active    |
+---+-------+-----------+   

I have a sql query $query="select * from table "; which fetch array and give me all records. But I want to display only specific rows with Status= Active or Inactive.

0 Cevap