Skip to content

Sample code to save local array back to database with custom edit script

$stmt = $dbh->prepare("INSERT INSERTO MYTABLE SET column1=:columnValue1 AND column2 =:columnValue2");
    $stmt->bindParam(':columnValue1', $_POST['c1'], PDO::PARAM_STR);
    $stmt->bindParam(':columnValue2', $_POST['c2'], PDO::PARAM_STR);
    $stmt->execute();

Feedback and Knowledge Base