Ver original$sql = mysql_query("SELECT nombreLocal, ultimoCobro FROM locales WHERE id = $id LIMIT 1", $link) or die(mysql_error());