hi
i have two tables,i want to display the details in startpost and based on the userid i want to display the username
ie i want to print
posttitle,date,name
using single query please help
CREATE TABLE `creuser` (
`uid` int(11) NOT NULL auto_increment,
`username` varchar(100) NOT NULL,
UNIQUE KEY `uid` (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
CREATE TABLE `startpost` (
`posttitle` varchar(300) NOT NULL,
`userid` int(50) NOT NULL,
`dat` datetime NOT NULL,
PRIMARY KEY (`postid`),
UNIQUE KEY `postid` (`postid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=29 ;