goma smile Posted November 16, 2008 Report Posted November 16, 2008 Ka uztaisit mekletaj scriptu ?? noteiktam laukam piemeram lietotajvards
Kristabs Posted November 16, 2008 Report Posted November 16, 2008 "select * from tabula where lietotajvards like '%".$meklejamais."%'"
goma smile Posted November 16, 2008 Author Report Posted November 16, 2008 Tas ir jusu valoda :D :D (PRofisionalu) man taka uzreiz tas nepielec
marcis Posted November 16, 2008 Report Posted November 16, 2008 Tev iedeva MySQL pieprasījuma piemēru, to tu saproti?
anonīms Posted November 23, 2008 Report Posted November 23, 2008 <?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>'; } ?>
Recommended Posts