PersonalDemon
Mitglied
jetzt funktioniert die übergabe der werte für die ausgabe nicht wird nichts mehr ausgegeben :-(
-----die seite mit den links die zu der ausgabe führt.-----
<?php
include("dbConfig.php");
$result = mysql_query("SELECT * FROM interviews ORDER BY interviewsid DESC",$ms);
if(!isset($buchstabe)) {$buchstabe="A";}
if($buchstabe!="0")
{
$result = mysql_query("SELECT * FROM interviews WHERE title LIKE '$buchstabe%'",$ms);
}
if($buchstabe=="0")
{
$result = mysql_query("SELECT * FROM interviews WHERE title LIKE '0%' OR title LIKE '1%' OR title LIKE '2%' OR title LIKE '3%' OR title LIKE '4%' OR title LIKE '5%' OR title LIKE '6%' OR title LIKE '7%' OR title LIKE '8%' OR title LIKE '9%'",$ms);
}
while($myrow = mysql_fetch_array($result)) {
echo "<a href=\"main.php?action=interviews2&&buchstabe=".$buchstabe["title"]."&&id=".$myrow["interviewsid"]."\">";
echo $myrow["title"]."</a><br>";
echo "<br><br><img src=\"balken.jpg\" border=\"0\"><br><br>";
}
?>
-----------------------------------------------------------
und jetzt die nicht funktionierende ausgabe:
-----------------------------
<?php
include("dbConfig.php");
$result = mysql_query("SELECT * FROM interviews where interviewsid AND title",$ms);
while($myrow = mysql_fetch_assoc($result))
{
echo "<b> ";
echo "<font color=\"#FFFFF\">";
echo $myrow['interviewsid'];
echo "</font>";
echo $myrow['title'];
echo "</b><br>";
echo "( Author: <i>";
echo $myrow['author'];
echo " - Added: ";
echo $myrow['dtime'];
echo "  ";
echo "</i><hr align=left width=160>";
echo $myrow['text1'];
echo "<br><br><img src=\"balken.jpg\" border=\"0\"><br><br>";
}
?>
kann mir hier jemand helfen?
-----die seite mit den links die zu der ausgabe führt.-----
<?php
include("dbConfig.php");
$result = mysql_query("SELECT * FROM interviews ORDER BY interviewsid DESC",$ms);
if(!isset($buchstabe)) {$buchstabe="A";}
if($buchstabe!="0")
{
$result = mysql_query("SELECT * FROM interviews WHERE title LIKE '$buchstabe%'",$ms);
}
if($buchstabe=="0")
{
$result = mysql_query("SELECT * FROM interviews WHERE title LIKE '0%' OR title LIKE '1%' OR title LIKE '2%' OR title LIKE '3%' OR title LIKE '4%' OR title LIKE '5%' OR title LIKE '6%' OR title LIKE '7%' OR title LIKE '8%' OR title LIKE '9%'",$ms);
}
while($myrow = mysql_fetch_array($result)) {
echo "<a href=\"main.php?action=interviews2&&buchstabe=".$buchstabe["title"]."&&id=".$myrow["interviewsid"]."\">";
echo $myrow["title"]."</a><br>";
echo "<br><br><img src=\"balken.jpg\" border=\"0\"><br><br>";
}
?>
-----------------------------------------------------------
und jetzt die nicht funktionierende ausgabe:
-----------------------------
<?php
include("dbConfig.php");
$result = mysql_query("SELECT * FROM interviews where interviewsid AND title",$ms);
while($myrow = mysql_fetch_assoc($result))
{
echo "<b> ";
echo "<font color=\"#FFFFF\">";
echo $myrow['interviewsid'];
echo "</font>";
echo $myrow['title'];
echo "</b><br>";
echo "( Author: <i>";
echo $myrow['author'];
echo " - Added: ";
echo $myrow['dtime'];
echo "  ";
echo "</i><hr align=left width=160>";
echo $myrow['text1'];
echo "<br><br><img src=\"balken.jpg\" border=\"0\"><br><br>";
}
?>
kann mir hier jemand helfen?