i am doing is that i take current date and one increment date to 1 day the format i used for date works when inserting directly into the mysql. but from php it is showing this error:
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 'issuedate='2019/11/18' returndate='2019/11/19' WHERE id='2'' at line 1
$date1=date('Y/m/d');
$date2=strftime("%Y/%m/%d", strtotime("$date1 +1 day"));
//$date2=strtotime();
//$date=date('y-m-d', strtotime('+1 day'strtotime($date1)));
echo "$date1";
echo "$date2";
echo "<tbody><tr style='background-color:#64626f; color:white;'><td>".$row['bookid']."</td><td>".$row['userid']."</td><td><form method='post'>".$date1."</td> <td>".$date2."</td> <td><input type='submit' value='CONFIRM ISSUE' class='' name='issuec' /></form></td></tr></tbody></table>";
echo "<br/>";
if(isset($_POST['issuec'])){
$sqli="UPDATE issue SET status='1' issuedate='$date1' returndate='$date2' WHERE id='$id'";
$result2=mysqli_query($con,$sqli)or die(mysqli_error($con));