there is no out put with this code,there is no errors as well, can some one help me, here is the code
<html>
<body>
<form method='post' action='output.php'>
<input type='text' name='f_name' size='12'>
<input type='submit' value='show'>
</form>
</body>
</html>
<?php
$a=$_POST['f_name'];
$user="root";
$host="localhost";
$password="";
$database="diki";
$connection=mysql_connect($host,$user,$password);
$db=mysql_select_db($database,$connection) or die( "Unable to select database");
$query = "select contact from member where f_name='$a'";
$result=mysql_query($query) or die ("couldnot excute query");
if ($a=f_name)
while ($row=mysql_fetch_array($result));
{
echo "$row[f_name]";
echo "$row[address]";
}
mysql_close();
php?>
__________________________
Permanent Links