peyman13618
چهارشنبه 19 فروردین 1388, 01:43 صبح
من با
asp.net
دارم یه سایت درست می کنم تو یه مرحله ورود اطلاعات به پایگاه داده دارم که خطای زیر رو میده
Missing semicolon (;) at end of SQL statement.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
کد من هم اینجوریه
حالا اگه بتوننین
بفرمائین خطا از کجای این صفحه هست ممنئن و چجوری شرط بزارم که اطلاعات تو رکوردی که کد رهگیریش مثلا6666666 هستش وارد بشه نه جای دیگه. یعنی ترکیبش رو بفرمائین
insert & where ????
conn.Open()
comm.CommandText = " INSERT INTO [nevisandeh] (`word`) VALUES ( '<a href=upload\" & wordupload.FileName & " >word</a>' ) where ([track_code] = & traking & ) ;"
comm.Connection = conn
comm.ExecuteNonQuery()
asp.net
دارم یه سایت درست می کنم تو یه مرحله ورود اطلاعات به پایگاه داده دارم که خطای زیر رو میده
Missing semicolon (;) at end of SQL statement.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
کد من هم اینجوریه
حالا اگه بتوننین
بفرمائین خطا از کجای این صفحه هست ممنئن و چجوری شرط بزارم که اطلاعات تو رکوردی که کد رهگیریش مثلا6666666 هستش وارد بشه نه جای دیگه. یعنی ترکیبش رو بفرمائین
insert & where ????
conn.Open()
comm.CommandText = " INSERT INTO [nevisandeh] (`word`) VALUES ( '<a href=upload\" & wordupload.FileName & " >word</a>' ) where ([track_code] = & traking & ) ;"
comm.Connection = conn
comm.ExecuteNonQuery()