function get_submenu($parent)
{
db_connect();
$result = mysql_query("SELECT * FROM menu WHERE parent='$parent' ORDER BY id");
while($row = mysql_fetch_assoc($result))
{
$res_array[] = $row;
}
return $res_array;
}
Notice: Undefined variable: res_array in /Menu/view/config.php on line 47
function get_submenu($parent)
{
db_connect();
$result = mysql_query("SELECT * FROM menu WHERE parent='$parent' ORDER BY id");
$res_array = [];
while($row = mysql_fetch_assoc($result))
{
$res_array[] = $row;
}
return $res_array;
}