is_numeric on $_GET['page']
btw, what is this doing??
$numpage = $page+1;
if($page == $sqlc) {
$url = $weburl."articles.php?name=$name&page=$page"; }
else {
$url = $weburl."articles.php?name=$name&page=$numpage"; }
...it's been a long day and my brain can't seem to follow the logic.
Also, using die(mysql_error()) may give the hacker a sense of what your db looks like making it easier to crack...I'd suggest replacing them with Error statements when it's finished.
On a side note this
$title = $sqla['title'];
$article = $sqla['article'];
$writer = $sqla['writer'];
$type = $sqla['type'];
$image = $sqla['image'];
$alt = $sqla['alt'];
$keywords = $sqla['keywords'];
can be replaced by
extract($sqla);