Hi,
I am trying to retriving some datas from the database.using submit button i am getting result but i inserted one submit image and i gave link to that image and then i run that script but its not working now.Can any one tell me using link how to retrive the datas.
here i pasted my script
———————search.php————–
[COLOR=”Blue”]<form name=”form1″ method=”get”>
<table width=”200″ border=”1″>
<tr>
<td><input name=”event” type=”text”> </td>
<td><a href=”country,php”> <img src=”go.gif”></a></td>
</tr>
</table>
</form>
—–coutry.php————————–
[COLOR=”Blue”]<form name=”form1″ method=”get”>
<?php
// error_reporting(E_ALL);
//ini_set(‘display_errors’, True);
include(‘connect.php’);
$sql=”SELECT subject FROM addevent WHERE event =’$_GET[event]'”;
// OREDER BY id DESC is order result by descending
$result=mysql_query($sql);
while($rows=mysql_fetch_assoc($result))
{
// Start looping table row
?>
<?PHP
echo “Details about ‘$_GET[event]'”;?>
<table width=”900″ border=”0″ align=”center”>
<div align=”center”><b>Search Details</b></div>
<tr bgcolor=”#E1E1E1″ >
<td width=”194″>Subject</td>
</tr></table>
<?php
print “<tr bgcolor=”#CCCCCC”>
<td bgcolor=”#FFFFFF”>” . $rows[‘subject’] . “</td>
</tr>”;
// Exit looping and close connection
}
mysql_close();
?>
</form>