on-internet
← Community

Nominating the same table with CodeIgniter's from() and get() methods doesn't fetch values from all expected columns

Stack Overflow ·

I need to make a search feature in my CodeIgniter application, but the search results need 2 tables from my database. time, date and user_product_order_id are from the uhd_user_product_order. user_order_id, sender_name, payment_type, and user_order_reference(this the search key) are from uhd_user_order. In the view, I can view data from my table uhd_user_order, but I can't view the time, date values from user_product_order_id. Can you help me how to join the 2 tables so I can see the correct results from the search? This is my controller function search_keyword() { $cari = $this->input->GET('c

Comments

Sign in or sign up to comment and upvote.

No comments yet.