Re: MySQL class. Thoughts?

From: Date: Wed, 21 Jan 2009 17:53:47 +0000
Subject: Re: MySQL class. Thoughts?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-286918@lists.php.net to get a copy of this message
On Wed, Jan 21, 2009 at 12:45 PM, Edmund Hertle <edmund.hertle@student.kit.edu> wrote: > 2009/1/21 Jay Moore <jaymoore@accu-com.com> > >> This is a MySQL class I use and I wanted to get everyone's thoughts on >> how/if I can improve it. This is for MySQL only. I don't need to make it >> compatible with other databases. I'm curious what you all think. >> >> Thanks, >> Jay > > > Hey, > 1. You know the mysqli-Class? > 2. If yes, than I don't get it in which way this will improve mysql handling > > -eddy > Yea if you're only targeting 1 db, then why not use that class? At least then there's the php manual to figure out what something does. mysql_real_escape_string should use $this->link to properly escape based on charset, not server default. I'd also call it escape.

« previous php.general (#286918) next »