Get Your First Incarnation Name – Results


Try again“;
exit;

}

$checkifindbqry = “select * from tbl_incarnationnames where actualname = ‘”.$_REQUEST[‘currentName’].”‘”;
$checkifindb = mysql_query($checkifindbqry)
or die(mysql_error());
$doesitexist = mysql_num_rows($checkifindb);

if ($doesitexist == 0) {

$PICKANAMEQRY = “SELECT * FROM lk_incarnationnames ORDER BY Rand() DESC LIMIT 1”;
$PICKANAME = mysql_query($PICKANAMEQRY)
or die(mysql_error());
$picknameresults = mysql_fetch_array($PICKANAME);
$nametolookup = $picknameresults[‘incarnationID’];
$insertnameqry = “insert into tbl_incarnationnames (actualname,incarnatedname) values (‘”.$_REQUEST[‘currentName’].”‘,”.$picknameresults[‘incarnationID’].”)”;
$insertname = mysql_query($insertnameqry)
or die(mysql_error());
}

else {
$lookupexistingname = mysql_fetch_array($checkifindb);
$nametolookup = $lookupexistingname[‘incarnatedname’];

}
$getthenameqry = “SELECT * FROM lk_incarnationnames where incarnationID = “.$nametolookup;
$getthename = mysql_query($getthenameqry)
or die(mysql_error());
$naneresults = mysql_fetch_array($getthename);
$nametoshow = $naneresults[‘incarnationName’];

?>

Your original incarnation name is:

Try a different name

Leave a Reply

Your email address will not be published. Required fields are marked *