Wair
Новичок
Подскажите где здесь ошибка?
function out_info()
{
$this->result=mysql_query("SELECT * FROM `users` WHERE `id`='$this->id' AND `password`='$_SESSION['pass']'",$this->idConnect);
$this->myrow = mysql_fetch_array($this->result);
$this->login=$myrow['login'];
$this->name=$myrow['name'];
$this->lastname=$myrow['lastname'];
$this->int=$myrow['int'];
}
P.S. все свойства инициализированы
function out_info()
{
$this->result=mysql_query("SELECT * FROM `users` WHERE `id`='$this->id' AND `password`='$_SESSION['pass']'",$this->idConnect);
$this->myrow = mysql_fetch_array($this->result);
$this->login=$myrow['login'];
$this->name=$myrow['name'];
$this->lastname=$myrow['lastname'];
$this->int=$myrow['int'];
}
P.S. все свойства инициализированы