Atualizar Input Text Dinâmico
Bom Dia pessoal, estou tendo uma dificuldade em atualizar um input text no meu formulário.
O erro que acontece, quando clico no botao salvar(enviar) ele da de nome do campo.. todos eles levam o mesmo nome.
Segue o codigo
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th scope="col">Posição*</th>
<th scope="col">Título</th>
<th scope="col">Status</th>
</tr>
<form name="up_ord" action="Sql_UpOrd.asp" method="post">
<%
sqlNoticia = "SELECT * FROM tb_noticia"
set rsNoticia = dbconn.execute(sqlNoticia)
Do while not rsNoticia.eof
%>
<tr>
<td><input name="ordem" type="text" value="<%=rsNoticia("ordem")%>" style=" width:15px; border:none" /></td>
<td><input name="titulo" type="hidden" value="<%=rsNoticia("titulo")%>" /><input name="id_noticia" type="hidden" value="<%=rsNoticia("id_noticia")%>" /><%=rsNoticia("titulo")%></td>
<td><%=rsNoticia("estado")%></td>
</tr>
<%
rsNoticia.movenext
loop
rsNoticia.Close
%>
<tr>
<td colspan="3" style="padding:5px; border:0px"><span style="margin-right:5px; color: #7C7C7C">*Para mudar o posicionamento, altere a numeração e clique em salvar</span><input type="submit" value="salvar" /></td>
</tr>
</form>
</table>
Olha o erro que dá
Tipo de erro:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[MySQL][ODBC 5.1 Driver][mysqld-5.1.38-community]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 '2, 3, , , , 7 WHERE titulo = 'Hoje fiz duas paginas, a, âçã, a, noticia, q, w' at line 1
/intranet/Sql_UpOrd.asp, line 10
Discussão (5)
Carregando comentários...