Create Class to do a Simple Select Query

For programming and general questions on Zend Framework
Post Reply
dung9939
Posts: 1
Joined: Wed Apr 25, 2018 3:26 am

Create Class to do a Simple Select Query

Post by dung9939 » Wed Apr 25, 2018 3:27 am

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?

Post Reply