moe000_001 moe000_002 moe000_*** (***Àº À̾îÁö´Â ¼ýÀÚ)
ÀÌ·± ½ÄÀ¸·Î ºñ½ÁÇÑ À̸§ÀÇ µ¥ÀÌÅͺ£À̽º°¡ ÀÖ°í ±×¾È¿¡ ci_substance ¶ó´Â °°Àº À̸§ÀÇ Å×À̺íÀÌ °¢°¢ Á¸ÀçÇÕ´Ï´Ù.
°¢°¢ÀÇ µ¥ÀÌÅͺ£À̽ºÀÇ ci_substance¶ó´Â Å×À̺í¾È¿¡ ƯÁ¤ Çʵ尪À» °¡Á®¿À·Á°í Çϴµ¥¿ä
$cs_db = 'cms_user_'.$member_id;
$sql = "SELECT COUNT(is_num) as num_value FROM ".$cs_db.".ci_substance " ;
ÀÌ·±½ÄÀ¸·Î º¯¼ö $member_id¸¦ ¹Þ¾Æ¿Í¼ ".$cs_db.".ci_substance¶ó°í Å×À̺í¸íÀÌ ¹Ù²î°Ô²û Äõ¸®¸¦ ®½À´Ï´Ù.
($member_id´Â foreach¹®¿¡¼ ¹è¿·Î ¹Þ¾Æ¿À±¸¿ä)
±×·±µ¥ ȸé»ó¿¡ ¶ß´Â db¿¡·¯¸¦ º¸´Ï $cs_db°ªÀ» ¸ø°¡Á®¿À³×¿ä¤Ð
Table 'cms_user_.ci_substance' doesn't exist //¹ß»ýÇÑ db¿¡·¯ÀÔ´Ï´Ù¤Ð
SELECT COUNT(is_num) as num_value FROM cms_user_.ci_substance //db¸íÀÌ °ø¹éÀÌ¿¡¿ä¤Ð¤Ð
±×·¡¼ $cs_db°ªÀÌ ¾øÀ» ¶§´Â °Ç³Ê¶Ù¶ó°í continueµµ ½áº¸°í if·Î Á¶°ÇÀ» Á൵ ¿©ÀüÈ÷ °°Àº ¿¡·¯°¡ ¹ß»ýÇÕ´Ï´Ù.
µµ´ëü ¿Ö db¸íÀÌ ¾Èµé¾î¿À´Â °É±î¿ä? ¤Ð °í¼ö´Ôµé µµ¿ÍÁÖ¼¼¿ä~¤Ì¤Ð | |
|
Å×À̺í¸í¿¡ ¿ÀŸ ³°Å ¾Æ´Ò±î¿ä?
cms_user_.ci_substance