mokhtasatxyz
شنبه 30 مرداد 1395, 12:41 عصر
سلام دوستان
یه سلکت در mysql و php نوشتم ولی پیغام خطا میده:
select * from shops where id in (SELECT id_parent FROM products WHERE sub like '%$a%' OR details like '%$a%' )
این هم پیغام خطا و قتی a برابر کلمه شیر باشه
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'شیر'%' OR details like '%'شیر'%')' at line 1
یه سلکت در mysql و php نوشتم ولی پیغام خطا میده:
select * from shops where id in (SELECT id_parent FROM products WHERE sub like '%$a%' OR details like '%$a%' )
این هم پیغام خطا و قتی a برابر کلمه شیر باشه
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'شیر'%' OR details like '%'شیر'%')' at line 1