My query string is
$chk_cookie="SELECT * FROM cookie_data_mst WHERE uniqid_client=5279f0addc835 AND cookie_data=3";
$chk_query=mysql_query($chk_cookie) or die(mysql_error());
this give the error unknown column. if I put ' in value
'5279f0addc835'
It gives check manual for syntax error.
If I remove first condition i.e uniqid_client=5279f0addc835 then it runs normally. If I do string like
$chk_cookie="SELECT * FROM cookie_data_mst WHERE uniqid_client=".5279f0addc835." AND cookie_data=3";
or
$chk_cookie="SELECT * FROM cookie_data_mst WHERE uniqid_client='".5279f0addc835."' AND cookie_data=3";
It gives the same check manual error.... Another thing if I run it on phpMyAdmin SQL it gives the desired result what should I do ...I am not able to get error... 5279f0addc835 value I have created by php uniqid() function.