Ik heb een pagina die search.php heet..
<?
include("config/config.php");
if ($_POST['submit'])
{
$sql = "SELECT * FROM tbl_marnic_vacatures WHERE `titel` LIKE '%".$_POST['search']."%'";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)){
echo $row['titel'];
echo "<br>";
}
} else
{
echo"<br>";
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\">";
echo "<form method=\"POST\" action=\"" . $PHP_SELF . "\">";
echo "<tr width=150><td>Tekst:</td>";
echo "<td width=650><input type=\"text\" name=\"search\" style=width:270px></td></tr>";
echo "<tr><td colspan=2><input type=\"submit\" name=\"submit\" value=\"Plaats!\" class=\"buttons\"> <input type=\"reset\" value=\"Wis\" class=\"buttons\"></td></tr>";
echo "</form>";
echo "</table>";
}
?>
Maar wie ziet waarom hij niet werkt.. Ik kan geen error report opvragen (instellingen van server)
1.195 views