Welcome Guest, Not a member yet? Register   Sign In
How to insert corporate details into database
#9

(11-18-2020, 12:30 PM)InsiteFX Wrote: You used and alias when you initiated your model.

PHP Code:
---------------------> Model -----------------------> Model Alias Name.
$this->load->model('Afghanistancorporate_model''afghanistancorporate_model'); 

You only need the first one the alias is if you want to use a different name for your model.

Yes that is the correct way of doing it.

On your model calls you can assigning a result from the insert and delete.
All the model methods and QueryBuilder return a result from the methods.

OK, Im still struggling with the redirect after uploading photos. In the corporate listing, which includes uploading a document, that redirects with no problem, but the photo uploads will not redirect properly. Ive even taken the corporate listing coding and alongside put the photo uploads but still can not find a solution. I put that model coding inside but it didnt work. I'll keep working on it, so maybe back later with other questions.
Reply


Messages In This Thread
RE: How to insert corporate details into database - by christaliise - 11-18-2020, 06:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB