I have been working on this issue for the past few days.
PHP Fatal error: Column 'country_code' cannot be null in /home/jharvard/vhosts/pset8/includes/functions.php on line 57
initially i had defined my database insertion check-loop condition to be: while ($line = fgetcsv($usfile, 0, "\t") !== false)
but after using (as per the man page for fgetcsv): while (($line = fgetcsv($usfile, 0, "\t")) !== FALSE)
I got my "import" file working
My question here is,what is the difference between these loops:
while (($line = fgetcsv($usfile, 0, "\t")) !== FALSE)
while ($line = fgetcsv($usfile, 0, "\t") !== FALSE)