Ok, I have a database with 2 tables linked on ID. I run my query and it only returns data sometimes, depending on what ID I ask for. All the records have data in them, so I can't figure why I only get a return sometimes. Here is my statement. Can anyone shed some light?
Thanks.
$result = @mysql_query("SELECT ctitle, DATE_FORMAT(cDate, '%M %d, %Y') as ctextdate , ctime, course_intro.completion, course_intro.backcolor, course_intro.border_color,course_intro.outline, course.cid, course_intro.introduction, clocation FROM course
LEFT JOIN course_intro on course_intro.cid=course.cid WHERE course.cid='".$cid."'
AND clocale LIKE '".$locale."'AND CURDATE() < cdate ORDER BY cdate"
Thanks.
$result = @mysql_query("SELECT ctitle, DATE_FORMAT(cDate, '%M %d, %Y') as ctextdate , ctime, course_intro.completion, course_intro.backcolor, course_intro.border_color,course_intro.outline, course.cid, course_intro.introduction, clocation FROM course
LEFT JOIN course_intro on course_intro.cid=course.cid WHERE course.cid='".$cid."'
AND clocale LIKE '".$locale."'AND CURDATE() < cdate ORDER BY cdate"