警告:mysqli_ERROR()需要精确的一个参数,0给定的错误
$query = mysqli_query($myConnection, $sqlCommand) or die (mysqli_error());
session_start();require_once "scripts/connect_to_mysql2.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()); $menuDisplay = '';while ($row = mysqli_fetch_array($query)) {
$pid = $row["id"];
$linklabel = $row["linklabel"];
$menuDisplay .= '<a href="index.php?pid=' . $pid . '">' . $linklabel . '</a><br />';} mysqli_free_result($query);$myConnection = mysqli_connect("$db_host","$db_username","$db_pass","$db_name") or die ("could not connect to mysql");
with reference to $myConnection, why do I get this error?
慕的地6264312
眼眸繁星
慕标琳琳
随时随地看视频慕课网APP