21-02-21, 08:41 AM
PHP كود :
cm = new SqlCommand("Select c.id,c.transno,p.pcode,p.pdesc,c.price,c.qty,c.disc,c.total from Tbl_Cart as c inner join Tbl_Product as p on c.pcode = p.pcode where status = 'Sold' and sdate between @sdate1 and @sdate2'", cn);
cm.Parameters.AddWithValue("@sdate1", dtp1.Value.Date);
cm.Parameters.AddWithValue("@sdate2", dtp2.Value.Date);
