|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Picture Perfect Upload ... HELP!
i have just uploaded a picture in access but it overlook my page when i tried to view it.
ive tried this code and this page surely corrupt it! i mean it covers the whole page with the picture i want when i use this code: Code:
''''''''''''''''''''''''''''''''''
''''''''''''''''''''''''''''''''''
<%
dim ID
id=Request.QueryString("ID")
set rs=conn.execute("Select * from files where ID=" & ID & "")
Response.ContentType=rs("Content Type")
Response.BinaryWrite(rs("File Data"))
%>
<html>
<table border="1" width="100%">
<tr>
<td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?
<td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?
<td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?
</tr>
<tr>[img]%22[/img]:( ">
<td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?
<td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?
<td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?
</tr>
</table>
</html>
''''''''''''''''''''''''''''''''''
''''''''''''''''''''''''''''''''''
thank you NOFRIENDS on replying to my thread! (I NEED THAT CHECKBOX HELP! and NUMBER OF RECORDS! NEED HELP) Last edited by Shadow Wizard : February 19th, 2005 at 02:40 PM. Reason: added code tags around code - please do it yourself next. |
|
#2
|
||||
|
||||
|
Hi,
use a seperate page, to show pics, then I can choose the size of the pic. Code:
<%
dim ID
strID=Request.QueryString("ID")
%>
<html>
<table border="1" width="100%">
<tr>
<td width="33%"><img src="show_image.asp?ID=<%=strID%>" width="90" height="140"></td>
<td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?</td>
<td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?</td>
</tr>
<tr><img src=" i want my preferred picture in here but i dont know how to ">
<td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?</td>
<td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?</td>
<td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?</td>
</tr>
</table>
</html>
-------------
show_image.asp
<%
ID = Request.QueryString("ID")
set rs=conn.execute("Select * from files where ID=" & ID & "")
Response.ContentType=rs("Content Type")
Response.BinaryWrite(rs("File Data"))
%>
hope this helps
__________________
Look! Its a ShemZilla ![]() ![]()
|
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > Picture Perfect Upload ... HELP! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|