/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$sql = "INSERT INTO table(field1, field2, field3..."; { $sql .= "VALUES(" foreach($fields as $field) { $sql .= "$field, "; } $sql .= "), "; }