website logo
Auteur
avatar
nicolas2

Forum » » Version future » » newsletter bug admin


Posté : 29 mars 2020 à 18:31 icone du post

rencontre ce bug sous mysql 8.0.18



Function Add_Header_Footer_Submit($ibid, $xtext, $xhtml) {
   global $NPDS_Prefix;
   if ($ibid=="HED")
      sql_query("INSERT INTO ".$NPDS_Prefix."lnl_head_foot VALUES ('', 'HED','$xhtml', '$xtext', 'OK')");
   else
      sql_query("INSERT INTO ".$NPDS_Prefix."lnl_head_foot VALUES ('', 'FOT', '$xhtml', '$xtext', 'OK')");
}


a remplacer pour moi par


Function Add_Header_Footer_Submit($ibid, $xtext, $xhtml) {
   global $NPDS_Prefix;
   if ($ibid=="HED")
      sql_query("INSERT INTO ".$NPDS_Prefix."lnl_head_foot VALUES (NULL, 'HED','$xhtml', '$xtext', 'OK')");
   else
      sql_query("INSERT INTO ".$NPDS_Prefix."lnl_head_foot VALUES (NULL, 'FOT', '$xhtml', '$xtext', 'OK')");
}



et


Function Add_Body_Submit($Ytext, $Yhtml) {
   global $NPDS_Prefix;
   sql_query("INSERT INTO ".$NPDS_Prefix."lnl_body VALUES ('', '$Yhtml', '$Ytext', 'OK')");
}



a remplacer par


Function Add_Body_Submit($Ytext, $Yhtml) {
   global $NPDS_Prefix;
   sql_query("INSERT INTO ".$NPDS_Prefix."lnl_body VALUES (NULL, '$Yhtml', '$Ytext', 'OK')");
}



sinon pas d'enregistrement des données dans la table

idem sur la case send pour


sql_query("INSERT INTO ".$NPDS_Prefix."lnl_send VALUES ('', '$Xheader', '$Xbody', '$Xfooter', '$number_send', '$Xtype', '$timeX', 'OK')");



par


sql_query("INSERT INTO ".$NPDS_Prefix."lnl_send VALUES (NULL, '$Xheader', '$Xbody', '$Xfooter', '$number_send', '$Xtype', '$timeX', 'OK')");


Message édité par : nicolas2 / 29-03-2020 19:10


Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=26711&forum=4