flws...

Posted 23/11/2004, 18:59
Posted 23/11/2004, 19:04
Posted 23/11/2004, 19:05
Posted 23/11/2004, 19:16
sql = "SELECT * FROM cadastro WHERE cad_mes = ' " & month(date) & " ' "
Edição feita por: Tx.NET, 23/11/2004, 19:18.
Posted 23/11/2004, 20:06
<!--#include file="conexao.asp"-->
<form action="enviar.asp" method = "post">
<%
mmes = month(date)
Select Case mmes
case 1
mes = "Janeiro"
case 2
mes = "Fevereiro"
case 3
mes = "Março"
case 4
mes = "Abril"
case 5
mes = "Maio"
case 6
mes = "Junho"
case 7
mes = "Julho"
case 8
mes = "Agosto"
case 9
mes = "setembro"
case 10
mes = "Outubro"
case 11
mes = "Novembro"
case 12
mes = "Dezembro"
End Select
sql = "select * from aniversariantes WHERE mes = '" & mes & "'"
set rs = conexao.execute(sql)
if rs.eof then
response.write "Nenhum usuário faz aniversario este mes"
else
do while not rs.eof
response.write rs.fields("dia") & " - " & rs.fields("nome") & "<input name='destino' type='checkbox' id='destino' value='" & rs.fields("email") & "'><br>"
rs.movenext
loop
end if
%>
<br>
<input type = "submit" value = "Enviar e-mail para selecionados">
</form>
Posted 23/11/2004, 21:45
Posted 24/11/2004, 08:43
Posted 24/11/2004, 20:54
Posted 25/11/2004, 08:27
Posted 25/11/2004, 09:11
Posted 25/11/2004, 09:17
Edição feita por: Tx.NET, 25/11/2004, 09:18.
Posted 25/11/2004, 10:21
Posted 25/11/2004, 10:28
Posted 25/11/2004, 11:43
<!--#include file="conexao.asp"-->
<form action="enviar.asp" method = "post">
<%
mmes = month(date)
Select Case mmes
case 1
mes = "Janeiro"
case 2
mes = "Fevereiro"
case 3
mes = "Março"
case 4
mes = "Abril"
case 5
mes = "Maio"
case 6
mes = "Junho"
case 7
mes = "Julho"
case 8
mes = "Agosto"
case 9
mes = "setembro"
case 10
mes = "Outubro"
case 11
mes = "Novembro"
case 12
mes = "Dezembro"
End Select
sql = "select * from aniversariantes WHERE mes = '" & mes & "' order by nome,dia"
set rs = conexao.execute(sql)
if rs.eof then
response.write "Nenhum usuário faz aniversario este mes"
else
do while not rs.eof
response.write rs.fields("dia") & " - " & rs.fields("nome") & "<input name='destino' type='checkbox' id='destino' value='" & rs.fields("email") & "'><br>"
rs.movenext
loop
end if
%>
<br>
<input type = "submit" value = "Enviar e-mail para selecionados">
</form>
Edição feita por: Fernando_Ramos, 25/11/2004, 11:43.
Posted 25/11/2004, 12:27
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)