X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fcron%2Frecherche.php;h=52eb2ebe3ddb228c8bd24179949b7558b2c8c510;hb=cdafa49e854542f19a2a37ad64a9964360982dea;hp=37fee8b8ca48088da55ef32c14fa6860c98186f7;hpb=0337d704b62718d7c77106c0e4c4e26fb02beacf;p=platal.git diff --git a/bin/cron/recherche.php b/bin/cron/recherche.php index 37fee8b..52eb2eb 100644 --- a/bin/cron/recherche.php +++ b/bin/cron/recherche.php @@ -1,7 +1,7 @@ -#!/usr/bin/php4 -q +#!/usr/bin/php5 -q xdb->iterRow('SELECT matricule,nom1,nom2,nom3,prenom1,prenom2,promo FROM recherche'); +$res = XDB::iterRow('SELECT matricule,nom1,nom2,nom3,prenom1,prenom2,promo FROM recherche'); while (list($matricule,$nom1,$nom2,$nom3,$prenom1,$prenom2,$promo) = $res->next()) { - $globals->xdb->execute( + XDB::execute( "INSERT INTO recherche_soundex (matricule,nom1_soundex,nom2_soundex,nom3_soundex,prenom1_soundex,prenom2_soundex,promo) VALUES ({?},{?},{?},{?},{?},{?},{?})", $matricule, soundex_fr($nom1), soundex_fr($nom2), soundex_fr($nom3), soundex_fr($prenom1), soundex_fr($prenom2), $promo); } +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>