Ver Mensaje Individual
  #8 (permalink)  
Antiguo 06/09/2002, 16:40
isoka
 
Fecha de Ingreso: abril-2002
Mensajes: 25
Antigüedad: 23 años
Puntos: 0
Re: Este If!!! no me sale

Hola Iguantes, trate de implementar lo que me dijiste, pero tampoco, como ya dije no me pone error, solo que no me imprime el mensaje sii el campo esta vacioooooo
Ey forastero ahi les paso el code, con la consulta y todo completo:
<%
dim cat
categ = Request.Querystring("catid")
Set con = Server.CreateObject("ADODB.Connection")
Con.Open("Provider=Microsoft.Jet.OLEDB.4.0;Da ta Source=" & _
Server.MapPath("db.mdb"))
sql = "SELECT * FROM tabla Where catid =" & cat & " order by fecha desc"
sqla = "SELECT * FROM categorias Where catid =" & cat
set result = Con.Execute(sql)
set rsa = Con.Execute(sqla)
%>
DESPUES DESPLIEGO EL NOMBRE DE LA CATEGORIA
<%=rsa("catnombre")%>
Y LUEGO HAGO UN WHILE PAR DESPLEGAR EL CONTENIDO DE LA TABLA AUDIOS QUE TENGAN EL CATID DEL REQUEST:
<% While Not Result.EOF%>
<tr>
<td width="48%" bgcolor="#EEEEEE" height="14">
<p align="left"><b><font face="Tahoma" size="2"><%=result("nombre&qu ot;)%></b><font size="1"> (Fecha: <% if result("fecha")="" or result("fecha")="undefided" then %>no especificada<%else%><b> <%=result("fecha")%></b><%end if%>) </font></td>
<td width="8%" bgcolor="#EEEEEE" height="14">
<p align="center"><b><font face="Tahoma" size="2"><a href="download.asp?id=<%=result("id&q uot;)%>">BAJAR</A></font></b></td>
<%
Result.MoveNext
Wend
Result.Close
Con.Close
%>
BUENO ESE ES EL CODIGO, ME DESPLIEGA TODO PERFECTO, PERO EN LA PARTE DONDE LA FECHA ESTA VACIA SIGO TENIENDO PROBLEMAS.
AYUDDAAAAA
GRACIAS A TODOS
SUERTE Y GRACIAS DE NUEVO