LampPi

 

Code


MySQL: DELETE


# Delete code row
if ($action == "remove_code") {
# Reset $error
$error = "";

# Delete code (lp_code table)
$SQL = "DELETE FROM lp_code ";
$SQL .= "WHERE lp_code_id = '" . $codeRowID . "'; ";
$result = $mysqli_link->query($SQL);

# Any errors?
if ($mysqli_link->error) {
# DB error
$error = "Database error: " . $mysqli_link->error;
}
}


About

Contact

Links

Site Map

© LampPi 2018