I'm very new to php and I'm trying to create a string within a function, but every time I try to output only the text, the text just shows up as "Array". Can you point me to where I'm going wrong?
Many thanks
- Code: Select all
function delete_user($_POST, $delete) {
if(isset($delete)) {
$check = $_POST['check'];
$id = $_POST['id'];
$username = $this->query("SELECT username FROM ".DBTBLE." WHERE id = '$id'");
if ($check == "yes") {
return $username." was deleted.";
} } }


