I'm getting data from a MySQL database and trying to check if the column has data in it or not. Here's what one of the array elements looks like:
[2] => Array 
(   
        [p_name] => This is text
)
Now I have the following statement:
if($products[2]['p_name'] == 0)
      echo '$products[2][\'p_name\'] == 0';
The output is:
"$products[2]['p_name'] == 0"
Now, is it just me, or is that not make any sense whatsoever?
 
     
     
     
     
    