Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

guilhermezd

UPDATE não funciona no MySQL

Recommended Posts

erro apresentado:Microsoft OLE DB Provider for ODBC Drivers error '80040e14' [MySQL][ODBC 3.51 Driver][mysqld-5.0.21-community-nt]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 '' at line 1 /config/reportagens/process_reportagem.asp, line 35Set Conexao = Server.CreateObject("ADODB.Connection")Conexao.open"driver={MySQL ODBC 3.51 Driver};server=localhost;uid=carros;pwd=mysql;database=carros"linha 35Set Atualizar = Conexao.execute("UPDATE reportagem SET cod_canal='" & cod_canal & "',titulo='" & titulo & "',subtitulo='" & subtitulo & "',foto_principal='" & foto_principal & "',texto='" & texto & "',foto_2='" & foto_2 & "',texto_2='" & texto_2 & "',foto_3='" & foto_3 & "',texto_3='" & texto_3 & "',foto_4='" & foto_4 & "',texto_4='" & texto_4 & "',data='" & data & "',creditos_foto='" & creditos_foto & "',creditos_texto='" & creditos_texto & "',marca='" & marca & "',modelo='" & modelo & "',foto_pequena_index='" & foto_pequena_index & "',foto_pequena_canal='" & foto_pequena_canal & "',foto_destaque_canal='" & foto_destaque_canal & "' where id=" & cod &"")response.redirect("reportagens_ok.asp?acao=editar")

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.