//si ma ligne est une information autre qu'une citation je rempli mon tableau avec null pour séparer
foreach(file($fichier)as$ligne){
foreach(file($fichierCitations)as$ligne){
if(!stristr($ligne,"—")){
$pre_citations[]=$ligne;
}
...
...
@@ -93,6 +62,8 @@ foreach(file($fichier) as $ligne){
}
}
fclose($handlerCitations);
$citationtableau=array();
$index=0;
...
...
@@ -108,17 +79,23 @@ foreach ($pre_citations as $courant){
else{
$index++;
}
}
/*------BDD-INSERTION-------------*/
$modeleBd=newModeleBd();
$modeleBd->remplirBd("J.-R. BLOCH","Cacaouettes et Bananes",NULL,"Quels mots impressionnants! Dakar : deux a, comme arabe, mais si différemment colorés
par les consonnes! Le k intercale son exotisme menaçant, l'r final gronde et se répercute.");
$this->requestPattern="select a.nom_auteur, c.contenu, o.nom_oeuvre, o.date from auteurs a, citations c, oeuvres o where a.id_auteur=o.id_auteur and o.id_oeuvre=c.id_oeuvre ";
$this->requestPattern="select a.nom_auteur, c.contenu, o.nom_oeuvre, o.date_oeuvre from auteurs a, citations c, oeuvres o where a.id_auteur=o.id_auteur and o.id_oeuvre=c.id_oeuvre ";