Skip to main content
Participating Frequently
April 29, 2009
Question

DW CS4 with PHP/MySQL

  • April 29, 2009
  • 3 replies
  • 1888 views

Hi,

I have come across some buggy stuff today in CS4 that I have never seen before. Anytime I would filter a recordset  using "URL Parameter" ,Dreamweaver would totaly mess up the recorset. When I go to "Advanced" I see that there is an additional SQL Variable named "totalRows" in addition to another one named "colname". Everytime I cleaned up the SQL statement only to revert it back.

Has anyone seen that?

Any help would be appreciated

Kal

This topic has been closed for replies.

3 replies

Participating Frequently
May 9, 2009

I have been experiencing a similar problem. When I open a recordset from the Bindings panel and attempt to addURL parameters and then save the recordset, the resulting code added to the MySQL is both syntactically and logically incorrect. The code that checks for the presence of a passed parameter (ISET function) has the wrong bracket syntax,and as you pointed out, an entirely invalid TOTALROWS statement is inserted in the wrong place in the SQL statement.Furthermore, I find that the Adobe documentation on the use and manipulation of URL parameters via the CS4 interface is woefully lacking. I'm basically reduced to hard-coding the logic at this point.

Message was edited by: Timbo9799

MurraySummers
Inspiring
May 9, 2009

You will need to give us an explicit set of instructions for how to reproduce your symptoms.  I must say, I've never seen such a thing happen in my usage though.

Participating Frequently
May 9, 2009

Thanks for the timely post. I will try to gather code and maybe a screen shot to illustrate my dilemma. Upon further investigation, I'm finding that the correct default value to be entered for a parm is supposed to be -1. Why, I don't know. That may have been part of my problem.  I will report back soon.

I wonder why my profile pic isn't showing up. Certainly not a big deal.

David_Powers
Inspiring
April 29, 2009

kal-hadi wrote:

Anytime I would filter a recordset  using "URL Parameter" ,Dreamweaver would totaly mess up the recorset. When I go to "Advanced" I see that there is an additional SQL Variable named "totalRows" in addition to another one named "colname". Everytime I cleaned up the SQL statement only to revert it back.

I just done some testing with a PHP/MySQL recordset, opening and closing the Recordset dialog box in both Simple and Advanced mode several times. I cannot reproduce the problem you report.

April 29, 2009

If u wanna use URL Parameter, make sure u are using the correct passing parameter