• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Insert NULL in database

I have a table in the database for countries and states. The states have a parent_id-column pointing on the country they belong to. The countries should have NULL as there parent.

To save new countries/states I have i simple page with i text box for name and one drop list with countries. The first value in the drop list are NULL.

How can I store that in database? Codeigniter puts ' around NULL. How can I force CI to use onlu NULL?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.