Ignore:
Timestamp:
Feb 26, 2013, 8:50:37 PM (11 years ago)
Author:
flop25
Message:

-compatibility 2.5 (only)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/music_player/admin/admin.php

    r14095 r21048  
    4444           ///on vérife si ils n'existe pas déjà
    4545           $rep = pwg_query('SELECT COUNT(*) AS result FROM '.MP_PLAYLIST.' WHERE url IN (\''.$value.'\') ;');
    46        $res = mysql_fetch_array($rep);
     46       $res = pwg_db_fetch_array($rep);
    4747           if ($res['result']!=0)
    4848           {
     
    111111  /// v 1.2 on ne cree que pour les nouveaux
    112112  $rep = pwg_query('SELECT COUNT(*) AS result FROM '.MP_PLAYLIST.' WHERE url IN (\''.$value.'\') ;');
    113   $res = mysql_fetch_array($rep);
     113  $res = pwg_db_fetch_array($rep);
    114114  if ($res['result']!=0)
    115115  {
     
    148148  ////[ maj de la bdd
    149149  $result = pwg_query('SELECT id FROM '.MP_PLAYLIST.' WHERE url IN (\''.$value.'\') ;');
    150   $data = mysql_fetch_array($result);
     150  $data = pwg_db_fetch_array($result);
    151151  $query = '
    152152UPDATE '.MP_PLAYLIST.'
     
    241241
    242242    $result = pwg_query('SELECT id FROM '.MP_PLAYLIST.' WHERE url IN (\''.$_POST['url_'.$n.''].'\') ;');
    243     $data_pl = mysql_fetch_assoc($result);
     243    $data_pl = pwg_db_fetch_assoc($result);
    244244        $rang=1;
    245245
     
    283283         
    284284     $result = pwg_query('SELECT id FROM '.MP_PLAYLIST.' WHERE url=\''.$url.'\' ;');
    285      $data_pl = mysql_fetch_assoc($result);
     285     $data_pl = pwg_db_fetch_assoc($result);
    286286         
    287287     $filename="./plugins/music_player/music/externe/".$data_pl['id'].".php";
     
    312312$query = 'SELECT id, url, texte FROM '.MP_PLAYLIST.' WHERE type IN (\'local\') ORDER BY id ;';
    313313$result = pwg_query($query);
    314 while ($row = mysql_fetch_assoc($result)) {
     314while ($row = pwg_db_fetch_assoc($result)) {
    315315    array_push($playlist, $row);
    316316}
     
    333333$query = 'SELECT id, url, texte FROM '.MP_PLAYLIST.' WHERE type IN (\'externe\') ORDER BY id ;';
    334334$result = pwg_query($query);
    335 while ($row = mysql_fetch_assoc($result)) {
     335while ($row = pwg_db_fetch_assoc($result)) {
    336336    array_push($playlist, $row);
    337337}
     
    437437{
    438438        $rep = pwg_query('SELECT texte FROM '.MP_PLAYLIST.' WHERE id IN (\''.$conf_lecteur[7].'\') ;');
    439         $pl = mysql_fetch_array($rep);
     439        $pl = pwg_db_fetch_array($rep);
    440440        $txt=$pl['texte'];
    441441}
Note: See TracChangeset for help on using the changeset viewer.