I am trying to follow a YouTube tutorial to build a CMS. I am starting to get really confused about the error messages it's creating. I get the following error'Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /home/a8241081/public_html/index.php on line 7'Is my code right? Should there be a mysqli_select statement?\[code\]<?php$db_host = "********";$db_username = "******"; $db_pass = "*******"; $db_name = "********";mysqli_connect("$db_host","$db_username","$db_pass", "$db_name") or die ("could not connect to mysql"); ?><?phpsession_start();require_once "scripts/connect_to_mysql.php";//Build Main Navigation menu and gather page data here$sqlCommand = "SELECT id, linklabel FROM pages ORDER BY pageorder ASC";$query = mysqli_query($myConnection,$sqlCommand) or die (mysqli_error($myConnection));$menuDisplay='';while ($row=mysqli_fetch_array($query)){ $pid=$row["id"]; $linklabel=$row["linklabel"]; $menuDisplay .='<a href="http://stackoverflow.com/questions/10555118/index.php?pid=' . $pid . '">' . $linklabel . '</a><br/>'; } mysqli_free_result($query); //mysqli_close($myConnection); ?>\[/code\]Thanks