Page 1 of 1

Create Class to do a Simple Select Query

Posted: Wed Apr 25, 2018 3:27 am
by dung9939
I am new at using the Zend Framework and I am having a hard time finding a simple example of a class that performs a simple select of a database table.

I simply want to do:
"SELECT * FROM users WHERE status='active' sort ASC";

Or an example of creating a class that will insert:

INSERT INTO users (username, status) VALUES ($username. $status);

Can someone please show me how or send me a link to a good and easy tutorial?