Current location: Hot Scripts Forums » Other Discussions » Database » complicated Mysql query problem


complicated Mysql query problem

Reply
  #1 (permalink)  
Old 10-21-11, 09:22 AM
maulikmewa maulikmewa is offline
New Member
 
Join Date: Oct 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
complicated Mysql query problem

hello there


i have came across a problem in mysql query the problem is such that i have two table

1. user : which has id,firstname,lastname,city_id,state_id and cityarea_id where i store

the ids of cityarea in comma spaerated manner in field cityarea_id

2 city area with id,citareaname,city_id and area_direction

user

id firstname lastname city_id state_id cityarea_id
1 abc xyz 1 2 2,4,6,8,9
2 cvd ads 1 2 12,4,5,7,9
2 sdd afs 1 2 2,4,6,99
2 red ahs 1 2 12,14,5,17,9

cityarea
id citareaname city_id area_direction
1 ggg 1 North
2 bbb 1 west
3 ccc 1 west
4 ppp 1 East

i want to show lsit of users in tabs according to thier direction of areas,at the same time a user who has selected area of north and east should been in both the tabs.


pls help me out!!!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mysql query error xEX3CUT1ONx PHP 3 02-02-10 05:11 PM
mySQL - DISTINCT Query mcrob Database 9 02-07-07 12:22 PM
Query Performance / MySql HenLab PHP 1 08-12-04 04:38 PM
MySQL Query problem Wraith PHP 5 03-06-04 05:16 PM
MySQL Expert Required!! Advanced Query Problem bluey_the_punch PHP 1 02-28-04 01:37 PM


All times are GMT -5. The time now is 05:21 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.