i have never dont this before and i have been trying to figure out how to do it but im stumped
the code i have is:
require_once "../includes/connect.php";

$htmlpage = $_REQUEST["htmlpage"];

$pageid = $_REQUEST["pageid"];
$pagename = $_REQUEST["pagename"];
$indexname = $_REQUEST["indexname"];
$indexurl = $_REQUEST["indexurl"];
$doctitle = $_REQUEST["doctitle"];
$showing = $_REQUEST["showing"];
$header = $_REQUEST["header"];
$contenttitle = $_REQUEST["contenttitle"];
$content = $_REQUEST["content"];
$datemodifed = $_REQUEST["datemodifed"];


mysqli_query("UPDATE Persons SET pagename='$pagename', indexname='$indexname', indexurl='$indexurl', doctitle='$doctitle', showing='$showing', header='$header', contenttitle='$contenttitle', content='$content', datemodifed='$datemodifed' WHERE pagename='homepage'");


the error of that code is:
Warning: mysqli_query() expects at least 2 parameters, 1 given

any help is appreciated