I have a bit of code that no longer works, it worked fine before was pushed to the new php I believe 7. This is the part of the code:
if($_POST[submit3]=="Spend WP" && ($_POST[name]<>NULL) && $_POST[action] <>NULL){
$query3 = "SELECT * FROM game_data WHERE (log_name='$_POST[name]')";
$result3 = mysqli_query($query3) or die ("Couldn't get character data.<br>".mysqli_error()."<br>");
$data = mysqli_fetch_array($connection, $result3);
I can verify that that all three if conditions are met, and can get verification that it has valid answer for $_POST[name]
from the form, but it always errors out that it couldn't get the character data.