php - Inserting placeholders and radio button in SQL table -
i have problem can't seem solve.
$query = 'insert members (username,password,email,active,owner_service) values ( )'; $stmt = $db->prepare($query); $stmt->bind_param( ); $stmt->execute(array( ':username' => $_post['username'], ':password' => $hashedpassword, ':email' => $_post['email'], ':active' => $activasion, '"$owner_service"' => $post_['owner_service'] )); 'username, password, email , active' placeholders 'owner_service' radio button , don't know how write in code if want insert table. use ' :xx ' placeholders , ' ? ' radio button? code
(:username, :password, :email, :active, ?) and in bind_param write
('$owner_service') ?
Comments
Post a Comment