Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Selection by category
Old 03-12-2005, 10:31 AM Selection by category
cforscutt's Avatar
Novice Talker

Posts: 9
Trades: 0
Hi sorry for yet another silly question but I’m trying to create a business directory which stores shops contact information. I would like to build a search facility so users can pull back shops based on shop type, like ‘electrical’ or ‘book shops’ etc. I have created three tables as follows but am unsure of the code needed to implement such a drop-down search tool, I would again really appreciate any assistance with this my e-mail address is chris@forscutt.com (cc to) cforscutt@hotmail.com

-------------------------
street
-------------------------
id
shop_model
shop_name
shop_short_descr
shop_long_descr
shop_image
shop_opening_hours
shop_address
shop_telephone
shop_fax

-------------------------
street_shop_link
-------------------------
street_shop_link_id
shop_id
street_shop_type_id

-------------------------
street_shop_type
-------------------------
street_shop_type_id
street_shop_type_descr
cforscutt is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-12-2005, 01:48 PM
cforscutt's Avatar
Novice Talker

Posts: 9
Trades: 0
I have tried the following but I must be going wrong somewhere as its returns an error #1064 - You have an error in your SQL syntax:

Select street.shop_name, street_shop_type. street_shop_type_descr from (street_shop_link join street on street_shop_type.shop_id = street.id) join street_shop_type on street_shop_type. street_shop_type_id = street_shop_link.street_shop_type_id where street_shop_type. street_shop_type_id= ‘1'

any ideas what i'm doing wrong, I would greatfully apreciate any help.
cforscutt is offline
Reply With Quote
View Public Profile
 
Old 03-12-2005, 01:57 PM
Gaffer Sports's Avatar
Ultra Talker

Posts: 397
Name: Steve
Location: Scotland
Trades: 1
I got your email, bud. I am currently working on something, but should be finished very soon and will look at your problem.

Steve.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
Gaffer Sports is offline
Reply With Quote
View Public Profile Visit Gaffer Sports's homepage!
 
Old 03-12-2005, 02:57 PM
cforscutt's Avatar
Novice Talker

Posts: 9
Trades: 0
I really appreciate it Gaffer ta - your the man!
cforscutt is offline
Reply With Quote
View Public Profile
 
Old 03-13-2005, 12:44 PM
Gaffer Sports's Avatar
Ultra Talker

Posts: 397
Name: Steve
Location: Scotland
Trades: 1
Email Sent with code.

Steve
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
Gaffer Sports is offline
Reply With Quote
View Public Profile Visit Gaffer Sports's homepage!
 
Reply     « Reply to Selection by category
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30910 seconds with 12 queries