$credit = checkcredit(); $stmt = $dbc->prepare(\"SELECT * FROM packages WHERE slots = :slots\"); $stmt->bindParam(\':username\', $_POST[\'slots\']); $stmt->fetch(); $price = $row[\'price\']; } $differenz = ($credit-$price)*-1; if ($price > $credit) $content .= \"Lei