DOCTYPE html -- To change this license header choose License Headers i

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="windows-1256">
<title></title>
</head>
<body>
<?php
$mysql = mysqli_connect("localhost","root","","123");
$txt = fopen("rty.TXT", "r");
$i = 0;
while (!feof($txt))
{
$t = explode (' ', fgets($txt));
$table[$i][0] = $t[0];
$table[$i][1] = "$t[1]";
$qwe1 = $t[0];
$qwe2 = "\"$t[1] $t[2]\"";
$i++;
$we = "INSERT INTO `345` VALUES ('$qwe1', '$qwe2')";
mysqli_query($mysql,$we);
}
fclose($txt);
var_dump($qwe2);
var_dump(mysqli_query($mysql,$query));
$rty = "SELECT `1`,`2` FROM `345`";
$ans = mysqli_query($mysql,$rty);
mysqli_close($mysql);
?>
</body>
</html>