urlpage _GET url SELECT FROM gengre_info WHERE form_gengre_url urlpage

1
2
3
4
5
6
7
8
9
$urlpage = $_GET['url'];
$q = "SELECT * FROM `gengre_info` WHERE `form_gengre_url` = '$urlpage'";
$res = mysql_query($q)
or die($q);
$inf = mysql_fetch_assoc($res);
$name = $inf['form_gengre_name'];
$text = $inf['form_gengre_full_article'];
$autors_state = $inf['form_gengre_artists'];
$pub_date = $inf['pub_date'];