Thursday

PHP why r u so cheeky???

This is what i hate about building an online application using php.
yes php is awesome, and its virtually only limited by your own mind..

but man when it stuffs up the entire effin page dies.
you then need to go line by line code by code to find the problem.

sure you can turn on error_reporting(E_ALL) but guess what if its an sql problem or something like that, it aint going to tell you dick.

Sooooooooooooooooooooo you pray to the php gods and hope for some ray of light to shine on your screen and show you where the problem is.. . lol ye right..

4 hours later, your pulling your hair out and rewriting most of the code and pulling chunks out and rearranging everything trying to figure out WTF???

still nothing......................

So my next step is to walk away, grab a coffee, take a potty break.. attempt to breathe .. then come back..
Eventually i figured out it wasnt a syntax problem the code was perfect.

it was the effin $_POST fields..

one of the fields had an apostrophe and i didnt addslashes so it was classing with the damn sql.

Ok soooooooooooooooooooooooooooooooooooooo basically for those of you that have no idea what im talking about, i just spent 4 and a half hours trying to fix something in the code, that wasnt in the code in the first place and would have taken me 5 minutes to do ...

Not frign time efficient PHP!!!!!!!!!!
there just has to be an easier way of trouble shooting php than the standard rigmarole...

and I offer you many prayers php god, i love you much and please let my next coding session go smoothly...

No comments:

Post a Comment