Cardale Posted February 24, 2008 Share Posted February 24, 2008 I wanted to make sure I had proper abstraction since I've never used any other databases besides mysql.. example $newsget = "SELECT * FROM templates WHERE id='1'"; // this is the line im talking about $query = $DB->query($newsget); while($r=$DB->fetch_assoc($query)) { $id = $r["id"]; $name = $r["name"]; } Just wanted to know is the $var - $newsget should be broken in my abstraction class so I can use different databases in the future if need be. Quote Link to comment Share on other sites More sharing options...
nethnet Posted February 24, 2008 Share Posted February 24, 2008 Looks good to me.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.