<?php include 'config.php'; $allRows=mysql_query("SELET id FROM prodact"); $row = mysql_fetch_array($allRows) $leng2=mysql_num_rows($allRows); while($id<$leng) { echo $row[$id]; $id++; } ?>