Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14355

working with two tables under one function

$
0
0
hi guys,am new to code igniter though am learning quickly.my issue is am trying to get data from from two tables lets say after a user registers they are taken to login which is fine my issue is.when a new user ligs in they are redirected to a page to fill in their profile but when they come back to the site and they filled their profile i want them redirected to their respective profiles.

when trying to get data from the two tables its working but when the profile table doesnt contain the foreign key it displays a page yes but with the data array error.since the array is empty.
my code below

.jpg   controller_code.JPG (Size: 46.63 KB / Downloads: 6)  
.jpg   model_code.JPG (Size: 38.95 KB / Downloads: 8)  
.jpg   view_code.JPG (Size: 36.29 KB / Downloads: 5)  
.jpg   error.JPG (Size: 39.68 KB / Downloads: 5)

Viewing all articles
Browse latest Browse all 14355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>