this is my first Q.
I cant show the RESULT from $row['id'] ['name'] ['level'] IT only shows ID: NAME: LEVEL:
But the results doest appear
Ive tryed adding PDO::FETCH_ASSOC to the FETCH() but it says 1 parameter given expected 0
require_once 'connection.php';
$query = "SELECT * FROM members";
$stmt = $cnx->prepare($query);
$stmt->execute();
while($row = $stmt->fetch()) {
echo "Id: " . $row['id'] . "<br>";
echo "Name: " . $row['name'] . "<br>";
echo "Level: " . $row['level'] . "<hr>";
}
";` outputs **Id:
** - e.g. everything's output bar the record from the database; time for your almost famous *turn on error reporting* comment I feel. – CD001 May 20 '16 at 15:33