<?php
if($submit)
{
$db = mysql_connect(\\"localhost\\", \\"username\\", \\"password\\");
mysql_select_db(\\"db_name\\",$db);
$result = mysql_query(\\"SELECT * FROM greatbritain WHERE name=\\'$search\\'\\",$db);
if ($myrow = mysql_fetch_array($result))
{
echo \\"<INPUT TYPE=TEXT NAME=name VALUE=<? echo $name ?>\\";
echo \\"<INPUT TYPE=TEXT NAME=address VALUE=<? echo $address ?>\\";
}
}
?>
funny how php builder works? they use addslashes() function going into the database, but forgot to use stripslashes() coming out...hmmm
Anyways, about your problem...
You forgot a line and goofed up the $result line
it should be
$sql ="SELECT * FROM greatbritian WHERE name = \"$search\"";
$result = mysql_query($sql, $db);
hope that helps