Now I have changed to use PDO instead of MDB2. What is wrong with the codes? It does not echo the product name in the WHILE loop. Please help. Thank You.
$dbh = new PDO("mysql:host=localhost;dbname=crm", "$username", "$password");
$stmt = $dbh->prepare("CALL spTop10MostExpensiveProducts()");
$stmt->execute();
while ($row = $stmt->fetch(PDO::FETCH_ASSOC))
echo $row['productname'];