I have 2 queries going on in some code I have but it only seems to be running the first one.
[php]mysqli_query($link, “DELETE FROM bans WHERE name=’$name’”) or die (mysqli_error());
mysqli_query($link, “INSERT INTO unban (name, ticket) VALUES ([’$name’], [’$ticket’])”) or die (mysqli_error());
[/php]
Use the following one.
[php]mysqli_query($link, “INSERT INTO unban (name, ticket) VALUES (’{$name}’, ‘{$ticket}’)”);[/php]
Thanks that worked
You are welcome.