Hallo
Ich habe in einem Formular 3 Textfelder. Ich möchte nun prüfen, in welchem was drin steht. Je nachdem gibt es dann ein anderes SQL-Statement. Hat jemand eine Idee ? Weil so gehts nicht :
$menu = $_POST['txtMenu'];
$appl = $_POST['txtAppl'];
$prob = $_POST['txtProb'];
if ($menu== "" || $prob="") {
$result = mysql_query("SELECT * FROM tfaq where tfaq_appl like '%".$_POST['txtAppl']."%'");
}
if ($appl== "" || $prob="") {
$result = mysql_query("SELECT * FROM tfaq where tfaq_menu like '%".$_POST['txtMenu']."%'");
}
if ($appl== "" || $menu="") {
$result = mysql_query("SELECT * FROM tfaq where tfaq_prob like '%".$_POST['txtProb']."%'");
}
Und noch eine Frage :
Ich lege in der Datenbank den Pfad ab wo ein Dokument liegt. Wie kann ich das verlinken ? Ich habs mal so probiert :
<td><a href=$row['tfaq_doku2']><?=$row['tfaq_doku2']?> </a></td>
Damit wird zwar das Verzeichnis als String angezeigt, jedoch nicht verlinkt.
Gruess dinu_ch