Neo139 commented on a Page, CSV to mySQL - Create Table and Insert Data  -  Aug 18, 2013

Thanks!
PHP Notice: Use of undefined constant argv - assumed 'argv' in import.php on line 14
PHP Notice: Undefined variable: columns in import.php on line 35
PHP Notice: Undefined variable: columns in import.php on line 36
to remove the last two warnings change the foreach for:
foreach($frow as $column) {
$ccount++;
if(isset($columns)) $columns .= ', ';
else $columns="";
$columns .= "$column bigint(20)";
}

Hawkee  -  Aug 27, 2013

@Neo139 Thank you, but why bigint rather than varchar?

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.