• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP joining tables...

#11
[eluser]Ochetski[/eluser]
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: userId

Filename: models/user_model.php

Line Number: 45

This means that your $userId variable has no value when you try to use it at line 45 on user_model.php
As asked before @Bart Mebane Where is $userId coming from?

#12
[eluser]Bart Mebane[/eluser]
When the index function in your controller calls the model, it needs to tell the model the user ID. How does the controller know what user ID to use?

#13
[eluser]chazy (aldever calvo)[/eluser]
thanks for the help... problem is solved... Smile


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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