Ask a Question related to Dreamweaver AppDev, Design and Development.
-
paul tse #1
ASP with ThumbPlus access database
I'm newer to database. Is there anyone who familiar with using ASP from
ThumbPlus using access database ?
is there anything wrong in my script?
<%@LANGUAGE="JAVASCRIPT"%>
<!--#include file="Connections/connthumbsaccess.asp" -->
<%
var rsTaiLong = Server.CreateObject("ADODB.Recordset");
rsTaiLong.ActiveConnection = MM_connthumbsaccess_STRING;
rsTaiLong.Source = "SELECT * FROM Thumbnail WHERE Thumbnail.annotation like
'%??%' ORDER BY Thumbnail.name";
rsTaiLong.CursorType = 0;
rsTaiLong.CursorLocation = 2;
rsTaiLong.LockType = 1;
rsTaiLong.Open();
var rsTaiLong_numRows = 0;
%>
<%
var Repeat1__numRows = 10;
var Repeat1__index = 0;
rsTaiLong_numRows += Repeat1__numRows;
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>Untitled Document</title>
</head>
<body>
<table width="95%" border="0">
<tr align="left">
<th width="27%" scope="col">Name</th>
<th width="26%" scope="col">Thumbnail</th>
<th width="32%" scope="col">Annotation</th>
<th width="13%" scope="col">Date</th>
<th width="2%" scope="col"> </th>
</tr>
<% while ((Repeat1__numRows-- != 0) && (!rsTaiLong.EOF)) { %>
<tr>
<td><%=(rsTaiLong.Fields.Item("name").Value)%></td>
<td><%=(rsTaiLong.Fields.Item("thumbnail").Value)% ></td>
<td><%=(rsTaiLong.Fields.Item("annotation").Value) %></td>
<td><%=(rsTaiLong.Fields.Item("file_time").Value)% ></td>
<td> </td>
</tr>
<%
Repeat1__index++;
rsTaiLong.MoveNext();
}
%>
</table>
</body>
</html>
<%
rsTaiLong.Close();
%>
Other, how to i use the script below for ASP
To find all thumbnails without any of several keywords:
not exists (select idThumb from (keyword inner join thumbnailkeyword on
keyword.idKeyword = thumbnailkeyword.idKeyword) where keyword.keyword
in('kwd1', 'kwd2', 'kwd3') and thumbnailkeyword.idThumb = TN.idThumb)
paul tse Guest
-
access to database
hi to everybody. i'm a newbie in the world of mysql and i've got a problem with the access to a database. i created a user 'default', from host %,... -
.NET Database access
post the connection script with the full path to the database. also since your site is probably not on the root of the drive make sure you are... -
How do I set-up ASP with an MS-Access database?
I Currently have an asp website created manually (not using frontpage)with an access db. The way it works now the iusr- account needs read/write... -
Web access to database
Hi. I've built a quite complicated database for tracking clients, projects, logging work, etcetera for my company, over the last few years. Now... -
Write Access to Access DataBase
I'm trying to update a Access Database from information gained from a ASPX page. The database will not update. I'm sure it is in some security...



Reply With Quote

