I need help with creating the store_sql() function used for storing a query in an associative array so I can retrieve the query by the query name, $queries['city_info']
This is an example of the parameters for the $queries var:
$db->store_sql('SELECT fname, lname from students WHERE lname=?','student_list' );
This is what I have so far:
public function store_sql($query, $query_name){
$this->queries[$query][$query_name) {
return$this->queries[$query_name]
}
I get a Parse error:syntax error, unexpected T_logical_or after I call this function
here:
$db->store_sql('SELECT fname, lname from students WHERE lname=?','student_list' );
thnkx,