Nie wiem dla czego pokazał mi się taki błąd
Warning: mysqli_query() expects parameter 1 to be mysqli, string given in /home/twojhost/public_html/panel/funkcje.php on line 108 Warning: mysqli_error() expects parameter 1 to be mysqli, string given in /home/twojhost/public_html/panel/funkcje.php on line 110
To jest funkcja łączenia i zapisu mysqli działała mi to a teraz o coś mu chodzi ale nie wiem o co.
To moja funkcja
function dbquery($link,$query) { $result = mysqli_query($link, $query); if (!$result) { return false; } else { return($result); } }
A tak łącze sie z bazą danych
$link = mysqli_connect($db_host, $db_user, $db_pass, $db_name);
O co mu chodzi. Proszę pomuszcie