Help session grab user_id from database - 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 session grab user_id from database (/showthread.php?tid=51925) |
Help session grab user_id from database - El Forum - 05-23-2012 [eluser]Samus[/eluser] [quote author="the_unforgiven" date="1337789211"]from print_r in view i get this Code: Array ( [id] => 14 [acc_number] => 172102 [ip_address] => 0 [name] => Test so the id is there right? [/quote] Yes. If you echo $cust_id['id']; what do you see? Help session grab user_id from database - El Forum - 05-23-2012 [eluser]the_unforgiven[/eluser] Yes the echoed out Code: 14 Code: function check() Help session grab user_id from database - El Forum - 05-23-2012 [eluser]Samus[/eluser] [quote author="the_unforgiven" date="1337789594"]Yes the echoed out Code: 14 Code: function check() what do you mean stalls? it doesn't work or it has become slower? Help session grab user_id from database - El Forum - 05-23-2012 [eluser]the_unforgiven[/eluser] Sorry, doesn't work just shows blank white page no errors no nothing, and I have error reporting on and also console open via MAMP on mac. which would show any errors so not sure why Help session grab user_id from database - El Forum - 05-23-2012 [eluser]Samus[/eluser] [quote author="the_unforgiven" date="1337790011"]Sorry, doesn't work just shows blank white page no errors no nothing, and I have error reporting on and also console open via MAMP on mac. which would show any errors so not sure why[/quote] Check logs? That's awfully weird Help session grab user_id from database - El Forum - 05-23-2012 [eluser]the_unforgiven[/eluser] Logs is console plus they should show on on screen if any errors. So console is live feed if you like of the php_error.log file like so: http://tinypic.com/r/2yy2v4o/6 Help session grab user_id from database - El Forum - 05-23-2012 [eluser]CroNiX[/eluser] Check apache logs as well. Help session grab user_id from database - El Forum - 05-23-2012 [eluser]the_unforgiven[/eluser] Hi Chronix: in apache logs i only have this: Code: [Wed May 23 18:12:08 2012] [notice] Digest: generating secret for digest authentication ... Help session grab user_id from database - El Forum - 05-23-2012 [eluser]CroNiX[/eluser] Looks like your apache server might be crashing and restarting (3rd line). Also, the "client denied by server configuration" doesn't look very promising. Help session grab user_id from database - El Forum - 05-23-2012 [eluser]the_unforgiven[/eluser] MAMP, locally always works, so what do you think I should in the case |