X-Git-Url: http://git.euphorik.ch/?p=cl7.git;a=blobdiff_plain;f=php%2Fparticipants.php;fp=php%2Fparticipants.php;h=e71e59a459e15a8bea8f44e76dc92fba72374e12;hp=995752b930c294156c92bca5efe22ee57b8ac32a;hb=23bc2016d5fbd8f7daa9b7ba5c7fa862709ff7a7;hpb=75d6e5d29bfe332d68c617d26e3a8b1828a57893 diff --git a/php/participants.php b/php/participants.php index 995752b..e71e59a 100644 --- a/php/participants.php +++ b/php/participants.php @@ -13,11 +13,10 @@ function ON($condition) return $condition ? 'Oui' : 'Non'; } -#connection à la base de données -$lien_mysql = mysql_connect ($SQL_HOTE, $SQL_LOGIN, $SQL_PASS); -mysql_select_db ($NOM_BASE); +#connexion à la base de données +$conn_bd = pg_connect(sprintf("host=%s dbname=%s user=%s password=%s", $SQL_HOTE, $NOM_BASE, $SQL_LOGIN, $SQL_PASS)); -$requ = mysql_query("select * from participants order by pseudo"); +$requ = pg_query("select * from participants order by pseudo"); echo ' @@ -34,7 +33,7 @@ echo '; -while($participant = mysql_fetch_object($requ)) +while($participant = pg_fetch_object($requ)) { echo '', '',
',$participant->pseudo,'