在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
bool define ( string name, mixed value [, bool case_insensitive] ) define('DB_HOST', 'localhost'); define('DB_USER', 'root'); define('DB_PWD', '123456'); define('DB_NAME', 'mtest');
$conn = mysql_connect('DB_HOST', 'DB_USER', 'DB_PWD');
$query = 'select * from message'; $result = mysql_query($query);
array mysql_fetch_array ( resource result [, int result_type] ) mysql_fetch_array($result, MYSQL_ASSOC)
mysql_free_result($result);
mysql_close($conn);
define('DB_HOST', 'localhost'); define('DB_USER', 'root'); define('DB_PWD', '123456'); define('DB_NAME', 'mtest'); $conn = mysql_connect('DB_HOST', 'DB_USER', 'DB_PWD'); mysql_select_db(DB_NAME, $conn); mysql_query('SET NAMES UTF8'); $query = 'select * from message'; $result = mysql_query($query); mysql_fetch_array($result, MYSQL_ASSOC); mysql_free_result($result); mysql_close($conn);
|
2022-08-30
2022-08-18
2022-11-06
2022-08-14
2022-07-18
请发表评论