monkeybidz Posted January 11, 2009 Share Posted January 11, 2009 I am using this query, but I get nothing back for entry_state which is NULL. Can someone help me fizx this query? Here is the query: $sql = tep_db_query("SELECT entry_street_address, entry_city, entry_state, entry_postcode from " . TABLE_ADDRESS_BOOK . " WHERE customers_id = '" . (int)$customer_id . "'"); $account2 = tep_db_fetch_array($sql); Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/140362-sql-null-item/ Share on other sites More sharing options...
trq Posted January 11, 2009 Share Posted January 11, 2009 What exactly do expect to get back if the field is NULL? Link to comment https://forums.phpfreaks.com/topic/140362-sql-null-item/#findComment-734514 Share on other sites More sharing options...
monkeybidz Posted January 11, 2009 Author Share Posted January 11, 2009 I am trying to get the information stored in database for that table. Link to comment https://forums.phpfreaks.com/topic/140362-sql-null-item/#findComment-734518 Share on other sites More sharing options...
corbin Posted January 11, 2009 Share Posted January 11, 2009 But uhhh.... If something is NULL, then there is no data. Link to comment https://forums.phpfreaks.com/topic/140362-sql-null-item/#findComment-734527 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.