How to check if MySQL returns null/empty?

前端 未结 6 1430
一个人的身影
一个人的身影 2020-12-08 07:38

In DB I have a table with a field called fk_ownerID. By default, when I add a new table row, the fk_ownerID is empty. In Toad for MySQL, this is sh

6条回答
  •  隐瞒了意图╮
    2020-12-08 08:21

    Suppose

    $row=mysql_fetch_row($rc)
    and if you want to check if row[8] is null then do
    $field=$row[8];
       if($field)
    echo "";
    else
     echo ""; 
    

提交回复
热议问题