Im using adodb and want to have the count of affected rows of an update statement:
$sql = "UPDATE newsletter
SET
datetime_confirm = NOW(),
confirmation_code = NULL
WHERE
confirmation_code = ?";
$sqlP = $db->Prepare($sql);
$prepareVals = array($confirmationCode);
$result = $db->Execute($sqlP, $prepareVals);
In my example there is one entry with the given confirmation_code in the newsletter table. So one row gets updatet. So I need the count '1'.
Edit: Not a dublicate because Im searching for a specific method of the adodb framework which archive this.