Location: PHPKode > projects > Akasha > akasha/favorite_add.php
<?

if ($akashaID == $ID) {
	include ("includes/global.inc"); 	// Global Variables
	include ("includes/functions.inc"); 	// Global Functions
	$user_id = findUserByHash($ID);

	$txttitle = trim($txttitle);
	if ($txttitle == "") {
		$txttitle = "---";
	}

	$query = "insert into tblFavorites values(NULL,$user_id,'$txturl','$txttitle','')";
	$result = mysql_db_query($dbname,$query);

	Header("Location: favorites.php?ID=$ID");
} else {
		Header("Location: main.php?error_code=1");
}

?>
Return current item: Akasha