bataraguru
Programmer
Hi,
I manages to get this code from a tutorial site..
basically, i wanted to display exactly 3 columns from 3 CarID in the list.
the code above dont any syntax error, but i only manage to display 1 from 3 of CarID in the list. what i have done wrong? Please help. thanks in a million...
Thanks..
- zaidi -
I manages to get this code from a tutorial site..
basically, i wanted to display exactly 3 columns from 3 CarID in the list.
Code:
<Table border="1" width="100%">
<cfloop list="#Form.CarID#" index="ID" delimiters=",">
<tr>
<cfparam name="startrow" default="0">
<cfquery name="unique_query#ID#" datasource="Autoworld">
SELECT * FROM CarSpec
WHERE CarID = #ID#
</cfquery>
<cfoutput query="unique_query#ID#" startrow="#startrow#" maxrows="3">
<td width ="33%">#Model# - #CC#<br>#Fuel#<br></td>
</cfoutput>
<cfset startrow = #startrow# + 3>
</tr>
</cfloop>
</Table>
Thanks..
- zaidi -