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; "; } Link to comment https://forums.phpfreaks.com/topic/80621-memberstype-in-an-sql-string-as-table-name/ Share on other sites More sharing options...
PHP_PhREEEk Posted December 7, 2007 Share Posted December 7, 2007 Different tables, or different fields?? PhREEEk Link to comment https://forums.phpfreaks.com/topic/80621-memberstype-in-an-sql-string-as-table-name/#findComment-408830 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.