⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 table.inc

📁 linux下安装不上mysql5与php5的可用此关联
💻 INC
字号:
<?PHPif (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {    printf("Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",        $host, $user, $db, $port, $socket);    exit(1);}           if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) {    printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));    exit(1);}                if (!mysqli_query($link, 'CREATE TABLE test(id INT, label CHAR(1), PRIMARY KEY(id)) ENGINE=' . $engine)) {    printf("Failed to create test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));    exit(1);}if (!mysqli_query($link, 'INSERT INTO test(id, label) VALUES (1, "a"), (2, "b"), (3, "c"), (4, "d"), (5, "e"), (6, "f")')) {    printf("[%d] %s\n",  mysqli_errno($link), mysqli_error($link));        }?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -