Buonasera a tutti, sto cercando di moltiplicare uno script tante volte quante stabilite da un ciclo perchè devo cambiare tutte le volte l' id a cui si riferisce.

Purtroppo non riesco, sbaglierò sicuramente la sintassi...di seguito il codice, dove sbaglio??

Codice PHP:
<?php
    
require('connessionedb.php');
    
$query "SELECT count(id_video) as id FROM video";
        
$result mysql_query($query) or die (mysql_error());
        
$row mysql_fetch_array($result);
                
$id=$row['id'];
    for(
$i=0;$i<$id;$i++){
    echo
"<script>
    
$f(\"[b]player$i[/b]\", \"http://www.****.com/script/flowplayer-3.0.7.swf\", { 
    // this will enable pseudostreaming support  
    plugins: {  
        pseudo: { url: 'http://www.****.com/script/flowplayer.pseudostreaming-3.1.1.swf' },
        controls:null 
    }, 
    // clip properties  
    clip: { 
    // these two settings will make the first frame visible 
        autoPlay: false, 
        autoBuffering: true, 
    // locate a good looking first frame with the start parameter 
        start: 62, 
    // make this clip use pseudostreaming plugin with provider property 
        provider: 'pseudo'  
    }, play:null
});
</script>"
;
}
?>
Grazie per l' attenzione