farshad1_1390
یک شنبه 07 خرداد 1391, 15:22 عصر
با سلام.میخواستم بپرسم که چطوری نتیجه جستجویی مثل کد زیر رو داخل textbox میتونم نشون بدم! با تشکر
<?php $con = mysql_connect("localhost","root","");
if (!$con){die('Could not connect: ' . mysql_error());}
mysql_select_db("news", $con);
$result = mysql_query("SELECT * FROM link where title='$_POST[searchl]'");
while($row = mysql_fetch_array($result))
{
echo $row['adress'] . " " . $row['title'];
echo "<br />";
}
?>
<?php $con = mysql_connect("localhost","root","");
if (!$con){die('Could not connect: ' . mysql_error());}
mysql_select_db("news", $con);
$result = mysql_query("SELECT * FROM link where title='$_POST[searchl]'");
while($row = mysql_fetch_array($result))
{
echo $row['adress'] . " " . $row['title'];
echo "<br />";
}
?>