![]() Topic awaiting preservation: HELP!! PHP ALL OF A SUDDEN WON'T CONNECT TO DB!!! HAAAAAAAAAAAAAALP!!!!!!!! (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: you tell me |
![]() This is insane - I'm practically on my wits end here. FOr some stupid non reason my php project has just died out on me in teh most unexplainable of ways. I found out that for some reason the database code which connects to the mysql database isn't doingf its job ata ll and instead it returns a NUll value instead of a link identifier. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() Hm... can't you use your source control to check on what changed? |
Bipolar (III) Inmate From: you tell me |
![]() NAh I don't drink.. I'm just frustrated!!!! Right now I'm trying to undo everychange I have so far - but form teh looks of it the earliest working version might end up to eb a blank page |
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() does your db actually still work? (phpmyadmin) |
Bipolar (III) Inmate From: you tell me |
![]() Well it does and that is whats boggling me! I mean like in my very same web project only one silly module is connecting to the db as normal but the rest is just dead!!!! |
Bipolar (III) Inmate From: you tell me |
![]() Hmm I just noticed one thing here. On my login page I have this Ajax script set up my session variables upon authentication and then it redirects to the main index page. The db is being accessed fine enough in the login page and teh sesison variables are being set. However when it is redirected to the index page - the session variables are now all blank! |
Bipolar (III) Inmate From: you tell me |
![]() EEEEPS!!!! Mega update - my stupid session variables aren't working at all. Basically the flow of the work was that I would login and populate my session variables - I would access my session variables witha simple helper function _get_session(var). However for some weird reason my session variables seem to have no scope at all. |
Bipolar (III) Inmate From: you tell me |
![]()
|
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() nah... you need unit tests |
Bipolar (III) Inmate From: you tell me |
![]() unit what????? |
Paranoid (IV) Inmate From: London |
![]() Yeah, Test driven development FTW! |
Paranoid (IV) Mad Librarian From: ber/ger |
![]() Which reminds me I always meant to get more into that with my Django apps, thanks |