MyAnimeList PHP Updater v1.0 - Generic Updater Script by Injabie3

Usage: Use MalUpdater to send updates to this page.

Status (Main): "; echo "Back to main page"; } else { echo mysql_error(); } } elseif ($code != $usercode ) { echo "Error: Incorrect code. Please check, and try again."; } elseif ($user == "") { echo "Error: Please send data using MalUpdater!"; } elseif ($name == "") { echo "OK: Not playing anything, so no new information. Not updating database."; } elseif ($name == $info_mal['name'] & $ep == $info_mal['ep']) { echo "OK: Same information as last update. Not updating database."; } else { $sql="INSERT INTO $tbl_name (`ID` ,`timestamp` ,`user` ,`name` ,`ep` ,`eptotal` ,`picurl`) VALUES (NULL ,CURRENT_TIMESTAMP ,'$user', '$name', '$ep', '$eptotal', '$picurl');"; $result=mysql_query($sql); // if successfully insert data into database, displays message "Successful". if($result) { echo "OK: Update posted successfully"; echo "
"; echo "Back to main page"; } else { echo mysql_error(); } } } // close connection mysql_close(); ?>