Jump to content
php.lv forumi

Mekletajs


goma smile

Recommended Posts

<?php
if($_POST['meklet'])
{
$meklejamais = $_POST['meklejamais']; // aizsardzibu sataisi
$mm = mysql_query("select * from tabula where lietotajvards like '%".$meklejamais."%'");
while($m = mysql_fetch_array($mm))
{
echo "".$m['kautKas']."<br />";
}
}
else
{
echo '<form method="POST">
<input type="text" name="meklejamais" /> <input type="submit" value="meklēt" name="meklet" />
</form>';
}
?>

Link to comment
Share on other sites

×
×
  • Create New...