code is insert page from a four page form:
[php]
<?php include("login.php"); ?> <?php session_start(); $firstname = $_SESSION['firstname']; $lastname = $_SESSION['lastname']; $email = $_POST['email']; $phone = $_SESSION['phone']; $eighteen_or_older = $_SESSION['eighteen_or_older']; $manager_contact = $_POST['manager_contact']; $greeted_promptly = $_SESSION['greeted_promptly']; $timely_completion = $_SESSION['timely_completion']; $satisfied = $_POST['satisfied']; $recommend = $_POST['recommend']; //Send to DB-------------------------------------- //MySQL Database Connect-------------------------- include 'login.php'; if ($stmt = $mysqli->prepare("INSERT service (`firstname`, `lastname`, `email`, `phone`, `greeted_promptly`, `timely_completion`, `satisfied`, `recommend`, `eighteen_or_older`, `manager_contact`) VALUES (?, ?, ?, ?,?, ?, ?,?, ?, ?)")) { $stmt->bind_param("sssissssss", '$firstname', '$lastname', '$email', '$phone', '$greeted_promptly', '$timely_completion', '$satisfied', '$recommend', '$eighteen_or_older', '$manager_contact'); $stmt->execute(); //echo $stmt->affected_rows.'Success: Inserted into Database'; $stmt->close(); } ?> [/php]error is
PHP Fatal error: Cannot pass parameter 2 by reference (error references the line near bottom beginning with statement bind param)
Thoughts? Thanks.