tohle je v URL: /index.php?page=gallery&r=
prostě po kliknutí na odkaz, se nepředá ten parametr podle mě
function exist_row($column, $from, $where) {
$result = @mysqli_query($GLOBALS['link'], "select " . $column . " from " . $from . " where " . $where);
return @mysqli_num_rows($result) > 0 ? @mysqli_fetch_assoc($result) : false;
}
v DB je pouze sloupeček gallery_id a gallery_title