Tags
Asked 3 years ago
17 Jun 2021
Views 264
Katlynn

Katlynn posted

WHERE clause in php MYSQL

WHERE clause in php MYSQL
jignesh

jignesh
answered Aug 30 '21 00:00

so basically you asking how to use WHERE clause in PHP MySQL?
it is very easy to use where clause in PHP MySQL.
Suppose the following query we are using:
select * from student where student_name='Mike'


$select_query="select * from student where student_name='Mike'";
$result_set=mysqli_query($connection_object,$select_query);
$row=mysqli_fetch_array($result_set);


as you can see, you can use the mysqli_query function to run the select query with where clause

Post Answer