We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent51ee724 commit0459ecdCopy full SHA for 0459ecd
mysql/get_info.php
@@ -0,0 +1,27 @@
1
+<?php
2
+mysqli_report(MYSQLI_REPORT_ERROR |MYSQLI_REPORT_STRICT);
3
+$mysqli =mysqli_connect("18.18.18.18","root","实际密码","vps2022","53306");
4
+
5
+$result =mysqli_query($mysqli,"SELECT name FROM text");
6
+// $result = mysqli_query($mysqli, "SELECT * FROM text WHERE name = 'addfile.py'");
7
8
+$rows =mysqli_fetch_all($result,MYSQLI_ASSOC);// MYSQLI_ASSOC, MYSQLI_NUM, or MYSQLI_BOTH
9
+foreach ($rowsas$row) {
10
+printf("%s\n",$row["name"]);
11
+// printf("%s (%s)\n", $row["name"], $row["text"]);
12
+}
13
14
+var_dump($rows);
15
+/** MYSQLI_ASSOC
16
+array(11) {
17
+ [0]=>
18
+ array(1) {
19
+ ["name"]=>
20
+ string(10) "addfile.py"
21
+ ** MYSQLI_NUM
22
23
24
25
26
27
+ */