Inserting MySQL table outputs into multidimensional array?

This is so much easier with PDO.

$stmt = $connection->prepare("select * from sobhane");
$stmt->execute();
$rows = $stmt->fetchAll();

and $rows IS your multi dimensional array.

1 Like