$cnt=0; while($dbRow=$dbQuery->fetch(PDO::FETCH_ASSOC)) { echo "".$dbRow["Name"].""."<img src=/".$dbRow['Pic']."' width='150' height='150' />"."".$dbRow["ID"]."<input type='submit' name='submit' value='Complete' >"; $cnt++; } } var_dump($cnt);
3 3 3 int(3) 3 3 3 int(3) 3 3 3 int(3) 1 int(1) 1 int(1) 2 2 int(2) int(0) 3 3 3 int(3) 1 int(1)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)