Olive Branch MS Chamber of Commerce (circa Oct 1999)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
<?php // initialize our db variables
$domain = "olivebranchms.com"; $host = "localhost"; $user = "admin"; $passwd = "Dr8886UN"; $dbname = "olivebranchms";
// define our generic db calls for use with mysql
function connect($host, $dbname) { global $user, $passwd; $link = mysql_connect($host,$user,$passwd); if(mysql_select_db($dbname,$link)) { return($link); } }
function query($link, $query) { $result = mysql_query($query, $link); return($result); }
function numrows($result) { $count = mysql_num_rows($result); return($count); }
function fetch_object($result, $row) { $data = mysql_fetch_object($result); return($data); }
function free_result($result) { mysql_free_result($result); }
function close($link) { mysql_close($link); }
function error($link) { return(mysql_error()); }
?>
|