Php select query with where clause
<?php $query = "Select * from table where id=1"; if(mysqli_query($connection, $query)) { // your code } ?>