DB Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

SELECT * FROM `user` the_table WHERE the_table.userid = DB Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

SELECT * FROM `user` the_table WHERE the_table.userid = Cold Fusion, Why can't I get my previous and next page links to work? - iTechForums
Login
Search
Welcome to the iTechForums.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 1
Members:
Number of Users Online:
Welcome to our newest member,
Reply
 
Thread Tools Display Modes
  #1  
Old 05-09-2008, 10:57 PM
James B James B is offline
Junior Member
 
Join Date: May 2008
Posts: 21
Default

Cold Fusion, Why can't I get my previous and next page links to work?


<cfparam name="start" default="1">
<cfparam name="disp" default="5">

<cfqueary name="" datasource="">
SELECT
blah blah....
FROM
blah blah
</cfquery>

<cfset end = start + disp>
<cfif start + disp GT GetInfo.RecordCount>
<cfset end = 999>
<cfelse>
<cfset end = disp>
</cfif>
<cfoutput>
<cfif start NEQ 1>
<cfif start GTE disp>
<cfset prev = disp>
<cfset prevrec = start - disp>
<cfelse>
<cfset prev = start - 1>
<cfset prevrec = 1>
</cfif>
<a href="index.cfm?start=#prevrec#">«Previous #prev# Post's </a>
</cfif>
|
<cfif end LT GetInfo.RecordCount>
<cfif start + disp * 2 GTE GetInfo.RecordCount>
<cfset next = GetInfo.RecordCount - start - disp + 1>
<cfelse>
<cfset next = disp>
</cfif>
<a href="index.cfm?start=
#Evaluate("start + disp")#"> Next #next# Post's</a>
</cfif>
</cfoutput>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is cold Fusion Possible? silverwolf_20015 Cold Fusion 5 07-30-2008 01:00 PM
What do you think about cold-fusion? Cold fusion being suppressed? VAIVAIVI <--- Cold Fusion 3 05-06-2008 06:33 PM
How is Cold Fusion Expected to Work? Booboo64 Cold Fusion 7 05-06-2008 05:54 PM
How close are we as a civilization to achieving Nuclear fusion/cold fusion? Ben H Cold Fusion 2 05-06-2008 01:18 PM
Will creating a normal HTML web page in a huge site created from Cold Fusion Henry J Cold Fusion 0 05-06-2008 10:12 AM

Your Ad Here

All times are GMT. The time now is 11:11 AM.