1、数字型:
$id = $_GET['x'];
select * from news where id=1
2、字符型:
$id = $_GET['x'];
select * from news where id='admin'
3、搜索型:
$id = $_GET['x'];
select * from news where id like '%php%'
1、数字型:
$id = $_GET['x'];
select * from news where id=1
2、字符型:
$id = $_GET['x'];
select * from news where id='admin'
3、搜索型:
$id = $_GET['x'];
select * from news where id like '%php%'