Been trying to figure this out for too long, here is my code
else if(isset($_POST['mytrigger1']))
{
$title1 = ($_POST['titleHOME']);
$title2 = ($_POST['titleLEARN']);
$title3 = ($_POST['titleVTOUR']);
$title4 = ($_POST['titleTRIVIA']);
$title5 = ($_POST['titleALBUMS']);
$title6 = ($_POST['titleFAQS']);
$stmt = $mysqli->prepare("UPDATE page_title set PAGETITLE = 'title1' where PAGENAME='HOME',PAGETITLE = 'title2' where PAGENAME='LEARN'");
$stmt->execute();
}
I want to update multiple rows with multiple where clauses.
WHEREand useANDorORnot commas for WHERE conditions.$title1,$title2, etc.