I am creating a class for an application "backbone" and I need this function to query the db, and return a multidimensional to look like this:
$myArray = ("name"=>"John", "dob"=>"January 5, 1955");
Of course the data for the array is from a database query. but, "name" and "dob" would be the database column name and "John" and "January 5, 1955" would be the value of the column
Here is my code:
public function getFrame($id) {
$getFrameQuery = "SELECT * FROM " . DB_FRAMETABLE . "WHERE `fhid`=" . $this->quote_smart($id);
$getFrameRecord = $db->query_first($getFrameQuery);
}
Any help is greatly appreciated!
Josh