Thread: Whats Next?
View Single Post
Old 12-03-2007, 12:35 PM   #1 (permalink)
Gurnk
The Contributor
Upcoming Programmer 
 
Gurnk's Avatar
 
Join Date: Oct 2007
Location: US
Posts: 66
Thanks: 19
Gurnk is on a distinguished road
Bricks Whats Next?

Yo! I need your help guys. I'm trying to decide what I should do next with PHP. Right now, all my web stuff that I do in PHP, I mostly do like the following.

PHP Code:
$select = @mysql_query("SELECT * FROM users WHERE username = '$username'");
while(
$row mysql_fetch_array($select)) {
      
// do something specific for this user.

And I don't think that is a horrible way of doing things, and its not like the code is completely disgusting; I'm just wondering if I should move onto something like OOP for that kind of stuff. I have seen some examples of OOP, but personally, I don't think it looks like it would necessarily be the better way to go. Maybe I am completely off.

So I guess the question is, if I'm going to mainly be doing stuff like I showed you, just getting database info, and manipulating it, is there a need to make a bunch of classes and what not? I already make functions for stuff that is repetitive.

What are you thoughts or ideas.
Send a message via MSN to Gurnk
Gurnk is offline  
Reply With Quote