This commit is contained in:
Olivier Berten 2013-03-24 15:29:43 +01:00
parent 02a9e3b783
commit ff1132f565
2 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@ if(!$logged_in) {
$mysqli->query($sql) or die('Erreur SQL !<br />'.$sql.'<br />'.$mysqli->error);
$id = $mysqli->insert_id;
foreach(array('version','office-part','mode','mode_var','commentary','initial','transcriber','gabc','gabc_verses','tex_verses') as $k) {
if($mypost[$k] > '') {
if($mypost[$k] > '' && $mypost[$k] != "(c4)") {
$sql = 'UPDATE '.db('chants').' SET `'.$k.'` = "'.$mysqli->real_escape_string($mypost[$k]).'" WHERE `id` = '.$id;
$mysqli->query($sql) or die('Erreur SQL !<br />'.$sql.'<br />'.$mysqli->error);
}

View File

@ -1,7 +1,7 @@
<?php
include('include/db.php');
$title = 'TODO';
$title = 'Missing scores';
include('include/header.php');
echo "<h2>$title</h2>\n";