Fatal error: Call to a member function query () on a non-object in /home/d9/public_html/t3/s3.php on line 60

here is the code

$tt = $_SESSION['numarul']; $link = mysql_connect('localhost', 'd3', 'password') or die('Не удалось соединиться: '.mysql_error()); echo 'Соединение успешно установлено'; mysql_select_db('d5') or die('Не удалось выбрать базу данных'); // Выполняем SQL-запрос $result_set = $link - > query('SELECT * FROM `users` WHERE `ids` = "'.$link - > real_escape_string($tt).'"'); while ($row = $result_set - > fetch_assoc()) { $namessUTILIZATOR = $row['numele']; $punteUTILIZATOR = $row['puncte']; $timpul = time(); } // Закрываем соединение mysql_close($link); 
  • one
    Which of these lines has the number 60? - Grundy
  • A - > generally legal? - Alexey Shimansky
  • @ AlekseyShimansky I think quite legally, as minus and more operators :) (just the same I wanted to ask) - Mike
  • @Mike her .... Parse error: syntax error, unexpected '>' ........ but the error is most likely because the resource is not specified in mysql_select_db - Alexey Shimansky
  • then it's not clear how it comes to the error of the absence of an object - Mike

0