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 |
posted 04-19-2008 13:55
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 |
posted 04-19-2008 14:30
Hm... can't you use your source control to check on what changed? |
Bipolar (III) Inmate From: you tell me |
posted 04-19-2008 14:38
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 |
posted 04-19-2008 14:42
does your db actually still work? (phpmyadmin) |
Bipolar (III) Inmate From: you tell me |
posted 04-20-2008 07:21
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 |
posted 04-20-2008 08:54
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 |
posted 04-20-2008 09:08
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 |
posted 04-20-2008 09:37
|
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 04-20-2008 20:33
nah... you need unit tests |
Bipolar (III) Inmate From: you tell me |
posted 04-21-2008 08:35
unit what????? |
Paranoid (IV) Inmate From: London |
posted 04-21-2008 11:10
Yeah, Test driven development FTW! |
Paranoid (IV) Mad Librarian From: ber/ger |
posted 04-21-2008 21:32
Which reminds me I always meant to get more into that with my Django apps, thanks |