prepare("INSERT INTO `licenses` (`GeneratedBy`, `License`, `OwnerID`, `UsedTime`, `Duration` , `Type`) VALUES (?, ?, 'notused', 'notused', '2629743', ?)"); $stmt->bind_param("sss", $username, $Licansak, $kinn); $stmt->execute(); echo "Generated License: " . $Licansak; } else { echo "Error args"; } } else { echo "Fuck u"; }