There is a little bit prob with my code,
My Prob: When i type name or place etc in search bar it show me the entire data stored in database, i need it show what i searching for...
script for Search:
<div id="wb_Form1" style="position:absolute;width:864px;height:147px;">
<form name="q" method="get" action="test-result.php" id="Form1">
<input type="text" id="Editbox1" style="position:absolute;left:13px;top:7px;width:836px;height:50px;line-height:50px;z-index:5;" name="query" value="" title="Test" placeholder="Type your place or address to find">
<input type="submit" id="Button1" name="" value="Search" style="position:absolute;left:322px;top:76px;width:239px;height:53px;z-index:6;">
</form>
</div>
and my action script (test-result.php)
<Strong><Font size="3">
<?php
$host="localhost"; // Host name
$username="user"; // Mysql username
$password="pass"; // Mysql password
$db_name="search"; // Database name
$tbl_name="list"; // Table name
// Connect to server and select database.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
$sql="SELECT * FROM $tbl_name";
$result=mysql_query($sql);
?>
<table width="" border="0" cellspacing="5" cellpadding="0">
<tr>
<td>
<table width="" border="1" cellspacing="5" cellpadding="3">
<tr>
<td align="center"><strong>Name</strong></td>
<td align="center"><strong>Type</strong></td>
<td align="center"><strong>Address</strong></td>
</tr>
<?php
while($rows=mysql_fetch_array($result)){
?>
<tr>
<td><? echo $rows['Name']; ?></td>
<td><? echo $rows['Type']; ?></td>
<td><? echo $rows['Address']; ?></td>
<td align="center"><a href="Show.php?id=<? echo $rows['id']; ?>">View Details</a></td>
</tr>
<?php
}
?>
</table>
</td>
</tr>
</table>
<?php
mysql_close();
?>