Search in php
Posted 15 September 2006 - 08:32 AM
Now what i want to do in sql is if i select a area in the first list box and then i select a category in the seccond list box i press a button Called find. I want to assign those current values to a variable and then use my select statement to filter those fields and display it.
How do i go about doing that. I do not want you guys to do my work for me i just want an idea as to the working on this. What wording do i use to assign the values of the list box to a variable.
Thank you so much
Posted 15 September 2006 - 08:38 AM
sql query= select blah from foo WHERE $filter = value and $filter2 = somethign else
Posted 15 September 2006 - 08:40 AM
Posted 15 September 2006 - 08:43 AM
Posted 15 September 2006 - 08:45 AM
Posted 15 September 2006 - 09:22 AM
WHERE $area = listbox1
and $category = listbox2.
so my question is wht wording do i use to assign those listboxes selected content to variable?
Posted 15 September 2006 - 04:56 PM
$_GET['listbox_name'] or $_POST['listbox_name']
IF YOU HAVE REGISTER GLOBALS ON, THEN YOU CAN ACCESS BY SIMPLY:
Posted 16 September 2006 - 06:54 PM
The subject is called : mysql_numrows():
I realy appreciate your help!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users