posta tutti e due i file completi che vediamo dove punti e cosa estrarre.

cmq se ho capito quello che vuoi fare:

Codice PHP:
$sql "SELECT  * FROM cccam_channelinfo WHERE chan_provider =  '$value'"
$result mysql_query($sql);
$array mysql_fetch_array($result);
print 
"ID: ".$array['id']."
"
;
print 
"Provider: ".$array['chan_provider']."
"