Code: Select all
"INSERT INTO %s (id, login, pw, real_name, phone, radio, professional, office, service, special, email, job_listing, access_level, active) VALUES (NULL, %s, %s, %s, %s, %s, %d, %d, %d, %s, %s, %d, %d, 'n')Moderator: General Moderators
Code: Select all
"INSERT INTO %s (id, login, pw, real_name, phone, radio, professional, office, service, special, email, job_listing, access_level, active) VALUES (NULL, %s, %s, %s, %s, %s, %d, %d, %d, %s, %s, %d, %d, 'n')Code: Select all
$sql = sprintf("INSERT INTO %s (id, login, pw, real_name, phone, radio, professional, office, service, special, email, job_listing, access_level, active) VALUES (NULL, %s, %s, %s, %s, %s, %d, %d, %d, %s, %s, %d, %d, 'n')",
$this->table_name,
$this->ins_string($first_login),
$this->ins_string(md5($first_password)),
$this->ins_string($first_name),
$this->ins_string($phone),
$this->ins_string($radio),
$professional,
$office,
$service,
$this->ins_string($special),
$this->ins_string($this->user_email),
$job_listing,
DEFAULT_ACCESS_LEVEL);
$ins_res = mysql_query($sql);
Code: Select all
$bar = sprintf("INSERT INTO %s ...", $somevar);Code: Select all
$bar = "INSERT INTO " . $somevar . " ...";