Marcus Dunkus
09-22-2005, 09:08 AM
Hi guys,
I have this dynamic table (below) and the boss has asked me to leave sold items there, mark them as 'sold' and disable the relevent links.
I have a yes/no column called 'sold' in the database to provide the info but now I'm stuck. here's the code, Thanks.
'connection bit then -
oRS.moveFirst
Do while not oRS.eof
ID = oRS("ID")
thumbnail = oRS("thumbnail")
make = oRS("make")
model = oRS("model")
cardescription = oRS("cardescription")
price = oRS("price")
url = oRS("url")
%>
<%
if cellCol = "FFFFFF" then
cellCol = "C5D2E0"
else
cellCol = "FFFFFF"
end if
%>
<td width="100" height="70" bgcolor=#<%=cellCol%>><a href= "car/car_details/<%=url%>"><img src="car/car_thumbnails/<%=thumbnail%>" name="Image1" width="100" height="70" border="0" id="Image1"></a></td>
<td width="120" height="70" bgcolor=#<%=cellCol%>><div align="center" class="tablepadding"><%=make%></div></td>
<td width="120" height="70" bgcolor=#<%=cellCol%>><div align="center" class="tablepadding"><%=model%></div></td>
<td width="360" height="70" bgcolor=#<%=cellCol%>><span class="tablepadding"><%=cardescription%><a href="car/car_details/<%=url%>" class="links"> more...</a></span></td>
<td width="60" height="70" bgcolor=#<%=cellCol%>><div align="center" class="tablepadding">£<%=price%>
</div></td>
</tr>
<%
oRS.MoveNext
loop
%>
I have this dynamic table (below) and the boss has asked me to leave sold items there, mark them as 'sold' and disable the relevent links.
I have a yes/no column called 'sold' in the database to provide the info but now I'm stuck. here's the code, Thanks.
'connection bit then -
oRS.moveFirst
Do while not oRS.eof
ID = oRS("ID")
thumbnail = oRS("thumbnail")
make = oRS("make")
model = oRS("model")
cardescription = oRS("cardescription")
price = oRS("price")
url = oRS("url")
%>
<%
if cellCol = "FFFFFF" then
cellCol = "C5D2E0"
else
cellCol = "FFFFFF"
end if
%>
<td width="100" height="70" bgcolor=#<%=cellCol%>><a href= "car/car_details/<%=url%>"><img src="car/car_thumbnails/<%=thumbnail%>" name="Image1" width="100" height="70" border="0" id="Image1"></a></td>
<td width="120" height="70" bgcolor=#<%=cellCol%>><div align="center" class="tablepadding"><%=make%></div></td>
<td width="120" height="70" bgcolor=#<%=cellCol%>><div align="center" class="tablepadding"><%=model%></div></td>
<td width="360" height="70" bgcolor=#<%=cellCol%>><span class="tablepadding"><%=cardescription%><a href="car/car_details/<%=url%>" class="links"> more...</a></span></td>
<td width="60" height="70" bgcolor=#<%=cellCol%>><div align="center" class="tablepadding">£<%=price%>
</div></td>
</tr>
<%
oRS.MoveNext
loop
%>