Jump to content

Unexpected character in input: '\'


forumnz

Recommended Posts

This:

<?php
$cuisines = "AND (c1 LIKE '%$cuis%' OR c2 LIKE '%$cuis%' OR c3 LIKE '%$cuis%' OR c4 LIKE '%$cuis%' OR c5 LIKE '%$cuis%')";
?>

 

Gives this error:

Warning: Unexpected character in input: '\' (ASCII=91) state=1 in /usr/local/www/vhosts/site/httpdocs/Browse/index.php on line 419

 

What do I need to do?

Thanks,

Sam.

Link to comment
https://forums.phpfreaks.com/topic/89272-unexpected-character-in-input/
Share on other sites

<?php
if($cuis != '' && $cuis != '0')\
{ $cuisines = "AND (c1 LIKE '%$cuis%' OR c2 LIKE '%$cuis%' OR c3 LIKE '%$cuis%' OR c4 LIKE '%$cuis%' OR c5 LIKE '%$cuis%')";
}

$query = "SELECT count(*) FROM fflists WHERE $op='$trim' AND (keywords LIKE '%$key%' OR business_name LIKE '%$key%') $cuisines AND active='1'";
?>

 

Is that right?

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.