'$today' ORDER BY orderNr ASC"; $news = mysql_query($query_news, $elgall) or die(mysql_error()); $row_news = mysql_fetch_assoc($news); $totalRows_news = mysql_num_rows($news); $headId = $row_news['id']; $maxRows_newsLines = 4; $pageNum_newsLines = 0; if (isset($HTTP_GET_VARS['pageNum_newsLines'])) { $pageNum_newsLines = $HTTP_GET_VARS['pageNum_newsLines']; } $startRow_newsLines = $pageNum_newsLines * $maxRows_newsLines; $colname_newsLines = $headId; mysql_select_db($database_elgall, $elgall); $query_newsLines = sprintf("SELECT * FROM news WHERE id <> %s ORDER BY orderNr ASC", $colname_newsLines); $query_limit_newsLines = sprintf("%s LIMIT %d, %d", $query_newsLines, $startRow_newsLines, $maxRows_newsLines); $newsLines = mysql_query($query_limit_newsLines, $elgall) or die(mysql_error()); $row_newsLines = mysql_fetch_assoc($newsLines); if (isset($HTTP_GET_VARS['totalRows_newsLines'])) { $totalRows_newsLines = $HTTP_GET_VARS['totalRows_newsLines']; } else { $all_newsLines = mysql_query($query_newsLines); $totalRows_newsLines = mysql_num_rows($all_newsLines); } $totalPages_newsLines = ceil($totalRows_newsLines/$maxRows_newsLines)-1; $queryString_newsLines = ""; if (!empty($HTTP_SERVER_VARS['QUERY_STRING'])) { $params = explode("&", $HTTP_SERVER_VARS['QUERY_STRING']); $newParams = array(); foreach ($params as $param) { if (stristr($param, "pageNum_newsLines") == false && stristr($param, "totalRows_newsLines") == false) { array_push($newParams, $param); } } if (count($newParams) != 0) { $queryString_newsLines = "&" . implode("&", $newParams); } } $queryString_newsLines = sprintf("&totalRows_newsLines=%d%s", $totalRows_newsLines, $queryString_newsLines); ?>
elektro :: beleuchtung :: telekommunikation :: internet :: news :: shop :: links :: downloads :: profil :: kontakt | ||||||
|
||||||
echo date('d.m. Y')?> | ||||||