comparing form to database
Posted: Sun Jul 09, 2006 8:02 pm
feyd | Please use
process.php--- "this is what i have so far...[/syntax]
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Im trying to:
1. create a form page in HTML
2. create a .php page that queries an ODBC database that I have, and compares info submitted
in the form to info in my database.
My question is how can i make the comparison between my form and my databse.
form.html
[syntax="html"]<form action="process.php" method="get">
mlsnumber:
<input name="mlsnumber" type="text" />
<input name="" type="submit" />
</form>Code: Select all
# connect to a DSN "homep_props" with a user and password ""
$connect = odbc_connect("homep_props", "", "");
# query the users table for *
$query = "SELECT * FROM props";
# perform the query
$result = odbc_exec($connect, $query);feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]