![]() |
|
[C#.NET] ما هو الخطا هنا - نسخة قابلة للطباعة +- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb) +-- قسم : قسم لغة السي شارب C#.NET (http://vb4arb.com/vb/forumdisplay.php?fid=175) +--- قسم : قسم اسئلة C#.NET (http://vb4arb.com/vb/forumdisplay.php?fid=176) +--- الموضوع : [C#.NET] ما هو الخطا هنا (/showthread.php?tid=37846) |
ما هو الخطا هنا - عاصم النجار - 21-02-21 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 like 'Sold' and cast(sdate as date) between '" + dtp1.Value.ToShortDateString() + "' and '" + dtp2.Value.ToShortDateString() + "'", cn); رسالة الخطأ هي PHP كود : Conversion failed when converting date and/or time from character string. RE: ما هو الخطا هنا - Ronald - 21-02-21 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); RE: ما هو الخطا هنا - عاصم النجار - 22-02-21 (21-02-21, 08:41 AM)Ronald كتب : للاسف لايعمل هو كان الكود شغال اللى انا عملته ولكن العيب دا ظهر من تلقاء نفسه حتى في باقي الفورم اللى فيها تواريخ |