If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Need a Query Help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-27-09, 19:08
binumathew binumathew is offline
Registered User
 
Join Date: Nov 2009
Posts: 1
Need a Query Help

I Developed 2 Table

1)FriendTable

Code:
 CREATE TABLE `friendtable` (            
               `username` varchar(50) default NULL,  
               `fusername` varchar(50) default NULL  
             ) ENGINE=InnoDB DEFAULT CHARSET=latin1
2)Msg Table

Code:
 CREATE TABLE `msg` (                                      
          `msg` varchar(50) default NULL,                         
          `username` varchar(50) default NULL,                    
          `dt` date default NULL,                                 
          `id` int(50) unsigned NOT NULL auto_increment,          
          PRIMARY KEY  (`id`)                                     
        ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1
i need to get all the messages send by the fusername who is friend of username in friend table and messages send by username

can anybody help me??
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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