how i can to show specific record from a table |
(10-31-2018, 06:31 PM)king_ahwaz Wrote: could you please show my an example, i'm not an expert. What needs to be done depends completely on how the table(s) are structured. So it's really hard to provide a complete and accurate example. That being the case, I'll make some stuff up. The table "projects" has the following fields "projID" an auto incrementing integer and primary key for the table "catID" an integer representing various categories "image" the actual image data "title" a string A model function could look something like this PHP Code: public function get_last_five($category) The Query Builder documentation is HERE and everything you need to know about generating query results is HERE. |
Messages In This Thread |
how i can to show specific record from a table - by king_ahwaz - 10-31-2018, 06:27 AM
RE: how i can to show specific record from a table - by php_rocs - 10-31-2018, 09:30 AM
RE: how i can to show specific record from a table - by king_ahwaz - 10-31-2018, 06:31 PM
RE: how i can to show specific record from a table - by dave friend - 11-01-2018, 10:06 AM
|