Re: [PHP] Syntax to call a class' methods in your own class

2006-05-24 Thread Graham Anderson
thanks :) that helps g On May 24, 2006, at 3:19 PM, Brady Mitchell wrote: This works: $rs= $this->conn->GetAll("SELECT title FROM content WHERE page_id= ?", $id); You can't iterate through an array like you are trying to do. Using the GetAll() function returns an array, you have to use

RE: [PHP] Syntax to call a class' methods in your own class

2006-05-24 Thread Brady Mitchell
> This works: > $rs= $this->conn->GetAll("SELECT title FROM content WHERE > page_id= ?", > $id); You can't iterate through an array like you are trying to do. Using the GetAll() function returns an array, you have to use the Execute() function to be able to iterate through $rs like you are tryi