<?php
require('path/to/DatabaseAccess.Class.php');
$DbAccess = new DatabaseAccess("yourHost", "dbName", "dbUser", "dbUserPassword");
$ID = "1000"; // Some ID to update
$newFirstName = "Tom";
$newLastName = "Someuser";
$DbAccess->PrepareStatement("UPDATE `UserAccounts` SET `FirstName` = :FirstName, `LastName` = :LastName WHERE `ID` = :ID");
$DbAccess->BindParameter(":ID", $ID);
$DbAccess->BindParameter(":FirstName", $newFirstName);
$DbAccess->BindParameter(":LastName", $newLastName);
$numberOfRowsUpdated = $DbAccess->ExecuteQuery_Non();
|