- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
$select_from = false;
if ($_GET['news_id']){
$this_id = (int)htmlspecialchars($_GET['news_id']);
$select_from = "news";
}
if ($_GET['article_id']){
$this_id = (int)htmlspecialchars($_GET['article_id']);
$select_from = "articles";
}
if ($_GET['articles_id']){
$this_id = (int)htmlspecialchars($_GET['articles_id']);
$select_from = "articles";
}
$w = mysql_fetch_assoc(mysql_query("SELECT * FROM `".$getdata['pref'].$select_from."` WHERE `id` = \"{$this_id}\" LIMIT 1"));
Комментарии (4) RSS
Добавить комментарий