close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Sort error when used with Filter

Thread began 5/13/2010 4:40 am by MikeH | Last modified 5/13/2010 1:23 pm by MikeH | 2318 views | 8 replies |

MikeH

Sort error when used with Filter

Hi
I have been trying to use the DA Sort behaviour and have found it only works with a plain Recordset if you try to use with a Filter ie URL Parameter it cause a parse error when run in the browser.

So if you had a store product list that you displayed according to the category ie

SELECT *
FROM products
WHERE ProductCategoryID = colname

This would cause an error when used with the Sort Beahviour is there a workaround for this?

BTW the Sort behaviour works fine as this:

SELECT *
FROM products

Obviously not much use when needing to show only products etc from a certain criteria.

Thanks

Mike

Sign in to reply to this post

Jason ByrnesWebAssist

can you provide some more specifics?

What is the exact text of the error?

Can you send a copy of a page that has this problem?

Sign in to reply to this post

MikeH

Hi Jason
I get a parse error as soon as I add the sort behaviour. Like I said it does not give an error when used with a plain recordset only when you add a URL Parameter to get filtered records.

As for the page I can but would rather email that.

Mike

Sign in to reply to this post

Jason ByrnesWebAssist

what is the exact test of the error?

I need to know what the error is to be able to have any idea of the cause.

I dont have enough information to go by just knowing that it is a "parse error" This really doesn't tell me anything.

perhaps you could copy and past the error or send a screen shot?

Does the error occur in Dreamweaver or in the browser?

Sign in to reply to this post

MikeH

Hi
error is very vague:

-----
Parse error: parse error in C:\wamp\www\Prod_list_cat.php on line 102
-----

Running on a local server as you can see.

The area its pointing to is:

----
mysql_select_db($database_tendringpets, $tendringpets);
$query_ProductListCT = sprintf("SELECT * FROM products WHERE ProductCategoryID = %s", GetSQLValueString($colname_ProductListCT);
setQueryBuilderSource($query_ProductListCT,$WADA_Sort_1,false);
$query_limit_ProductListCT = sprintf("%s LIMIT %d, %d", $query_ProductListCT, $startRow_ProductListCT, $maxRows_ProductListCT);
$ProductListCT = mysql_query($query_limit_ProductListCT, $tendringpets) or die(mysql_error());
$row_ProductListCT = mysql_fetch_assoc($ProductListCT);
---

2nd line is 102

Hope thats a little more useful.

I can email the page if required.

Mike

Sign in to reply to this post

Jason ByrnesWebAssist

but it includes a line number which is very helpful, also tells me the error is happening in the browser, all important details to help me see whats up.

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
login.php

Sign in to reply to this post

MikeH

Hi Jason
There is no Ticket available that I can see.

Logged out and in just in case but still nothing new.

Mike

Sign in to reply to this post

Jason ByrnesWebAssist

Sorry, it is there now.

Sign in to reply to this post

MikeH

Thanks Ive updated it.

Mike

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...