To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > PHP Help > Code Critique

Code Critique Having someone critique your code is always a great way to hone the skills. Stop in and post your code to see what your peers may have done differently.

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-28-2003, 01:46 AM   #1
procoder
Freelance Programmer
 
Join Date: Dec 2002
Posts: 102
mySQL wrapper class

This is a class I wrote a bit while ago, works great

http://pavel.ath.cx:81/~paul/class_mysql.phps

Debug shows all queries you used, how many and how long it took, errors are also in details.

Any comments?
procoder is offline   Reply With Quote
Old 10-28-2003, 08:34 PM   #2
Moonglobe
Better fan than rebelo!
 
Moonglobe's Avatar
 
Join Date: Apr 2003
Location: brain://localhost:left-side
Posts: 2,381
PHP Code:
function select_db($database) {
        
        if(empty(
$database)) $database = $this->db_databse;
should be:
function select_db($database) {

if(empty($database)) $database = $this->db_database;
__________________
there's no place i can be, since i found serenity.
Moonglobe is offline   Reply With Quote
Old 10-28-2003, 11:25 PM   #3
procoder
Freelance Programmer
 
Join Date: Dec 2002
Posts: 102
Thx moon, nice catch
procoder is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 05:49 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.