hai rpovato a sostituire questa riga

$sql="SELECT * FROM nomi WHERE ID = '$ID_record'";


con questa:

$sql='SELECT * FROM nomi WHERE ID = $ID_record ";


??