Jump to content

cant get this to work


ccrevcypsys

Recommended Posts

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...)

Link to comment
https://forums.phpfreaks.com/topic/77974-cant-get-this-to-work/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.