Hi after of the for, u can use it shoulds back the class of variable, by example "its is string" "its is int" etc for ($i=0;$i<$rows;$i++) echo $i.' '.$row['itemname']; echo gettype($i); Can be that you must define before the class of this variable, because, the system is thinking this is a string class data or hexa etc. grettings and sorry for my written english ;) -- Ricardo _______________________________________________ IT Architect website: http://www.pulsarinara.com