Go Back   Free website templates > Web Template Help > PHP and MySQL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Join now to share free website templates or post on the forum. If you have never been on a forum before read the FAQ. It's quick, easy and free to join!
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-12-2009, 02:48 PM
Junior Member
 
Join Date: Aug 2009
Posts: 3
frlopes is on a distinguished road
Question Search by checkbox. [easy, problbl]

Guys. im developing a site, with a list of shops and factories, everything.
I wanna make a search by checkbox, on the site.
by php and mysql.
The logic is simple.
there will be categories and subcategories.
example.
Cat 1 - sub 1 - sub 2 - sub3 - sub4| zone 1 zone 2 zone 3
Cat 2 - sub 1 - sub 2 - sub3 - sub4| zone 1 zone 2 zone 3
Cat 3 - sub 1 - sub 2 - sub3 - sub4| zone 1 zone 2 zone 3
-----------------------------------
the search engine must involve everything.
if i want to search category 1 + cat2sub2and3, in zone 1 = result in a page
if i just want categorie 1 in all zones = result in page.
----------------------------------
you understood?
thanks. sorry for bad english
Reply With Quote
  #2 (permalink)  
Old 08-13-2009, 12:25 AM
bmcoll3278's Avatar
Senior Member
 
Join Date: Jun 2009
Posts: 303
bmcoll3278 is on a distinguished road
Default

It is not to hard but it will take a lot of coding and I or whoever did it would have to access you data base to see how to write the sql query's also would have to know how you want to display it in a table or straight list exc.
__________________
I hope to build a site with something for every body
www.bmcoll.com
Reply With Quote
  #3 (permalink)  
Old 08-17-2009, 01:44 AM
Junior Member
 
Join Date: Aug 2009
Posts: 3
frlopes is on a distinguished road
Default thanks dude

thanks man.
Im gonna make a model of database, and then i post here.
You can help me?
thanks.
Reply With Quote
  #4 (permalink)  
Old 08-17-2009, 03:31 AM
bmcoll3278's Avatar
Senior Member
 
Join Date: Jun 2009
Posts: 303
bmcoll3278 is on a distinguished road
Default

I can try but no promise
That is hours of coding
Reply With Quote
  #5 (permalink)  
Old 08-17-2009, 08:33 PM
Junior Member
 
Join Date: Aug 2009
Posts: 3
frlopes is on a distinguished road
Smile more info

oh, really?
i thought it was simple
can you make just a basic one, just for learning process?
if i understand the engine, i think i can make that.
the DB = id - company - type - price
1 - a - blabla - 20
2 - b -tata - 60
3 - c - toto - 20
--------------------
so, if i want to search only companies A in price 20, i can do it. (fill the checkbox and submit) results reported.
--------------------
can do that?
thanks dude. and sorry for inconvenience
.
btw. felipe.romero@hotmail.com, if u can add me, i can try to explain better to u
Reply With Quote
  #6 (permalink)  
Old 08-18-2009, 10:35 PM
bmcoll3278's Avatar
Senior Member
 
Join Date: Jun 2009
Posts: 303
bmcoll3278 is on a distinguished road
Default

Quote:
Originally Posted by frlopes View Post
oh, really?
i thought it was simple
can you make just a basic one, just for learning process?
if i understand the engine, i think i can make that.
the DB = id - company - type - price
1 - a - blabla - 20
2 - b -tata - 60
3 - c - toto - 20
--------------------
so, if i want to search only companies A in price 20, i can do it. (fill the checkbox and submit) results reported.
--------------------
can do that?
thanks dude. and sorry for inconvenience
.
btw. felipe.romero@hotmail.com, if u can add me, i can try to explain better to u

Do you have the database structure and table names.

Give me a sql files for your data base every thing but your password so I can build the query and I will try. to build the form and php file to do the sql query for you. I will duplicate your database on my server get it working and then send it. so You can just change the password and it should work.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:18 AM.



mouseover mouseover mouseover