nortont
Mon 7 May 2007, 04:17 pm GMT +0300
hi, I am trying to work out how to use the function get_user_info()
in the SQL and all other SQL statments, there are %s to supply data to spesfic fields
Where or how do I pass data to refrlect the %s (and %d in some other SQL's)
$sql_info = sprintf("SELECT real_name, extra_info, email, id FROM %s WHERE login = %s AND pw = %s", $this->table_name, $this->ins_string($this->user), $this->ins_string($this->user_pw));
in the SQL and all other SQL statments, there are %s to supply data to spesfic fields
Where or how do I pass data to refrlect the %s (and %d in some other SQL's)
$sql_info = sprintf("SELECT real_name, extra_info, email, id FROM %s WHERE login = %s AND pw = %s", $this->table_name, $this->ins_string($this->user), $this->ins_string($this->user_pw));