Notorious
07.11.2010, 13:33
Ich habe ein kleines aber feines CMS wie z0r.de geschrieben, ich habe derzeit Probleme beim anzeigen.
Wenn ich auf die erste ID auf der Datenbank per php zugreife wird nur die erste anzgezeigt und die anderen nicht.
z.b.
die ID: 1 - wird angezeigt (?id=1)
die ID: 2 - wird nicht amgezeigt (?id=2)
<?php
require_once("inc/logging.php");
require_once("inc/config.php");
mysql_select_db("z0mg");
#####################################
$result = mysql_query("SELECT * FROM swf");
while($row = mysql_fetch_object($result))
{
$id = $row->id;
$dir = $row->dir;
$name = $row->name;
}
?>
<?php
$s = $_GET+++91;"id"+++93;;
if(htmlspecialchars($s == "$id"))
{
echo '<center><object type="application/x-shockwave-flash" data="'.$dir.'" width="600" height="450">';
echo '<param name="autostart" value="true" />';
echo '<param name="src" value="'.$dir.'" />';
echo '</object><br><br>';
echo "<b>Name:</b> $name<br><br>";
echo '<a href="?id=', $id + 1 ,'" style="text-decoration:none"><font color="Black" name="link3"><b>Weiter »</b></font></a>';
}
?>
Wenn ich auf die erste ID auf der Datenbank per php zugreife wird nur die erste anzgezeigt und die anderen nicht.
z.b.
die ID: 1 - wird angezeigt (?id=1)
die ID: 2 - wird nicht amgezeigt (?id=2)
<?php
require_once("inc/logging.php");
require_once("inc/config.php");
mysql_select_db("z0mg");
#####################################
$result = mysql_query("SELECT * FROM swf");
while($row = mysql_fetch_object($result))
{
$id = $row->id;
$dir = $row->dir;
$name = $row->name;
}
?>
<?php
$s = $_GET+++91;"id"+++93;;
if(htmlspecialchars($s == "$id"))
{
echo '<center><object type="application/x-shockwave-flash" data="'.$dir.'" width="600" height="450">';
echo '<param name="autostart" value="true" />';
echo '<param name="src" value="'.$dir.'" />';
echo '</object><br><br>';
echo "<b>Name:</b> $name<br><br>";
echo '<a href="?id=', $id + 1 ,'" style="text-decoration:none"><font color="Black" name="link3"><b>Weiter »</b></font></a>';
}
?>