- Joined
- Jun 8, 2007
- Messages
- 1,965
- Reaction score
- 482
Well currently I'm creating includes to put in place of certain PHP code. Things such as connections, comments, messages and I already setup the friendlist like that.
Since I have to do all this anyway, I'm most def going to rename all my getdata123's to names that correspond to their actions. The idea of calling things userQuery123 and friendQuery123 instead of getdata swam through my mind. But I can just as easily say userDate, userQuery, userRow instead. I don't know why I use getdata.. I've used it since I first learned how to make a connection, and stuck with it. Obviously the guy just used getdata as an example of how to do a connection, but for some reason I never did rename any of my data fetchers untill I ran into problems repeating varriables. Then after that I named the second one getdata4,5,6.. Ha.. stupid me.
After I made that mistake, I should've just gave them all definitive names. I do actually write out getdata, I don't copy and paste usually.. well not always. So I really don't know why I didn't just say userData, userQuery, userRow... But I will from now on.. (for users, that is.)
Of corse friends would be friendData, friendQuery, friendRow etc.
I really should've saw that coming.. ha
My sig should say: There's a fly on my brain! - lol
Since I have to do all this anyway, I'm most def going to rename all my getdata123's to names that correspond to their actions. The idea of calling things userQuery123 and friendQuery123 instead of getdata swam through my mind. But I can just as easily say userDate, userQuery, userRow instead. I don't know why I use getdata.. I've used it since I first learned how to make a connection, and stuck with it. Obviously the guy just used getdata as an example of how to do a connection, but for some reason I never did rename any of my data fetchers untill I ran into problems repeating varriables. Then after that I named the second one getdata4,5,6.. Ha.. stupid me.
After I made that mistake, I should've just gave them all definitive names. I do actually write out getdata, I don't copy and paste usually.. well not always. So I really don't know why I didn't just say userData, userQuery, userRow... But I will from now on.. (for users, that is.)
Of corse friends would be friendData, friendQuery, friendRow etc.
I really should've saw that coming.. ha
My sig should say: There's a fly on my brain! - lol

