$string3 = "SELECT id, name FROM table WHERE name LIKE '%$name%'";
$resultID = mysql_query($string3);
$numrow = mysql_num_rows($resultID);
while($row=mysql_fetch_array($resultID)){
//print_r($row);
$id = $row['id'];
$name = $row['name'];
I have this query where i am trying trying to return print multiple rows but it only displays the last row of data. if i print_r the array it returns and displays two arrays
array([0]=>1 [id]=>1 [1]=> timmy [name]=>timmy) array([0]=>2[id]=>2......billy..
i want to print 1 timmy and 1 billy but all i get is the last record 1 billy