Forgotten in commit d59e32326a

This commit is contained in:
Olivier Berten 2013-03-22 11:26:31 +01:00
parent 7978680db0
commit bdcb6804db

View File

@ -1,8 +1,8 @@
<?php
function chant_from_id($c) {
global $db,$mysqli;
$sql1 = 'SELECT `office-part`,incipit,gabc,version FROM '.$db['chants'].' WHERE id = '.$c;
global $mysqli;
$sql1 = 'SELECT `office-part`,incipit,gabc,version FROM '.db('chants').' WHERE id = '.$c;
$req1 = $mysqli->query($sql1) or die('Erreur SQL !<br />'.$sql1.'<br />'.$mysqli->error);
$chants = array();
$ch = $req1->fetch_assoc();