joomler
answered Aug 25 '21 00:00
select statement with where clause which getting value from PHP
treat SQL statement as string and append the value from PHP as needed for example :
$student_fname='Mike';
$select="select * from student where `first_name`='".$student_fname."'";
mysqli_query($select);
above query will find the student who have name is "Mike"