I already figured it out...
while($i_string = mysql_fetch_array($userdet)){
$items = $i_string["items"];
}
$num = "0";
$item = explode(">", $items);
foreach($item as $printItem){
$itemdet = mysql_query("SELECT * FROM items WHERE id='$printItem'", $link_id);
while($i_string = mysql_fetch_array($itemdet)){
$i_id = $i_string["id"];
$i_name = $i_string["name"];
$num++;
//then print the item
echo"$i_name" //or whatever
and then just check to see when $num reaches a certaain number, and end the script...