LampPi

 

Code


MySQL: INSERT


...
# Add code row
if ((! $error) & ($action == "add_code")) {
# Add code (lp_code table)
$SQL = "INSERT INTO lp_code ";
$SQL .= "(lp_code_order, lp_code_title, lp_code_desc, lp_code_image) ";
$SQL .= "VALUES (";
$SQL .= "'" . $new_lp_code_order . "', ";
$SQL .= "'" . $new_lp_code_title . "', ";
$SQL .= "'" . $new_lp_code_desc . "', ";
$SQL .= "'" . $new_lp_code_image . "'); ";
$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