The way i see it this should be created differently as i am trying to debug this ....(i am having fun tho)
Ok .... first
Ive added a location selector in a dropdown menu instead thinking this should be faster and easier to change from location to location (as all you know this is quite important in a (classified ad web site )
So all i've pretty much did is took the drop down menu from the advance-search.php
copy the form action changed a couple of things and added to my header and bingo it's working but now! the big issue is every time you press on ad or go back home it voids anything that was selected and brings me back to the homepage. So i was woundering should i try to come with an if statement that could possibly fix this or maybe start a session to save this selected data (im kinda new to php ive only been doing this for a month so far so good but i need help with this )
Just in the selectSQL funtion pass the variable of the location ;)
hey chema thanks for the answer this quickly very appriciated.
Ok so im not sure if i understand what you mean here im sorry .
what im think it's this
echo sqloption ($query,"location",(((($location)))) <----- is this what your talking about.
Ps minus the ()
cuz i know if you add $location=1 this is gonna give the location of that variable.
ii had tried this before but it doesn't really fix my issues it seems that when you press home it just go back to the very first page which is not that efficient.
But i did notice that from cat to cat it doesn't void the selected location which i would i like to reproduce.
then you need to save it in a session variable and move it trough pages
You must log in to post.