ccrevcypsys Posted November 19, 2007 Share Posted November 19, 2007 I have a home page that is set up to where you can add and take away sections. The only problem i am not really sure how that i am going to display that information right now it looks like this <?php $indexPage=$db->select("SELECT * FROM ".$glob['dbprefix']."myHome h WHERE customer_id=".$ccUserData[0]['customer_id']." ORDER BY portal_id" ); for($i=0;$i<count($indexPage);$i++){ if($indexPage[$i]['portal_id']==1){ echo "#1 Success" } if($indexPage[$i]['portal_id']==2){ echo "#2 Success" } if($indexPage[$i]['portal_id']==3){ echo "#3 Success" } if($indexPage[$i]['portal_id']==4){ echo "#4 Success" } } ?> and the only one that comes up is #1 Success (but all of teh portal ids are turned on in the db...) Quote Link to comment Share on other sites More sharing options...
ccrevcypsys Posted November 19, 2007 Author Share Posted November 19, 2007 oh and one more thing.... some people may not have all of them active in the db. For ex Customer_1: portal1 = yes; portal2 = no; portal3 = yes; portal4 = yes; Customer_2: portal1 = no; portal2 = no; portal3 = yes; portal4 = no; 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.