14.06.2016, 03:18
(
Последний раз редактировалось Crazy_Str; 15.06.2016 в 01:57.
)
mysql is no longer supported, use mysqli
And it is possible that the connection is closed from the outside
And it is possible that the connection is closed from the outside
Quote:
DEFINE('HOST', '192.99.11.136'); DEFINE('USRNM', 'f1874_test'); DEFINE('PSWD', '22665139'); DEFINE('DBNM', 'f1874_test'); DEFINE('PORT', ''); $link = new mysqli(HOST, USRNM, PSWD, DBNM, PORT); if ($link->connect_error) { die('Error Connection (' . $link->connect_errno . ') ' . $link->connect_error); } $example = $link->query("SELECT * FROM `users` WHERE `userid` = '1' LIMIT 0, 1"); $result = $example->fetch_assoc(); echo $result['username']; $link->close(); |