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);
- >generally legal? - Alexey ShimanskyParse error: syntax error, unexpected '>'........ but the error is most likely because the resource is not specified inmysql_select_db- Alexey Shimansky