"; for ($j=0;$j<$n;$j++){ $oj=strtolower($o[$j]); $sstl=strtolower($sst); $cleanj=ereg_replace("[[:punct:]]","",$oj); $W = preg_split("/[\s]+/",$cleanj); //split this description into words //$W=explode(" ",$o[$j]); for ($k=0;$k4) $rows=2; else {$rows=1;} if (count($Find)<8) $toprint=count($Find); } for ($j=0;$j<$rows;$j++){ echo "\n"; for ($i=0;$i<$cols;$i++){ if (isset($sst)) { // $rq=rand(0,count($Find)-1); $r=$Find[$j*$rows+$i]; // print $r."
"; } else $r=rand(0,$n-1); $rdata=explode(":",$o[$r]); if ($j*$cols+$i<$toprint) { print ""; } } echo ""; } ?>

"; print $rdata[3]."
"; $F=$rdata[0].$rdata[2]; print "\n
\n"; print ""; print "\n
\n"; print "
\n"; print $rdata[2]."
".$r."