What's the actual uses of sprintf?
I've seen somewhere something like this:
Is it not good like this:PHP Code:
$sql = sprintf("SELECT COUNT(*) AS test FROM %s WHERE email = '%s' AND active = 'y'", $this->table_name, $this->user_email);
$sql = "SELECT COUNT(*) AS test FROM $this->table_name WHERE email = '$this->user_emails' AND active = 'y' ";