62 users online (1 members and 61 guests)  

Thread: php loop


  Results 1 to 1 of 1

Related

  1. Loop Linking?    Forum: HTML Forum
    Replies: 3
  1. #1
    bergy's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2002
    Posts
    1

    Please Help...

    I am giving up on this code. God, the first person to find out why it doesn't loop, or if it does loop, it mixes the arrays together.

    PHP Code:
    $explodetyperate explode(", "$items['spells']);
            while (list(
    $wtf,$value)=each($explodetyperate)){
                
    $ids .= "$value, ";

        
    $splitids explode(","$ids);
            while (list(
    $key,$val)=each($splitids)){
                
    $valuewtf ="$val";
                list(
    $newmagid,$newmagrate)=split(":"$valuewtf);
                    
    $newvalue="$newmagid ";
                    
    $learnrate "$newmagrate";
                
    $thatmagicid=str_replace(" ","' OR shop_magics.id='",$newvalue);
            
        
            
    $getname $DB_site->query("SELECT * FROM shop_magics WHERE id='$thatmagicid'");
                while (
    $thatmagicinfo $DB_site->fetch_array($getname)){

                
    $magicname ""$thatmagicinfo[name] . " x "$learnrate ", ";
            }
        }
        }
            
    $magicname substr($magicname0, (strlen($magicname) - 2)); 

    Please Help me...

    edit: added php tags to view problem easier - QD
    Last edited by QuietDean; 01-12-2003 at 09:51 AM.



Tags for this Thread