Question : if column empty

See my code attached.

The first few rows show my database details, then I have got a if statement below.

My problem is I want the IF EMPTY statement to be for all the rows in the "orig_code" column. Currently it is working based on the first row.

How do I make it say if the "orig_code" column is empty? Thanks
1:
2:
3:
4:
5:
6:
7:
8:
9:
mysql_select_db($database_conn_selectech, $conn_selectech);
$query_rs_ink = "SELECT * FROM ink WHERE ink_group_id = ".$row_rs_ink_group['id']." ORDER BY capacity ASC";
$rs_ink = mysql_query($query_rs_ink, $conn_selectech) or die(mysql_error());
$row_rs_ink = mysql_fetch_assoc($rs_ink);
$totalRows_rs_ink = mysql_num_rows($rs_ink);

<?php if(!empty($row_rs_ink['orig_code'])) { ?>
    Text Here
    <?php } ?>

Answer : if column empty

change the query as


$query_rs_ink = "SELECT * FROM ink WHERE ink_group_id = ".$row_rs_ink_group['id']." and orig_code is null ORDER BY capacity ASC";
$rs_ink = mysql_query($query_rs_ink, $conn_selectech) or die(mysql_error());
$row_rs_ink = mysql_fetch_assoc($rs_ink);
$totalRows_rs_ink = mysql_num_rows($rs_ink);

<?php if(totalRows_rs_ink > 0) { ?>
    Text Here
    <?php } ?>
Random Solutions  
 
programming4us programming4us