fullyloaded Posted May 16, 2009 Share Posted May 16, 2009 hi im having a little problem with my code i have all this code into one php file ths code will work if i take out member-statusmessage or member-reminder code but if i keep both in my php file only the member-reminder will work any idea why? or how to fix it where both will work? thanks... $next_function='member-statusmessage'; $dbu->query("select * from member where member_id='".$glob['member_id']."'"); $dbu->move_next(); $ft->assign(array( "STATUSMESSAGE" => $dbu->gf('statusmessage'), 'MIN_STATUSMESSAGE' => MIN_STATUSMESSAGE, 'MAX_STATUSMESSAGE' => MAX_STATUSMESSAGE, ) ); $next_function='member-reminder'; $dbu->query("select * from member where member_id='".$glob['member_id']."'"); $dbu->move_next(); $ft->assign(array( "REMINDER" => $dbu->gf('reminder'), 'MIN_REMINDER' => MIN_REMINDER, 'MAX_REMINDER' => MAX_REMINDER, ) ); Link to comment https://forums.phpfreaks.com/topic/158338-code-conflicting-with-each-other/ Share on other sites More sharing options...
Ken2k7 Posted May 16, 2009 Share Posted May 16, 2009 You're overwriting the variable $next_function. You don't see it? And why would you run the same query and methods twice? Link to comment https://forums.phpfreaks.com/topic/158338-code-conflicting-with-each-other/#findComment-835073 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.