3 responses to “Retrieving details from a Database with PHP and PDO”

  1. Adam

    Hey,
    Great tutorial. I just have a question in regards to updating certain fields using the form. Do you know how you could assign the tablefields to a variable so you could later select certain rows to update?

  2. ravi

    hi, its helped me a lot thank your for script

  3. andile

    thanks you helped me a lot with this part

    $sql = “SELECT * FROM users”;
    $query = $db->prepare( $sql );
    $query->execute();
    $results = $query->fetchAll();

    foreach( $results as $row ){
    print_r( $row );
    }

Leave a Reply