function error($text)
{
$no = mysql_errno();
$msg = mysql_error();
echo "[$text] ( $no : $msg )
\n";
exit;
}
function init ()
{
$user = "absolute";
$pass = "k4r1bu";
$server = "absolutemotions.ipowermysql.com";
$dbase = "absolute_motions";
$conn = mysql_connect($server,$user,$pass);
if(!$conn) {
$error("Connection attempt failed");
}
if(!mysql_select_db($dbase,$conn)) {
$error("Dbase Select failed");
}
$this->CONN = $conn;
return true;
}
?>
$url_array=explode("/",$PATH_INFO); //BREAK UP THE URL PATH USING '/' as delimiter
$catid=$url_array[1]; //Catid
$categoryfr2=$url_array[2]; //Category
$contid=$url_array[3]; //Contid
$continentfr2=$url_array[4]; //Continent
$categoryfr=htmlentities($categoryfr2);
$continentfr=htmlentities($continentfr2);
$categoryfr2=str_replace("_"," ",$categoryfr2);
$continentfr2=str_replace("_"," ",$continentfr2);
echo '
|
switch($catid) { case "ws": print(""); break; case "rc": print(""); break; case "ic": print(""); break; case "ts": print(""); break; case "mb": print(""); break; case "wt": print(""); break; case "wc": print(""); break; default: print(""); } ?> | |||||