Bernd: num_rows

Beitrag lesen

Hallo,

das hat nichts mit einem schlechten Tag zu tun, auch wenn ich gerade total genervt bin. Aber stimmt, zum Lommi könnte ich tatsächlich mal wieder, da kann man sau gut essen.

Ich habe das Zählen hierfür gebraucht

<?php if ($num_rows != 0){ ?>
				<?php while($result = $result_Projekte->fetch_object()) { ?>			
			<div>
				<p style="padding: 1em 0em 5px 0;"><strong><?php echo htmlspecialchars($result->p_titel) ?></strong></p>
				<p style="padding: 0 0 5px 0; font-size: 0.9em">
					<?php echo htmlspecialchars($result->p_von) ?>
					<?php if ($result->p_von != $result->p_bis): ?>
					 bis 
					<?php echo htmlspecialchars($result->p_bis) ?>	
					 <?php endif ?> 
					</p>
				<p style="padding: 0 0 5px 0; font-size: 0.9em"><a href="freigabe.php?projekt=<?php echo htmlspecialchars($result->pf_bId) ?>">Details zeigen</a></p>
			</div>
			<?php }  ?>	
			<?php } else {
				echo "Keine Daten vorhanden";
			} ?>

Ist ja nur eine Spiellerrei, hätte es nicht geklappt, wäre "keine Daten" einfach weg geblieben. Ist kein Weltuntergang.