$result = mysql_query("SELECT * FROM info WHERE City=''");
I have a column named City in my mysql db. I want to know what I need to put in there to make it look for what someone searches for.
thanks
Edited by outatime88, 28 December 2006 - 10:07 AM.
Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!
Edited by outatime88, 28 December 2006 - 10:07 AM.
<form method="post" action="something.php"> <input type="text" name="city"> <input type="submit" value="Submit"> </form>
$city = $_POST['city']; $result = mysql_query("SELECT * FROM info WHERE City LIKE '$city'");
$city = mysql_real_escape_string($_POST['city']);
0 members, 0 guests, 0 anonymous users
Community Forum Software by IP.Board
Licensed to: Geeks to Go, Inc.