Welcome to GraphicForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

sql statement error after 8.02 upgrade

 
   Graphic Forums (Home) -> SQL Integration RSS
Next:  cs2 upgrade  
Author Message
imjusthere2

External


Since: Jun 28, 2007
Posts: 1



(Msg. 1) Posted: Thu Jun 28, 2007 6:59 pm
Post subject: sql statement error after 8.02 upgrade
Archived from groups: macromedia>dreamweaver (more info?)

Below is my sql statment that worked fine before I upgraded dreamweaver. Now
it says I have a syntax error. Can anyone tell me what is wrong with it?

SELECT *
FROM proofs
WHERE proof_associate = MMColParam AND (proof_formNumber LIKE %sort% OR
proof_date LIKE %sort% OR proof_desc LIKE %sort% OR proof_AKA LIKE %sort% OR
proof_keywords LIKE %sort% OR proof_tab LIKE %sort% OR proof_client LIKE %sort%)
ORDER BY proof_date DESC

mmcolparam and sort are session variables

Thank you,
Chris

 >> Stay informed about: sql statement error after 8.02 upgrade 
Back to top
Login to vote
Pizza Good

External


Since: Jun 28, 2007
Posts: 3



(Msg. 2) Posted: Thu Jun 28, 2007 6:59 pm
Post subject: Re: sql statement error after 8.02 upgrade [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I believe it has to do with the security "stuff" they put in the patch for
V8.02 to deal with sql injection.

"imjusthere2" <webforumsuser RemoveThis @macromedia.com> wrote in message
news:f61agg$ok1$1@forums.macromedia.com...
> Below is my sql statment that worked fine before I upgraded dreamweaver.
> Now
> it says I have a syntax error. Can anyone tell me what is wrong with it?
>
> SELECT *
> FROM proofs
> WHERE proof_associate = MMColParam AND (proof_formNumber LIKE %sort% OR
> proof_date LIKE %sort% OR proof_desc LIKE %sort% OR proof_AKA LIKE %sort%
> OR
> proof_keywords LIKE %sort% OR proof_tab LIKE %sort% OR proof_client LIKE
> %sort%)
> ORDER BY proof_date DESC
>
> mmcolparam and sort are session variables
>
> Thank you,
> Chris
>

 >> Stay informed about: sql statement error after 8.02 upgrade 
Back to top
Login to vote
David Powers

External


Since: Dec 28, 2005
Posts: 340



(Msg. 3) Posted: Thu Jun 28, 2007 11:09 pm
Post subject: Re: sql statement error after 8.02 upgrade [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

imjusthere2 wrote:
> mmcolparam and sort are session variables

You don't say which server model you're using, but with the PHP/MySQL
server model, at least, both mmcolparam and sort need to have the data
type set to "Text".

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
 >> Stay informed about: sql statement error after 8.02 upgrade 
Back to top
Login to vote
Lionstone

External


Since: Nov 09, 2005
Posts: 259



(Msg. 4) Posted: Fri Jun 29, 2007 8:31 am
Post subject: Re: sql statement error after 8.02 upgrade [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If I remember correctly, the ASP server model (and perhaps the others as
well) will only create one copy of your parameter. The problem is they used
ADO parameterization with placeholders, which is based on position. That
means you'll need to go in and attach a copy of "sort" to the command object
for every instance of "sort" in your query. This is most easily done using
code view and not spending time trying to do it in the UI.


"imjusthere2" <webforumsuser DeleteThis @macromedia.com> wrote in message
news:f61agg$ok1$1@forums.macromedia.com...
> Below is my sql statment that worked fine before I upgraded dreamweaver.
> Now
> it says I have a syntax error. Can anyone tell me what is wrong with it?
>
> SELECT *
> FROM proofs
> WHERE proof_associate = MMColParam AND (proof_formNumber LIKE %sort% OR
> proof_date LIKE %sort% OR proof_desc LIKE %sort% OR proof_AKA LIKE %sort%
> OR
> proof_keywords LIKE %sort% OR proof_tab LIKE %sort% OR proof_client LIKE
> %sort%)
> ORDER BY proof_date DESC
>
> mmcolparam and sort are session variables
>
> Thank you,
> Chris
>
 >> Stay informed about: sql statement error after 8.02 upgrade 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
More than one criteria in SQL statement - Hi there, DW 8.0.2 - PHP & mySQL I have more than one search criteria on my search page. The results page does not show the results I need because I think there is just something small I miss in my SQL statement. Here follows the SQL: ..

SQL Statement with Access DB - I have a database (Access) that contains several fields, 1 of them is 'PartNumber' and the other is 'PartCategory'. How can I write the SQL in Dreamweaver to display all the PartNumbers from the Category "Resistance". It would be something l...

SQL statement Advice Please - Hi - Nice to see the forums back :-) Ok i have quite a complex question here, but hope some clever peep can help me out. I have a search page with four methods of searching the database. The code used on the results page is below. I've created a three....

Please help with SQL statement - I am building a search results page. I've got it set up in dreamweaver 8 and followed the wizzards to get the info and connections correct. When I test the recordset in the simple view, it works perfectly. When I test it in the advanced view, it..

Esscaping Charaters in ASP SQL statement - I have a SQL statement that inserts a line of text that contains ( ' ) a single quote. How do i escape this so there server doesn't think it's the end of the string. SQLStr="UPDATE TABLE SET field = 'This is my string to insert. It's not worki...
   Graphic Forums (Home) -> SQL Integration All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]