Inserting the array in to table -Mysql
All array indexes should be same as column name.
$sql = "INSERT INTO coreg_lead (".implode(",", array_keys($dbFields)).")
VALUES ('".implode("','", array_values($dbFields))."')";
All array indexes should be same as column name.
$sql = "INSERT INTO coreg_lead (".implode(",", array_keys($dbFields)).")
VALUES ('".implode("','", array_values($dbFields))."')";
Php Mysql
No comments:
Post a Comment