$sql_v="select * from table WHERE id=id";
$result_v=mysqli_query($segjar,$sql_v);
while($row_v=mysqli_fetch_assoc($result_v)){
if(mysqli_num_rows($resultado_v)==0){
$sql=“Insert into table …”;
}
Is not working
I also try
$sql_v="select * from table WHERE id=id";
$result_v=mysqli_query($segjar,$sql_v);
while($row_v=mysqli_fetch_assoc($result_v)){
if(mysqli_num_rows($resultado_v)>0){
echo " record already exist";
}else{
echo " not exist";
$sql=“Insert into table …”;
}
Print exist records but else condition not do anything