$sql="select *, (select Faculty from userinfo where Faculty=$college) as category from award where HonoringYear=$year";
$rs=mysql_query($sql);
return $rs;
Nirmeen Ased
-3
Light Poster
Recommended Answers
Jump to PostReplace line 2 with:
$rs = mysql_query($sql) or die(mysql_error());
It could be a problem with the sub-select, but hard to diagnose without any sample data.
All 3 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
TonyG_cyprus
36
Newbie Poster
Webville312
14
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.