Since I am new to php I use to insert data into my database but I am getting error which I do not know how can be it resolved.
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in E:\xampp\htdocs\airomcc\reseller\paypal.php on line 286
In my code it is line inside if{
}
$cmq = mysqli_query($connection,"SELECT DATEDIFF(CURRENT_DATE(),cmstart_date) as 'dif', cmstatus FROM orders WHERE cmstatus = 1; ");
foreach ($cmq as $cmq_dekhao){
if($cmq_dekhao['dif'] >= 200)
{
mysqli_query($connection,"insert into comission(comission_name,comission_amount,order_id,reseller_id) values ('first time', '50', $cmq_dekhao['orderid'], '$cmq_dekhao['resellerid']');");
//mysqli_query($connection,"update orders set cmstatus = 0");
}
echo $cmq_dekhao['dif'].'<br>';
}