|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have problem mit cold fusion code
<CFQUERY NAME="get_movies" DATASOURCE="movies1"> SELECT * FROM movies WHERE ID = `#code` </CFQUERY> <HTML> <TITLE>Elvis Movies</TITLE> <CFOUTPUT QUERY="get_movies"> <B>Title:</B> #title# <P> <B>Year Released:</B> #year# <P> <B>My Rating:</B> #rating# <P> </CFOUTPUT> </HTML> Non stop i have this message Error Executing Database Query. [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. The error occurred in C:\Inetpub\wwwroot\CFIDE\index.cfm: line 3 1 : <CFQUERY NAME="get_movies" DATASOURCE="elvis1"> 2 : 3 : SELECT * FROM movies WHERE ID = `#code#` 4 : </CFQUERY> 5 : I use Access 2003 Please someone help me |
|
#2
|
|||
|
|||
|
Are you sure ID is a string? You have '#code#', it will treat this as a string. If ID is a integer, try #code#.
|
|
#3
|
|||
|
|||
|
Now I have this message
Variable CODE is undefined ![]() |
|
#4
|
|||
|
|||
|
I am sorry my mistake this works
Thank you very much ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Cold Fusion Development > cold fusion help!!!!!!!!!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|