Zend PHP 5.3 Certification Exam


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
  • Question 2/21

    You have been given the following code snippet:

    
    <?php
    $stmt $dbh->prepare("SELECT * FROM USER where name = ?");
    if ($stmt->execute(array($_GET['name']))) {
      while (??????) {
        print_r($row);
      }
    }
    ?>
    
    
    What will you write at line number 4 to fetch data from database?