Location: PHPKode > projects > Easysite > easysite/include/database_specific_config/connexion_odbc.inc
<?

// this function connects to the mysql database

function connection($name, $user, $passwd, $host)
{
   return (odbc_connect($host, $user, $passwd));
}

// this fonction queries mysql with the given sql query

function requette($database,$lh,$sql)
{
 #  echo $sql;
   return (odbc_exec($lh,$sql));
}

// this fonction fetch the result given by mysql after a properly made query

function recuperer($resultat)
{
   return (odbc_fetch_row($resultat));
}

function terminer_requette($resultat)
{
   odbc_free_result($resultat);
}


//used to deconnect from mysql

function deconnection($link)
{
  odbc_close($link);
}

?>	
Return current item: Easysite