Check if email already exists in database

后端 未结 4 1509
萌比男神i
萌比男神i 2021-01-29 04:28

I have a quiz form that is connected to my database, however I need to prevent duplicate email entries being inserted. I have tried the following:

//Check for d         


        
4条回答
  •  南方客
    南方客 (楼主)
    2021-01-29 04:56

    Change mysql_result to mysql_num_rows as below first function and try.

    $result = mysql_num_rows(mysql_query($sql),0) ;
    

提交回复
热议问题