MySQL Forums
Forum List  »  InnoDB

fetch data from two tables in mysql
Posted by: priya gogte
Date: April 28, 2008 02:17AM

Hi all,

I am using where clause in my select query and want to display that database with pagination, but it is not done correctly.Please help.

$SQL = " SELECT count(Interview_Id)AS Total
FROM Interview_Master
JOIN
interview_questions_details
USING (Interview_Id)
WHERE
(First_Name_Of_Interviewee='$names[0]'
AND Last_Name_Of_Interviewee='$names[1]' )
OR Client_Name='$_POST[cname]'
OR Date_Of_Interview='$_POST[cid]'
OR Type_ID='$_POST[toq]'
OR ((First_Name_Of_Interviewee='$names[0]') AND (Client_Name='$_POST[cname]')) " ;

Options: ReplyQuote


Subject
Views
Written By
Posted
fetch data from two tables in mysql
6166
April 28, 2008 02:17AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.