function _query_select_one($query, $name) { if ( ($result = mysql_query($query)) == FALSE ) { on_bd_error($query); } else { $tab = mysql_fetch_array($result); return $tab[$name]; } }
function execute($query, $link) { if ( (mysql_query($query, $link)) == FALSE ) { on_bd_error($query); return false; } else { return true; } }