Ciao a tutti.![]()
Ho dei problemi ad aggiornare un paio di campi del database.![]()
![]()
[Essendo in fase di testing ci sono diverse cosine commentate..]
Ma non vedo nulla: nella pagina non ho errori, vedo correttamente l'html/pagina senza però le variabili:codice:sql_voto="SELECT * FROM notizie WHERE id=1612"'&id_news rs.Open sql_voto, conn,3,3 'If NOT rs.EOF Then ' If rs.fields("voto_ip")=Request.ServerVariables("REMOTE_ADDR") Then ' alert="Spiacente hai già votato" 'Else voto_db=rs.fields("voto") If voto_db="" Then voto_db=0 End If voto_votanti_db=rs.fields("voto_votanti") If voto_votanti="" Then voto_votanti=0 End If rs.fields("voto")=(voto_db+voto_news) rs.fields("voto_votanti")=(voto_votanti_db+1) 'rs.fields("voto_ip")=Request.ServerVariables("REMOTE_ADDR") Response.Write("Fatto!! Voto:" & (voto_db+voto_news)) rs.Update ' End If 'End If rs.Close
"Fatto!! Voto:"
Cosa c'è che non va? Io non capisco..
Grazie mille!!![]()
![]()




Rispondi quotando