at line 17 I've this line of code
$sq="insert into batch_content(bid,sid,joining_date) values('1','$_SESSION["id"]','$date');";
I can't figure what am I doing wrong?
at line 17 I've this line of code
$sq="insert into batch_content(bid,sid,joining_date) values('1','$_SESSION["id"]','$date');";
I can't figure what am I doing wrong?
Wrong double quote sequence
$sq="insert into batch_content(bid,sid,joining_date)
values('1','" . $_SESSION["id"] ."','$date');";
but remeber that you are risk of sqlinject using php var in sql You should use binding_param .. so take a look at the sql driver you are using for this