=eval(" ?>" . $Display->load_template("cphead", true) . " ")?>
if (!$_POST['submit1']) { ?>
Anime Crave Lists
welcome to the animecrave lists, here you can add anime to your already seen, or are curretnly watching.
Anime Series:
Select the anime series you would like to add to your list. This is a list of anime series that animecrave.com offers. Tip: Use the [ctrl] key on your keyboard to select multiple series. simply leave it pressed as you pick your different anime series.
echo "
"; $anime_dropbox = "SELECT id, title FROM `ac_anime` WHERE `type` = '1' ORDER BY title ASC"; $result_list = $Db->query($anime_dropbox); while ($data = mysql_fetch_array($result_list)) { echo "
{$data[title]}
\n"; } echo "
"; ?>
Anime Movies
Select the anime movies you would like to add to your list. Tip: Use the [ctrl] key on your keyboard to select multiple series. simply leave it pressed as you pick your different anime series.
echo "
"; $anime_dropbox = "SELECT id, title FROM `ac_anime` WHERE `type` = '3' ORDER BY title ASC"; $result_list = $Db->query($anime_dropbox); while ($data = mysql_fetch_array($result_list)) { echo "
{$data[title]}
\n"; } echo "
"; ?>
Original Video Anime [OVA]
Select the original video you would like to add to your list. Tip: Use the [ctrl] key on your keyboard to select multiple series. simply leave it pressed as you pick your different anime series.
echo "
"; $anime_dropbox = "SELECT id, title FROM `ac_anime` WHERE `type` = '2' ORDER BY title ASC"; $result_list = $Db->query($anime_dropbox); while ($data = mysql_fetch_array($result_list)) { echo "
{$data[title]}
\n"; } echo "
"; ?>
Live Action
Select the real life or live action movies you would like to add to your list. Tip: Use the [ctrl] key on your keyboard to select multiple series. simply leave it pressed as you pick your different anime series.
echo "
"; $anime_dropbox = "SELECT id, title FROM `ac_anime` WHERE `type` = '4' ORDER BY title ASC"; $result_list = $Db->query($anime_dropbox); while ($data = mysql_fetch_array($result_list)) { echo "
{$data[title]}
\n"; } echo "
"; ?>
} else { function quote_smart($value) { //three // Stripslashes if (get_magic_quotes_gpc()) { $value = stripslashes($value); } // Quote if not a number or a numeric string if (!is_numeric($value)) { $value = mysql_real_escape_string($value); } return $value; } $anime_names = quote_smart($_POST['anime_names']); print_r($anime_names); foreach($anime_names as $anime_id) { $check_rating = "SELECT rating FROM `user_rating` WHERE user_id='{$User->Id}' AND page_id='{$anime_id}' LIMIT 1"; $rating_result = $Db->query($check_rating); if(mysql_num_rows($rating_result) > 0) { $num = mysql_fetch_object($rating_result); $rating=$num->rating; } else { $rating=0; } $add_items = "INSERT INTO user_list(db_id, user_id, list_id, rating, date) VALUES('{$anime_id}', '{$User->Id}', '4', '{$rating}', '" .time(). "')"; $result = $Db->query($add_items) or die ("Error in query: {$add_items}" . mysql_error()); } } ?>