CodeIgniter Forums
HELP joining tables... - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: HELP joining tables... (/showthread.php?tid=37481)

Pages: 1 2


HELP joining tables... - El Forum - 01-11-2011

[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?


HELP joining tables... - El Forum - 01-11-2011

[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?


HELP joining tables... - El Forum - 02-11-2011

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