<?php // Get one row from the database and print it out. $user = $db->get_row("SELECT name,email FROM users WHERE id = 2"); // Access data using object syntax. echo $user->name; echo $user->email;