PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
class ADODB_Data extends Data
{
var $db;
function ADODB_Data()
{
$this->db =& NewADOConnection(FRAMEWORK_DATA_DSN) or
trigger_error('Failed to connect to database.', E_USER_ERROR);
$this->db->SetFetchMode(ADODB_FETCH_ASSOC);
}
function get($pairs)
{
$result = $this->db->Execute('select foo from bar');
}
Fatal error: Call to a member function Execute() on a non-object
What am i doing wrong?
Last edited by timvw on Sat Sep 11, 2004 5:43 pm, edited 1 time in total.