Wybierz PHP / MYSQL używając mysqli_query

Walczę z moim skryptem i od momentu przejścia na mysqli nie będzie już działać. Sprawdziłem podręcznik PHP, ale nie widzę, co robię źle, z pewnością błąd początkujących.

Oto mój kod:

<?php

//Connect to database
include ('connection.php');

// Retrieve all the data from the table
$result = mysqli_query("SELECT * FROM gear") or die(mysqli_error()); 

echo "<table border='1'>";
echo "<tr> <th>Manufacturer</th> <th>Model</th> <th>Description</th> </tr>";
// keeps getting the next row until there are no more to get
while($gear = mysqli_fetch_array( $result )) {

// Print out the contents of each row into a table
    echo "<tr><td>"; 
    echo $gear['manu'];
    echo "</td><td>"; 
    echo $gear['model'];
    echo "</td><td>"; 
    echo $gear['desc'];
    echo "</td></tr>"; 

} 
echo "</table>";

?>

Zastanawiam się, czy to z powodu faktu, że używam innego skryptu do łączenia się, ale narzeka na mój mysqli_query, więc otrzymuję ten błąd:

[Środa 01 stycznia 21:14:54 2014] [błąd] [klient :: 1] Ostrzeżenie PHP: mysqli_error () oczekuje dokładnie 1 parametru, 0 podanego w /var/www/eml/includes/query_gear.php w linii 7

Wszelkie porady i sugestie będą mile widziane.

questionAnswers(1)

yourAnswerToTheQuestion