py2tz Posted November 23, 2006 Report Share Posted November 23, 2006 Assim funciona, salva direito:nome = Request("nome")comentario = Request("coment")sql = "INSERT INTO radio (nome, texto) VALUES ('"& nome &"', '"& comentario &"') " Set Rs = Conn.Execute(SQL)Criei uma coluna no BD chamada image formato textoAssim da pau e não me mostra o erronome = Request("nome")comentario = Request("coment")image = Request("image")sql = "INSERT INTO radio (nome, texto, image) VALUES ('"& nome &"', '"& comentario &"', '"& image &"') " Set Rs = Conn.Execute(SQL) Quote Link to comment Share on other sites More sharing options...
0 .Andreia. Posted November 23, 2006 Report Share Posted November 23, 2006 sql = "INSERT INTO radio (nome, texto, image) VALUES ('"& nome &"', '"& comentario &"', '"& image &"') " response.write sql Set Rs = Conn.Execute(SQL) Quote Link to comment Share on other sites More sharing options...
0 Romero Dias Posted November 23, 2006 Report Share Posted November 23, 2006 para ver o erro da sua pagina if err <> o thenresponse.write err.descriptionend if Quote Link to comment Share on other sites More sharing options...
0 py2tz Posted November 24, 2006 Author Report Share Posted November 24, 2006 Olá Andreia e Romero,Não funcionou, nem o update e nem o mostrar o erro.está igual, abre uma pagina escritaHá um problema com a página que você está tentando acessar e ela não pode ser exibida.Inclusive já tem algo assim na pagina do FORM:<%erro = Request.QueryString("erro")if erro = "yes" thenElseIf erro = "no" Then %> Quote Link to comment Share on other sites More sharing options...
0 Marcos-rj Posted November 24, 2006 Report Share Posted November 24, 2006 Se você tirar o campo image volta a funcionar?o que você esta passando neste campo? Quote Link to comment Share on other sites More sharing options...
0 py2tz Posted November 24, 2006 Author Report Share Posted November 24, 2006 Sim volta,mesmo se colocar uma letra so no campo dá zebra,Somente acrescentei o image = Request("image") e alterei o sql para:sql = "INSERT INTO radio (nome, texto, image) VALUES ('"& nome &"', '"& comentario &"', '"& image &"') "Se eu tiro as duas alteracoes volta a funcionar e grava normal os dois campos. Quote Link to comment Share on other sites More sharing options...
0 Marcos-rj Posted November 24, 2006 Report Share Posted November 24, 2006 Renomei este campo para Imagem ou outra coisa.Eu acho que a Palavra IMAGE é uma palavra reservada no Access. Quote Link to comment Share on other sites More sharing options...
0 py2tz Posted November 24, 2006 Author Report Share Posted November 24, 2006 não deutroquei para LOGO assim:<% Response.expires = 0Response.Buffer=TrueSet conn = Server.CreateObject("ADODB.Connection")conn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("radio.mdb")nome = Request("nome")comentario = Request("coment")logo = Request("logo")sql = "INSERT INTO radio (nome, texto, logo) VALUES ('"& nome &"', '"& comentario &"', '"& logo &"') " Set Rs = Conn.Execute(SQL)Response.Redirect("rd_radio_nova.asp?erro=no")rs.closeset rs = nothingconn.closeset conn=nothing%> Quote Link to comment Share on other sites More sharing options...
0 Marcos-rj Posted November 24, 2006 Report Share Posted November 24, 2006 Me diz uma coisa, a opção "Mostrar Mensagens de erro http amigáveis" do internet explorer esta habilitada? Quote Link to comment Share on other sites More sharing options...
0 py2tz Posted November 24, 2006 Author Report Share Posted November 24, 2006 Sim esta Quote Link to comment Share on other sites More sharing options...
0 Marcos-rj Posted November 24, 2006 Report Share Posted November 24, 2006 então desabilita! senão nunca vai mostrar o erro!!! Quote Link to comment Share on other sites More sharing options...
0 py2tz Posted November 24, 2006 Author Report Share Posted November 24, 2006 Beleza,The INSERT INTO statement contains the following unknown field name: 'logo'. Make sure you have typed the name correctly, and try the operation again. /modo-radioescuta/rd_radio_novaSQL.asp, line 12 Linha 12Set Rs = Conn.Execute(SQL) Quote Link to comment Share on other sites More sharing options...
0 Marcos-rj Posted November 24, 2006 Report Share Posted November 24, 2006 você alterou no banco de dados o nome p/ logo? Quote Link to comment Share on other sites More sharing options...
0 py2tz Posted November 24, 2006 Author Report Share Posted November 24, 2006 não tinha, até ver o erro, ai alterei e continua o erro.Microsoft JET Database Engine error '80040e14' The INSERT INTO statement contains the following unknown field name: 'logo'. Make sure you have typed the name correctly, and try the operation again. /modo-radioescuta/rd_radio_novaSQL.asp, line 12FORMImagem:<input name="logo" type="text" class="Formulario" id="logo"> Quote Link to comment Share on other sites More sharing options...
0 py2tz Posted November 24, 2006 Author Report Share Posted November 24, 2006 Marcos, deu certo,1- Nome de image para logo2- Alterar no BD o campo3- Alterei o MDB erradoFuncionou.Obrigado Marcos e a todos que deram suas dicas.73FaustoRealmente o campo image não pode ser usado, não sei porque, mas não pode. Quote Link to comment Share on other sites More sharing options...
0 Marcos-rj Posted November 24, 2006 Report Share Posted November 24, 2006 Ele não pode poie é uma palavra reservada do access. Quote Link to comment Share on other sites More sharing options...
Question
py2tz
Assim funciona, salva direito:
Criei uma coluna no BD chamada image formato texto
Assim da pau e não me mostra o erro
Link to comment
Share on other sites
15 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.