This commit is contained in:
Daniel Muñoz Garcia
2021-05-27 09:18:41 +02:00
committed by GitHub
parent 90f233fca9
commit cb82c3eb15
5 changed files with 11 additions and 8 deletions

View File

@ -111,7 +111,8 @@ class formAddPromotion extends Form{
//if ( !copy("../img/tmp/{$nombre}", "/{$nombre}") ) {
// $result['img'] = 'Error al mover el archivo';
//}
$bd->createPromotion(null, $tittle,$description,$code,$active, $nombre);
$nombreBd = str_replace("_", " ", $nombre);
$bd->createPromotion(null, $tittle,$description,$code,$active, $nombreBd);
$_SESSION['message'] = "<div class='row'>
<div class='column side'></div>
<div class='column middle'>