Location: PHPKode > projects > PHP Enter > www/admin/list_search.php
<?php include('header.php'); include('options.php'); ?>
<table width="85%" border="0" align="center" cellpadding="2" cellspacing="0" bgcolor="#ffffff">
<tr><td><h3>Search Listing</h3></td><tr>
<tr><td width="450px">
<?php
if(isset($_POST['submit']))
{
$document = $_POST['document'];
$resultya = mysql_query("SELECT * FROM newser WHERE btexty like '%$document%'")
or die(mysql_error()); 
while($myrow = mysql_fetch_assoc($resultya))
{
echo "<a href=\"editnews.php?id=$myrow[blogid]\"><b><font color=\"#3B4A60\">$myrow[blogid]. $myrow[btexty]</font></b></a>";
echo '<br />';
}
}else{ 
?>
<form name="myforma" action="list_search.php" method="post">
<input type="text" value="" name="document"><BR><BR>
<input type="submit" name="submit" value="ok">
</form>
<?php
}
?>
</td></tr></table>
Return current item: PHP Enter