Results 1 to 3 of 3

Thread: Missing Type for Variable Error

  1. #1
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Missing Type for Variable Error

    I'm using Dreamweaver for my company's website. I have page that I'm query MySQL to return company listings based on a customers location.

    The following SQL works fine and I get no errors...

    SELECT *
    FROM vendors
    WHERE vendors.CO = colname
    ORDER BY vendors.vendor_name

    But as soon as add other locations like this:

    SELECT *
    FROM vendors
    WHERE vendors.CO = colname OR vendors.NM = colname OR vendors.UT = colname OR vendors.AZ = colname
    ORDER BY vendors.vendor_name

    Dreamweaver gives me a "Missing Type for Variable:colname" and won't accept the SQL.

    I've gotten this before, and for some reason I think I fixed it by changing something in my "Remote Site" server information inside Dreamweaver. Any ideas??

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    What happens when you execute the query directly using a normal MySQL client?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Quote Originally Posted by pschlimgen View Post
    I'm using Dreamweaver for my company's website.
    That's your first problem, as Twey says check the SQL statement directly against MySQL. Use something like PhpMyAdmin or preferably the Mysql command line program.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •