<?
// this function connects to the mysql database
function connection($name, $user, $passwd, $host)
{
return (ifx_connect($name,$user,$passwd));
}
// this fonction queries mysql with the given sql query
function requette($database,$lh,$sql)
{
# echo $sql;
return (ifx_query($sql,$lh));
}
// this fonction fetch the result given by mysql after a properly made query
function recuperer($resultat)
{
return (ifx_fetch_row($resultat));
}
function terminer_requette($resultat)
{
ifx_free_result($resultat);
}
//used to deconnect from mysql
function deconnection($link)
{
ifx_close($link);
}
?>