Check if a row exists using old mysql_* API

前端 未结 6 1474
囚心锁ツ
囚心锁ツ 2020-12-01 15:47

I just want to check and see if a row exists where the $lectureName shows. If a row does exist with the $lectureName somewhere in it, I want the function to return "ass

6条回答
  •  借酒劲吻你
    2020-12-01 16:31

    $result = mysql_query("select if(exists (SELECT * FROM  preditors_assigned WHERE lecture_name='$lectureName'),'Assigned', 'Available')");
    

提交回复
热议问题