Suchergebnisse <1>

Dann mach doch, um sicher zu gehen, noch diese Änderung:

PHP:
//Ausgabe der Links zu den Seiten
for($a=0; $a < $wieviel_seiten; $a++)
   {   echo "Var_dump von \$wieviel_seiten innerhalb der FOR-Schleife:<pre>"; var_dump($wieviel_seiten); echo "</pre>";
 
Var_dump von $result:

resource(5) of type (mysql result)

Var_dump von $menge:

int(22)

Var_dump von $wieviel_seiten:

float(2.4444444444444)

Var_dump von $menge:

int(22)

float(2.4444444444444)
Var_dump von $wieviel_seiten innerhalb der FOR-Schleife:

float(2.4444444444444)

Var_dump von $wieviel_seiten innerhalb der FOR-Schleife:

float(2.4444444444444)

Var_dump von $wieviel_seiten innerhalb der FOR-Schleife:

float(2.4444444444444)
 
Siehst du, die For-Schleife wird ausgeführt, sogar 3 mal - genau wie man es voraussehen könnte, wenn man die Berechnungen mal im Kopf durchführt (22 Einträge / 9 Einträge pro Seite = 2 volle Seiten + Rest = 3 Seiten).

Wenn die Pagination jetzt nicht dargestellt wird, bedeutet dass, das

- ein Fehler im HTML-Code vor liegt oder
- CSS den Bereich versteckt oder
- JavaScript den Bereich versteckt

Kannst du den HTML-Code der Seite, so wie sie im Browser ausgeben wird mal hier als BBCode [ code=html ] posten?
 
Zuletzt bearbeitet:
mein ganzer script
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>ojylkvon Edddr - U </title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-9">
<meta name="robots" content="index,follow">
<meta name="description" content="cvx
d">
<meta name="keywords" content="vdd">
<meta name="language" content="tr">
<link rel="stylesheet" type="text/css" media="screen, projection" href="stylesheet.css">
<link rel="shortcut icon" href="icon.ico">
 <style type="text/css">
	#container
	{
		margin: 0px 0px;
		width: 650px;
		height: 33px;
		background-color: #FFF8DC;

	}
	</style>

</head>

<body BGCOLOR="#6f310b">

  <div id="onHolder"></div>
<div id="menHolder">
<?php

$seite = $_GET["seite"];  //Abfrage auf welcher Seite man ist
 echo "Var_dump von \$seite:<pre>"; var_dump($seite); echo "</pre>";
echo "Var_dump von \$_GET:<pre>"; var_dump($_GET); echo "</pre>";
//Wenn man keine Seite angegeben hat, ist man automatisch auf Seite 1
if(!isset($seite))
   {
   $seite = 1;

   }

//Verbindung zu Datenbank aufbauen

$link = mysql_connect("localhost","vvv","ddddd") or die ("Keine Verbindung moeglich");
mysql_select_db("e") or die ("Die Datenbank existiert nicht");
echo "Var_dump von \$link:<pre>"; var_dump($link); echo "</pre>";

//Einträge pro Seite: Hier 9 pro Seite
$eintraege_pro_seite = 9;
 echo "Var_dump von \$eintraege_pro_seite:<pre>"; var_dump($eintraege_pro_seite); echo "</pre>";
//Ausrechen welche Spalte man zuerst ausgeben muss:

$start = $seite * $eintraege_pro_seite - $eintraege_pro_seite;
echo "Var_dump von \$start:<pre>"; var_dump($start); echo "</pre>";
 echo "Var_dump von \$seite:<pre>"; var_dump($seite); echo "</pre>";
 echo "Var_dump von \$eintraege_pro_seite:<pre>"; var_dump($eintraege_pro_seite); echo "</pre>";
//Tabelle Abfragen
//Tabelle hei&szlig;t hier einfach: Tabelle
$abfrage = "SELECT * FROM `news30_story` as s, `news30_users` as u WHERE `story`  LIKE '%".mysql_real_escape_string ($_POST['such'])."%' OR `title`
LIKE '%" . ($_POST['such']) . "%'  AND s.author = u.uid LIMIT $start, $eintraege_pro_seite";
mysql_query($abfrage)
or trigger_error('Fehler in Query "'.$abfrage.'". Fehlermeldung: '.mysql_error(),E_USER_ERROR);
$ergebnis = mysql_query($abfrage) or die(mysql_error()."<pre>" . $abfrage . "</pre>");
echo "Var_dump von \$ergebnis:<pre>"; var_dump($ergebnis); echo "</pre>";

if($wieviel_seiten<1) {
echo "Var_dump von \$wieviel_seiten:<pre>"; var_dump($wieviel_seiten); echo "</pre>";
echo '<div style="padding-left:16px;padding-top:14px">';
   echo '<table>';
echo ' <div style="position:none">'; if(mysql_num_rows($ergebnis) > 0){
   while($row = mysql_fetch_assoc($ergebnis))
 {
       echo '<tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">'.$row['title'].'</span></span></td></tr>';
        echo '<tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:tuberailer@hotmail.de">'.$row['user'].'</A> - '.date('d/m/y h:iA', $row['timestamp']).' - <a href="www.php?id='.$row['id'].'#comments">'.$row['commentcount'].' Comments</a> - - '.$row['rating'].'</span></td></tr>';
        echo '<tr><td><span style="font-family:verdana; font-size: 10pt; ">'.$row['story'].'</span></td></tr>';
   } echo '</div>';
}else{
  echo '<tr><td>Keine Daten</td></tr>';
}

echo '</table>';
echo '</div>';




//Jetzt kommt das "Inhaltsverzeichnis",
//sprich dort steht jetzt: Seite: 1 2 3 4 5


//Wieviele Einträge gibt es überhaupt

//Wichtig! Hier muss die gleiche Abfrage sein, wie bei der Ausgabe der Daten
//also der gleiche Text wie in der Variable $abfrage, blo&szlig; das hier das LIMIT fehlt
//Sonst funktioniert die Blätterfunktion nicht richtig,
//und hier kann nur 1 Feld abgefragt werden, also id

$result = mysql_query("SELECT * FROM `news30_story` as s, `news30_users` as u WHERE `story` LIKE '%".mysql_real_escape_string ($_POST['such'])."%' AND s.author = u.uid");
$menge = mysql_num_rows($result);
 echo "Var_dump von \$result:<pre>"; var_dump($result); echo "</pre>";
 echo "Var_dump von \$menge:<pre>"; var_dump($menge); echo "</pre>";
//Errechnen wieviele Seiten es geben wird
$wieviel_seiten = $menge / $eintraege_pro_seite;
 echo "Var_dump von \$wieviel_seiten:<pre>"; var_dump($wieviel_seiten); echo "</pre>";
 if ($menge > $eintraege_pro_seite) { echo "Var_dump von \$menge:<pre>"; var_dump($menge); echo "</pre>";
if($wieviel_seiten > 1){ var_dump($wieviel_seiten);
//Ausgabe der Seitenlinks:
echo '<link rel="stylesheet" type="text/css" href="no.css"><div class="pagination">';
echo '<div style="position:absolute;left:144px">';


//Ausgabe der Links zu den Seiten
for($a=0; $a < $wieviel_seiten; $a++)
   {   echo "Var_dump von \$wieviel_seiten:<pre>"; var_dump($wieviel_seiten); echo "</pre>";
   $b = $a + 1;

   //Wenn der User sich auf dieser Seite befindet, keinen Link ausgeben
   if($seite == $b)
      {
      echo "  <span class=\"current\">$b</span> ";


   //Aus dieser Seite ist der User nicht, also einen Link ausgeben
   }else
      {
      echo "  <a href=\"?seite=$b\">$b</a> ";
      }


   }
echo "</div>"; echo "</div>"; echo "</div>";  } } }
?>
</div>
<div id="cvaHolder"><?php  include 'add.html'; ?></div>
    <div id="newsHolder"></div>
<div id="footerHolder"></div>
</div>


</body>
</html>
 
Das war irgendwie nicht das, was ich meinte. Du rufst das Script im Browser auf und siehst dann die gerendete Seite. Davon brauchen wir den Quellcode, also von der HTML-Seite.
 
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>ojylkvon Edddr - U </title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-9">
<meta name="robots" content="index,follow">
<meta name="description" content="cvx
d">
<meta name="keywords" content="vdd">
<meta name="language" content="tr">
<link rel="stylesheet" type="text/css" media="screen, projection" href="stylesheet.css">
<link rel="shortcut icon" href="icon.ico">
 <style type="text/css">
	#container
	{
		margin: 0px 0px;
		width: 650px;
		height: 33px;
		background-color: #FFF8DC;

	}
	</style>

</head>

<body BGCOLOR="#6f310b">

  <div id="onHolder"></div>
<div id="menHolder">
Var_dump von $seite:<pre>NULL
</pre>Var_dump von $_GET:<pre>array(0) {
}
</pre>Var_dump von $link:<pre>resource(2) of type (mysql link)
</pre>Var_dump von $eintraege_pro_seite:<pre>int(9)
</pre>Var_dump von $start:<pre>int(0)
</pre>Var_dump von $seite:<pre>int(1)

</pre>Var_dump von $eintraege_pro_seite:<pre>int(9)
</pre>Var_dump von $ergebnis:<pre>resource(4) of type (mysql result)
</pre>Var_dump von $wieviel_seiten:<pre>NULL
</pre><div style="padding-left:16px;padding-top:14px"><table> <div style="position:none"><tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">Enter an article title</span></span></td></tr><tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:er@hotmail.de">Admin</A> - 12/08/11 10:33PM - <a href="www.php?id=2#comments">0 Comments</a> - - 0</span></td></tr><tr><td><span style="font-family:verdana; font-size: 10pt; "><p>
	1,2,3&nbsp; test</p>

</span></td></tr><tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">Enter an article title</span></span></td></tr><tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:er@hotmail.de">Admin</A> - 12/08/11 10:34PM - <a href="www.php?id=3#comments">0 Comments</a> - - 0</span></td></tr><tr><td><span style="font-family:verdana; font-size: 10pt; "><p>
	<span data-scayt_word="dfdfdf" data-scaytid="1">dfdfdf</span></p>
</span></td></tr><tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">Enter an article title</span></span></td></tr><tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:er@hotmail.de">Admin</A> - 12/08/11 10:35PM - <a href="www.php?id=4#comments">0 Comments</a> - - 0</span></td></tr><tr><td><span style="font-family:verdana; font-size: 10pt; "><p>

	<span data-scayt_word="hhhhhh" data-scaytid="1">hhhhhh</span></p>
</span></td></tr><tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">Enter an article title</span></span></td></tr><tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:er@hotmail.de">Admin</A> - 12/08/11 10:35PM - <a href="www.php?id=5#comments">0 Comments</a> - - 0</span></td></tr><tr><td><span style="font-family:verdana; font-size: 10pt; "><p>
	<span data-scayt_word="aaaaaaaaaaaa" data-scaytid="1">aaaaaaaaaaaa</span></p>
</span></td></tr><tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">Enter an article title</span></span></td></tr><tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:er@hotmail.de">Admin</A> - 12/08/11 10:35PM - <a href="www.php?id=6#comments">0 Comments</a> - - 0</span></td></tr><tr><td><span style="font-family:verdana; font-size: 10pt; "><p>

	<span data-scayt_word="qqqqqqqqqqqqqqqqqq" data-scaytid="1">qqqqqqqqqqqqqqqqqq</span></p>
</span></td></tr><tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">Enter an article title</span></span></td></tr><tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:er@hotmail.de">Admin</A> - 12/08/11 10:35PM - <a href="www.php?id=7#comments">0 Comments</a> - - 0</span></td></tr><tr><td><span style="font-family:verdana; font-size: 10pt; "><p>
	wwwwwwwwwwwwwww</p>
</span></td></tr><tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">Enter an article title</span></span></td></tr><tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:er@hotmail.de">Admin</A> - 12/08/11 10:35PM - <a href="www.php?id=8#comments">0 Comments</a> - - 0</span></td></tr><tr><td><span style="font-family:verdana; font-size: 10pt; "><p>

	eeeeeeeeeeeeeee</p>
</span></td></tr><tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">Enter an article title</span></span></td></tr><tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:er@hotmail.de">Admin</A> - 12/08/11 10:35PM - <a href="www.php?id=9#comments">0 Comments</a> - - 0</span></td></tr><tr><td><span style="font-family:verdana; font-size: 10pt; "><p>
	<span data-scayt_word="rrrrrrrrrrrrr" data-scaytid="1">rrrrrrrrrrrrr</span></p>
</span></td></tr><tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">Enter an article title</span></span></td></tr><tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:er@hotmail.de">Admin</A> - 12/08/11 10:35PM - <a href="www.php?id=10#comments">0 Comments</a> - - 0</span></td></tr><tr><td><span style="font-family:verdana; font-size: 10pt; "><p>

	tttttttttt</p>
</span></td></tr></div></table></div>Var_dump von $result:<pre>resource(5) of type (mysql result)
</pre>Var_dump von $menge:<pre>int(1)
</pre>Var_dump von $wieviel_seiten:<pre>float(0.11111111111111)
</pre></div>  
<div id="cvoHolder"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
<title>Untitled Document</title>
</head>
<body>

<div align="center"><h4>Suchmaske </h4></div>
<br>
<div align="center">
<form action="say.php" method="post">
<input type="Text" name="such" value="">
<input type="Submit" name="sent" value="Suchen">
</form>
</div>
</body>
</html></div>
    <div id="newsHolder"></div>
<div id="footerHolder"></div>
</div>


</body>
</html>
 
weil ich habe etwas im suchformular gesucht und danach den queltext kopiert vorher hatte ich nichts gesucht hier ist der queltext wenn ich nichts suche:
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>ojylkvon Edddr - U </title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-9">
<meta name="robots" content="index,follow">
<meta name="description" content="cvx
d">
<meta name="keywords" content="vdd">
<meta name="language" content="tr">
<link rel="stylesheet" type="text/css" media="screen, projection" href="stylesheet.css">
<link rel="shortcut icon" href="icon.ico">
 <style type="text/css">
	#container
	{
		margin: 0px 0px;
		width: 650px;
		height: 33px;
		background-color: #FFF8DC;

	}
	</style>

</head>

<body BGCOLOR="#6f310b">

  <div id="onHolder"></div>
<div id="menHolder">
Var_dump von $seite:<pre>NULL
</pre>Var_dump von $_GET:<pre>array(0) {
}
</pre>Var_dump von $link:<pre>resource(2) of type (mysql link)
</pre>Var_dump von $eintraege_pro_seite:<pre>int(9)
</pre>Var_dump von $start:<pre>int(0)
</pre>Var_dump von $seite:<pre>int(1)

</pre>Var_dump von $eintraege_pro_seite:<pre>int(9)
</pre>Var_dump von $ergebnis:<pre>resource(4) of type (mysql result)
</pre>Var_dump von $wieviel_seiten:<pre>NULL
</pre><div style="padding-left:16px;padding-top:14px"><table> <div style="position:none"><tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">Welcome to N-13 News 4.0</span></span></td></tr><tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:railer@hotmail.de">Admin</A> - 12/08/11 10:31PM - <a href="www.php?id=1#comments">0 Comments</a> - - 0</span></td></tr><tr><td><span style="font-family:verdana; font-size: 10pt; "><p>
	<span style="color: rgb(0, 170, 0); ">Congratulations!</span>&nbsp;<img alt=":happy:" src="http://dev.network-13.com/news/smilies/happy.gif" style="cursor: default; " /></p>

<div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; ">
	<p>
		You have successfully installed&nbsp;N-13&nbsp;News. This is a test post inserted into your database to show everything</p>
	<p>
		is working fine. You can delete this post by logging into the admin area. While logged in you can control</p>
	<p>
		every aspect of how your news is displayed. If you're unsure or need help with anything feel free to visit&nbsp;<a href="http://network-13.com">Network-13</a></p>

</div>
</span></td></tr><tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">Enter an article title</span></span></td></tr><tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:er@hotmail.de">Admin</A> - 12/08/11 10:33PM - <a href="www.php?id=2#comments">0 Comments</a> - - 0</span></td></tr><tr><td><span style="font-family:verdana; font-size: 10pt; "><p>
	1,2,3&nbsp; test</p>
</span></td></tr><tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">Enter an article title</span></span></td></tr><tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:er@hotmail.de">Admin</A> - 12/08/11 10:34PM - <a href="www.php?id=3#comments">0 Comments</a> - - 0</span></td></tr><tr><td><span style="font-family:verdana; font-size: 10pt; "><p>

	<span data-scayt_word="dfdfdf" data-scaytid="1">dfdfdf</span></p>
</span></td></tr><tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">Enter an article title</span></span></td></tr><tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:er@hotmail.de">Admin</A> - 12/08/11 10:35PM - <a href="www.php?id=4#comments">0 Comments</a> - - 0</span></td></tr><tr><td><span style="font-family:verdana; font-size: 10pt; "><p>
	<span data-scayt_word="hhhhhh" data-scaytid="1">hhhhhh</span></p>
</span></td></tr><tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">Enter an article title</span></span></td></tr><tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:er@hotmail.de">Admin</A> - 12/08/11 10:35PM - <a href="www.php?id=5#comments">0 Comments</a> - - 0</span></td></tr><tr><td><span style="font-family:verdana; font-size: 10pt; "><p>

	<span data-scayt_word="aaaaaaaaaaaa" data-scaytid="1">aaaaaaaaaaaa</span></p>
</span></td></tr><tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">Enter an article title</span></span></td></tr><tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:er@hotmail.de">Admin</A> - 12/08/11 10:35PM - <a href="www.php?id=6#comments">0 Comments</a> - - 0</span></td></tr><tr><td><span style="font-family:verdana; font-size: 10pt; "><p>
	<span data-scayt_word="qqqqqqqqqqqqqqqqqq" data-scaytid="1">qqqqqqqqqqqqqqqqqq</span></p>
</span></td></tr><tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">Enter an article title</span></span></td></tr><tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:er@hotmail.de">Admin</A> - 12/08/11 10:35PM - <a href="www.php?id=7#comments">0 Comments</a> - - 0</span></td></tr><tr><td><span style="font-family:verdana; font-size: 10pt; "><p>

	wwwwwwwwwwwwwww</p>
</span></td></tr><tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">Enter an article title</span></span></td></tr><tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:er@hotmail.de">Admin</A> - 12/08/11 10:35PM - <a href="www.php?id=8#comments">0 Comments</a> - - 0</span></td></tr><tr><td><span style="font-family:verdana; font-size: 10pt; "><p>
	eeeeeeeeeeeeeee</p>
</span></td></tr><tr><td><span style="font-family:times new roman,times,serif;"><span class="title_one" style="font-size: 18pt; color: rgb(0, 0, 0);">Enter an article title</span></span></td></tr><tr><td><span style="font-family: Verdana; font-size: 10pt; color: #ADADAD">Posted by  <a href="mailto:er@hotmail.de">Admin</A> - 12/08/11 10:35PM - <a href="www.php?id=9#comments">0 Comments</a> - - 0</span></td></tr><tr><td><span style="font-family:verdana; font-size: 10pt; "><p>

	<span data-scayt_word="rrrrrrrrrrrrr" data-scaytid="1">rrrrrrrrrrrrr</span></p>
</span></td></tr></div></table></div>Var_dump von $result:<pre>resource(5) of type (mysql result)
</pre>Var_dump von $menge:<pre>int(22)
</pre>Var_dump von $wieviel_seiten:<pre>float(2.4444444444444)
</pre>Var_dump von $menge:<pre>int(22)
</pre>Var_dump von $menge:<pre>float(2.4444444444444)
</pre><link rel="stylesheet" type="text/css" href="no.css"><div class="pagination"><div style="position:absolute;left:144px">Var_dump von $wieviel_seiten innerhalb der FOR-Schleife:<pre>float(2.4444444444444)
</pre>  <span class="current">1</span> Var_dump von $wieviel_seiten innerhalb der FOR-Schleife:<pre>float(2.4444444444444)

</pre>  <a href="?seite=2">2</a> Var_dump von $wieviel_seiten innerhalb der FOR-Schleife:<pre>float(2.4444444444444)
</pre>  <a href="?seite=3">3</a> </div></div></div></div>  
<div id="saHolder"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
<title>Untitled Document</title>
</head>
<body>
<div align="center"><h4>Suchmaske !!</h4></div>

<br>
<div align="center">
<form action="say.php" method="post">
<input type="Text" name="such" value="">
<input type="Submit" name="sent" value="Suchen">
</form>
</div>
</body>
</html></div>
    <div id="newsHolder"></div>
<div id="footerHolder"></div>
</div>


</body>
</html>
 
Bei mir wird die Pagination angezeigt, wie du im Anhang erkennen kannst. Es muss also mit dem CSS zusammenhängen. Allerdings kann es auch eine Kombination aus den massig Fehlern im HTML-Code sein:

Code:
Result: 45 Fehler / 0 Warnungen

line 43 column 88 - Fehler: document type does not allow element "DIV" here
line 43 column 92 - Fehler: document type does not allow element "TR" here
line 43 column 273 - Fehler: document type does not allow element "TR" here
line 43 column 495 - Fehler: document type does not allow element "TR" here
line 43 column 555 - Fehler: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
line 46 column 71 - Fehler: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
line 55 column 20 - Fehler: document type does not allow element "TR" here
line 55 column 199 - Fehler: document type does not allow element "TR" here
line 55 column 417 - Fehler: document type does not allow element "TR" here
line 55 column 477 - Fehler: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
line 57 column 20 - Fehler: document type does not allow element "TR" here
line 57 column 199 - Fehler: document type does not allow element "TR" here
line 57 column 417 - Fehler: document type does not allow element "TR" here
line 57 column 477 - Fehler: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
line 59 column 24 - Fehler: there is no attribute "DATA-SCAYT_WORD"
line 59 column 46 - Fehler: there is no attribute "DATA-SCAYTID"
line 60 column 20 - Fehler: document type does not allow element "TR" here
line 60 column 199 - Fehler: document type does not allow element "TR" here
line 60 column 417 - Fehler: document type does not allow element "TR" here
line 60 column 477 - Fehler: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
line 62 column 20 - Fehler: document type does not allow element "TR" here
line 62 column 199 - Fehler: document type does not allow element "TR" here
line 62 column 417 - Fehler: document type does not allow element "TR" here
line 62 column 477 - Fehler: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
line 65 column 20 - Fehler: document type does not allow element "TR" here
line 65 column 199 - Fehler: document type does not allow element "TR" here
line 65 column 417 - Fehler: document type does not allow element "TR" here
line 65 column 477 - Fehler: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
line 67 column 20 - Fehler: document type does not allow element "TR" here
line 67 column 199 - Fehler: document type does not allow element "TR" here
line 67 column 417 - Fehler: document type does not allow element "TR" here
line 67 column 477 - Fehler: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
line 70 column 20 - Fehler: document type does not allow element "TR" here
line 70 column 199 - Fehler: document type does not allow element "TR" here
line 70 column 417 - Fehler: document type does not allow element "TR" here
line 70 column 477 - Fehler: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
line 72 column 20 - Fehler: document type does not allow element "TR" here
line 72 column 199 - Fehler: document type does not allow element "TR" here
line 72 column 417 - Fehler: document type does not allow element "TR" here
line 72 column 477 - Fehler: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
line 75 column 30 - Fehler: end tag for "TABLE" which is not finished
line 80 column 58 - Fehler: document type does not allow element "LINK" here
line 84 column 56 - Fehler: end tag for element "DIV" which is not open
line 85 column 24 - Fehler: document type does not allow element "HTML" here
line 104 column 5 - Fehler: end tag for element "DIV" which is not open

Du solltest

- versuchen, die HTML-Fehler zu beseitigen
- Mit den CSS-Dateien rumprobieren (einzeln umbennen bspw.) um herauszufinden, welche der Dateien dafür sorgen könnte, das die Pagination nicht angezeigt wird.
 

Anhänge

  • pagination.png
    pagination.png
    9,1 KB · Aufrufe: 8
Womit wir wieder bei dem Problem der TYPEN wären.
Eine Division ergibt in PHP einen Gleitkommatypen. Darum wird auch die Auswahl angezeigt wenn du auf != '1' prüfst ... weil irgendwas durch 9 nun mal nicht genau 0 , 1 oder sonst was ist. darum sagte ich auch : prüfe auf kleiner als anstatt auf IST.

// EDIT
@saftmeist
FALSCH : das Problem ist das das Ergebnis float != int der Prüfung ist
 
Zurück