<?php include "config.php";?>
<?php
$maxRows_verial = 10;
$pageNum_verial = 0;
if (isset($_GET['pageNum_verial'])) {
$pageNum_verial = $_GET['pageNum_verial'];
}
$startRow_verial = $pageNum_verial * $maxRows_verial;
mysql_select_db($db,$lyrics);
$query_verial = "SELECT id, artist, song FROM song ORDER BY id DESC";
$query_limit_verial = sprintf("%s LIMIT %d, %d", $query_verial, $startRow_verial, $maxRows_verial);
$verial = mysql_query($query_limit_verial,$lyric) or die (mysql_error());
$row_verial = mysql_fetch_assoc($verial);
if (isset($_GET['totalRows_verial'])) {
$totalRows_verial = $_GET['totalRows_verial'];
} else {
$all_verial = mysql_query($query_verial);
$totalRows_verial = mysql_num_rows($all_verial);
}
$totalPages_verial = ceil($totalRows_verial/$maxRows_verial)-1;
?>
10 ve 13 nolu sat1rlarda hata al1yorum
hatalar:
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/sozunuz/public_html/public.php on line 10
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/sozunuz/public_html/public.php on line 13
hatalri dzüeltebilcek olan var mi?