Okej, puoi provare a fare qualcosa del genere:
$result = mysql_query("SELECT * FROM test_image WHERE image = ''") or die(mysql_error());
while($row = mysql_fetch_array($result))
{
echo 'Working with id '.$row['id'].' and name '.$row['name'].'<br />';
// DO YOUR CODE FOR THIS ROW IN YOUR TABLE
}