-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbjxg.php
48 lines (39 loc) · 852 Bytes
/
bjxg.php
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
40
41
42
43
44
45
46
47
48
<?php
require_once "bjsession.php";
if (isset($_GET['id'])) {
$id = $_GET['id'];
$link=mysql_connect('localhost','root','') or die ('jjj');
$db=mysql_select_db('testdb',$link);
$sql = "SELECT * FROM `txxx` WHERE `id` = $id";
$result = mysql_query($sql);
if($result){
$array=array();
while ($arr=mysql_fetch_array($result,MYSQL_ASSOC))
{
$array[]=$arr;
}
}
else
{
die(mysql_error());
}
}
else {
die('参数ID丢失');
}
display1($array);
$x=$_GET['id'];
if($x)
{
$res=mysql_query("select * from txxx where id=$x");
$arr=mysql_fetch_array($res,MYSQL_ASSOC);
}
$b=$arr['id'];
$a=$arr['姓名'];
$c=$arr['性别'];
$d=$arr['生日'];
$e=$arr['电话'];
$f=$arr['QQ'];
$g=$arr['家庭地址'];
$h=$arr['留言'];
require "bjretx.php";