What is wrong with this? [closed]

The error is in the syntax; there’s a semicolon after the if condition. Try this:

<?php 
$page_comment = get_query_var('cpage');
if ($page_comment > 0): ?>
test
<?php endif; ?>

Alternative PHP syntax:

<?php 
$page_comment = get_query_var('cpage');
if ($page_comment > 0){ ?>
test
<?php } ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)