brown2005 Posted December 7, 2007 Share Posted December 7, 2007 Hi, I was just wondering how to write the code below so that where $MembersType is in the sql string can select different tables. thanks function CountMembers($MembersType) { $CountMembers_sql = " SELECT COUNT(*) AS CountMembers_Number FROM $MembersType_members LIMIT 1; "; } Quote Link to comment Share on other sites More sharing options...
PHP_PhREEEk Posted December 7, 2007 Share Posted December 7, 2007 Different tables, or different fields?? PhREEEk Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.