Display related data from user profile |
[eluser]doubleplusgood[/eluser]
Hi there, My site gives users their own profile, with some URL routing, for example: www.mywebsite.com/profile/hanabi I'm trying to grab information from other tables in the database, based on the user's id for the current profile (as above). I have a profile_model that has the following function; Code: function get_single_profile($username) So as you can see, each user is stored in the users table with an id. What I would now like to do is get rows of data from another table (vehicles) where the user id matches that of the current profile. I was wondering if anyone could tell me how I could accomplish this? I'm sure it would be much easier if i was passing the id in the profile function rather than the username, but this is needed for the URL routing. :S Thank you for any help you might be able to pass on. |
Messages In This Thread |
Display related data from user profile - by El Forum - 04-26-2010, 09:08 PM
Display related data from user profile - by El Forum - 04-27-2010, 02:00 AM
Display related data from user profile - by El Forum - 04-27-2010, 02:05 AM
Display related data from user profile - by El Forum - 04-27-2010, 02:11 AM
Display related data from user profile - by El Forum - 04-27-2010, 02:23 AM
Display related data from user profile - by El Forum - 04-27-2010, 02:35 AM
Display related data from user profile - by El Forum - 04-27-2010, 02:42 AM
Display related data from user profile - by El Forum - 04-27-2010, 02:46 AM
Display related data from user profile - by El Forum - 04-27-2010, 02:57 AM
Display related data from user profile - by El Forum - 04-27-2010, 03:06 AM
Display related data from user profile - by El Forum - 04-27-2010, 03:20 AM
Display related data from user profile - by El Forum - 04-27-2010, 11:58 AM
|