1<?php 2require_once $_SERVER['DOCUMENT_ROOT'] . "/emf/includes/searchcvs-dbaccess.php"; 3$connect = mysql_connect($dbhost, $dbuser, $dbpass); 4mysql_select_db($db ? $db : "modeling", $connect) or die(mysql_error()); 5 6function wmysql_query($sql) 7{ 8 #print $sql . "\n"; 9 $res = mysql_query($sql) or die("$sql\n" . mysql_error()); 10 return $res; 11} 12?> 13