I'm having a problem about getting the exact value of my integer in my database, because when i get it's value only the first digit of it's integer is displayed in php. For example the integer value in my database is "11" only "1" is displayed in my php. Here's my query.
$count=0;
$query="SELECT id from register";
$result = mysql_query($query);
('error in query:$query. ' .mysql_error());
if(mysql_num_rows($result)>0){
while($row=mysql_fetch_assoc($result)){
extract($row);
$id[$count]=$id;
$count++;
}
}
for($x=0; $x<$count; $x++){
echo"".$id[$count];
}