1.
$sql =
"select * from articles where id = '$id' "
;
# ป้องกัน sql injection จาก
$_GET
2.
foreach
(
as
$key
=>
$value
) {
3.
[
]=
addslashes
strip_tags
(trim(
)));
4.
}
5.
if
'id'
] !=
''
]=(int)
]; }
6.
7.
extract(
);