ausgabe funktioniert!*HELP*

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 "(&nbsp;&nbsp;Author:&nbsp;&nbsp;<i>";

echo $myrow['author'];

echo "&nbsp;&nbsp;-&nbsp;&nbsp;Added: ";

echo $myrow['dtime'];

echo "&nbsp;&nbsp;)";

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?
 
bist du sicher das dein Query so funktioniert?
Code:
$result = mysql_query("SELECT * FROM interviews where interviewsid AND title",$ms);
ich denke das sollte eher ungefähr so aussehen
Code:
$result = mysql_query("SELECT * FROM interviews where interviewsid='irgendwas' AND title='irgendwasanderes'",$ms);
 
okay hab das jetzt so gemacht aber es wird jetzt alles ausgegeben also nicht nur speziell der zum link zugehörige artikel sondern einfach alles was unter diesem buchstaben zu finden ist.

hier die ausgabe:
Code:
<?php
// load the configuration file.
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_assoc($result))
             {
               //begin of loop
               //now print the results:
               echo "<b> ";
               echo $myrow['title'];
               echo "</b><br>";
               echo "(&nbsp;&nbsp;Author:&nbsp;&nbsp;<i>";
               echo  $myrow['author'];
               echo "&nbsp;&nbsp;-&nbsp;&nbsp;Added: ";
               echo $myrow['dtime'];
               echo "&nbsp;&nbsp;)";
               echo "</i><hr align=left width=160>";
               echo $myrow['text1'];
               echo "<br><br><img src=\"balken.jpg\" border=\"0\"><br><br>";
               // Now print the options to (Read,Edit & Delete the news)
             } 
               //end of loop
?>


Kann ich das auf den jeweils gewünschten Artikel begrenzen (die Ausgabe)?
 
Zurück