• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Query Help

#1
[eluser]RMinor[/eluser]
I am trying to get all of the information about a user from four different tables. The query I am using is below:

Code:
$query = $this->db->query("SELECT * FROM user INNER JOIN user_resume ON user_id = user_resume_user INNER JOIN user_video ON user_id = user_video_user INNER JOIN user_pdf ON user_id = user_pdf_user WHERE user_id = ?", array($user_id));

I am getting an empty result set even though I should be getting one row. Can anyone push me in the right direction to solving this?


Messages In This Thread
Query Help - by El Forum - 06-20-2012, 03:34 PM
Query Help - by El Forum - 06-20-2012, 03:58 PM
Query Help - by El Forum - 06-20-2012, 04:01 PM
Query Help - by El Forum - 06-20-2012, 04:03 PM
Query Help - by El Forum - 06-20-2012, 04:06 PM
Query Help - by El Forum - 06-20-2012, 05:15 PM
Query Help - by El Forum - 06-20-2012, 05:23 PM
Query Help - by El Forum - 06-20-2012, 06:18 PM
Query Help - by El Forum - 06-20-2012, 06:33 PM
Query Help - by El Forum - 06-20-2012, 07:49 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.