View Single Post
  #13  
Old 10-07-2009, 11:53 AM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 45,773
Bloodrun
Send a message via Yahoo to Bloodrun
Default RE: Drop-down menu for myadopt.php

Alright this is how I would do it if I were you, it isn't anything Fancy but it get's the job done:


PHP Code:
<p>
    <
select name='owned_adoptables' id='owned_adoptables'>";
      
// We need to stop here and fetch their adoptables...

    
$query = "SELECT FROM ".$prefix."owned_adoptables WHERE owner='$loggedinname' and aid='$id'";
    
$result = mysql_query($query);
    
$num = mysql_numrows($result);

    //Loop out code
    
$i=0;
    while (
$i < $num) {

        
$aid=@mysql_result($result,$i,"aid");
        
$currentlevel=@mysql_result($result,$i,"currentlevel");
        
$name=@mysql_result($result,$i,"name");
    
    
$article_content = $article_content."<option value='".$aid."'>".$name." :: ".$currentlevel."</option>";    

    
$i++;
    }

$article_content = $article_content."</select>
</
p><br
If have any questions about just ask and I'll try my best to answer them.
Reply With Quote