<?php
class sqlConnection{
public $mysqli;
public function __construct(){
$this->mysqli = new mysqli("private","private","private","private");
if($this->mysqli->connect_errno){
echo "MySQL Connection Is FUCKED!, Error:" . $this->mysqli->connect_error;
die("EOF");
}
}
}
class Transaction extends sqlConnection{
public function Add_Customer($cfn,$cln,$cmail){
//Prepare the statement and check if its all good or else MISSION ABORT!
if(!$p_stmt = $mysqli->prepare("INSERT INTO customers(customer_first_name,customer_last_name,customer_email) VALUES (?,?,?)")){
die("Oh boy oh boy oooooohhhhh boy, Uhm so yeh its like ye not working...");
}
//Bind the stuff to the prepared statement mysqli stage 2
if(!$p_stmt->bind_param("sss",$cfn,$cln,$cmail)){
die("Failed to glue the customer into the Database...");
}
//AIM AND FIRE!
if(!$p_stmt->execute()){
die("Super orbit Ion lasser not stronk enough to kill...");
}
}
}
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/L5rp4 on line 3
Process exited with code 255.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/L5rp4 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/L5rp4 on line 3
Process exited with code 255.