ok I have a bit of code that pulls members thumbnails from the database.
but the original code had alot more information being pulled ... All I need is the filename_1 pulled with the gender and the id
$search_query = "SELECT p.id, p.gender, p.name, p.general_info, m.age, f.filename_1 FROM (dt_profile p, dt_photos f, dt_members m, dt_privacy pr) WHERE (p.status='1' AND (pr.featured_yn IS NULL OR pr.featured_yn='') AND pr.member_id=m.id AND p.member_id=m.id AND f.member_id=m.id AND f.filename_1<>'' AND p.gender='$genders[name]') ";
//$search_query = "SELECT p.id, p.gender, f.filename_1 FROM (dt_profile p, dt_photos f) WHERE (p.status='1' AND f.filename_1<>'' AND p.gender='$genders[name]') ";
the second part that is commented out is what I tried to do to cut back the strain on the server but when I run the line that is commented out it seems to be stuck and I get no results.
is there a problem with the syntax in the second part that I have commented out in this code?
thanks for any help
Paul