I'm new here. I have a problem in a php code with the code igniter framework.
I don't know how to use the framework and also I didn't do the code. but my boss gave me the job and I have to do.
The question is to print on screen all rows from a table (in mysql). How to do? Ask me what part of code you need.
I can paste all the code but it's very long :)
Thank you in advice!
EDIT: my problem is this: i need to create a new group of users that have only the permission to see some tables. I can create the new group and the new user of the group but i have to modify the code to let view all the info like an admin but without modify.
I can't put the code because is very long and it's formatted very bad.
Past it into your model and use
function getAllRecords() {
$query = $this->db->get('your table name');
return $query->result_array();
}
Tell me if there is any issue.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.