prova con:
codice:
$s = '<td bgcolor="FFFFFF" align="center" valign="top" width="25%">
';
preg_match( '/(.*)&id=([\d]{1,})" >[img](.*)[/img]<\/a>
/m', $s, $ris );

$id = $ris[2];
$img = $ris[3];