
heme aki con otra cuestion...
tengo en mi base de datos, un campo (recibo), que tiene limitante de 5 caracteres NUMERICOS, que seria 00000 a 99999... ahora bien
se puede consultar y al mismo tiempo actualizar ese registro????
este procedimiento he realizado para, reacondicionar ese campo
Código PHP:
RS.open sSQL, oCxn, 3, 3
if Err=0 then
response.Write "<table>"
while RS.EOF=false
if t=0 then
nuevo="00000"
else
if (t>0 and t<10) then
nuevo="0000"&t
else
if (t>9 and t<100) then
nuevo="000"&t
else
if (t>99 and t<1000) then
nuevo="00"&t
else
if (t>999 and t<10000) then
nuevo="0"&t
else
if (t>9999 and t<100000) then
nuevo=t
end if
end if
end if
end if
end if
end if
a=a+1
response.Write "<tr><td>"
t=int(RS("id_recibo").value)
response.Write "<td>"&a&"</td><td>Original("&t&") </td><td>- Modificado("&nuevo&")</td></tr>"
RS.movenext
response.Flush()
wend
response.Write "</table>"
end if
alguna sugerencia???
