lundi 18 juillet 2016

issue with mysqli function [duplicate]

This question already has an answer here:

My page displays this error "mysqli_query() expects at least two parameters, one given on line $result=mysqli_query($connect);" Here is my code:

mysqli_query($connect,"SELECT 
*FROM $tbl_name WHERE phone    
='$phone' and        
password= '$password'");
$result=mysqli_query($connect);
$count=mysqli_num_rows  
($result);
if($count==1){
....}

Aucun commentaire:

Enregistrer un commentaire