Jump to content

Error within array (double arrow)


R0xxy

Recommended Posts

Hi I working on a register page with prepared statements but i'm having an issue detective why I am receiving this error, could anyone suggest solutions I'm fairly new to this code

 

Parse error: syntax error, unexpected T_DOUBLE_ARROW

 

$stmt = $db->prepare("SELECT email FROM login WHERE email=:email1 LIMIT 1");

$arr = $array(
'email'=>$email);
ArrayBinder($stmt, $arr);
try{
$stmt->execute();
}
catch(PDOException $e){
echo errorHandle($e);
}
while($row = $stmt->fetch(PDO::Fetch_ASSOC)){
print_r($row);
}
Link to comment
https://forums.phpfreaks.com/topic/288309-error-within-array-double-arrow/
Share on other sites

What does ArrayBinder() look like? Everything looks ok (please use the code tags in the future - they make your code much easier to read) at first glance. Usually the error message will give you a line number and file name. That'll help you pin down where the actual problem is happening.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.