Advance filtering with Dreamweaver cs4, PHP and mysql

Here is the problem:
This is my query which gives me back no data.
SELECT *
FROM photos
WHERE photoTypeID LIKE cat
ORDER BY photoID DESC
variable = cat
Type = integer
default value= -1
run time value = $_POST['cat']
If I change the default value to "%" I get all the data in the Test SQL statement window but then I get a DIVISION BY ZERO on my page.

When using LIKE, you must set the type to "Text". LIKE matches strings. It cannot be used with numbers.

Similar Messages

  • Dreamweaver CS5.5 Mobile Apps with PHP and MYSQL?

    Hello,
    I don't have Dreamweaver CS5.5 yet and I've been trying to search for information on this but I couldn't find any. I've been learning PHP and been developing with MYSQL with Dreamweaver CS5 but I wanted to know if I can use the same tags and everything if I would to build a Mobile App using the new Dreamweaver CS5.5 (http://tv.adobe.com/watch/cs-55-web-premium-feature-tour-/dreamweaver-cs-55-jquery-mobile- pages/). I overlooked at the video and it seems pretty easy building an app. So is PHP and MYSQL easily integratable? Are there any examples that I might be able to check out?
    Thanks!

    No. PHP is a server-side scripting language that requires a server (or server-like environment) to run.
    An iPhone (or Android) application does not allow for a "built-in" server (which is resource intensive and has scary security implications). You just can't build an application with PHP/MySQL for a mobile device. Instead you can build a web service that your HTML/JavaScript mobile application can then communicate with. This is the only supported way you can use PHP/MySQL in a mobile app. Again: the PHP/MySQL should reside on a server and your HTML/JS mobile app can then communicate with that web service. That's what instapaper and other applications do.
    Frankly, just make a web application that's mobile device friendly and you'll:
    1) Avoid all the messiness of the app stores
    2) Have greater control over what your web app can do (don't have to tow the Apple/Google line)
    3) Have a web app that can work across mulitple mobile devices as well as standard web browsers (i.e. more audience = more $).
    4) Future proof your application (pushing updates to your server and everyone using your web app is updated)
    Otherwise, read-up on Adobe AIR and what it supports and remember, the best apps are written natively for the platform (i.e. want to write an app for an iPhone? Learn Objective-C and use xCode on a Mac. Want to write an app for Motorola Xoom? Learn the Android SDK and use inteliJ).

  • Problems with PHP and MySQLi server behaviors

    Hi,
    I'm a graphic and Web-designer with some knowledge of PHP and MySQL and I've been using Dreaweaver since very early ages in creating dynamic web projects and use the Bindings and Server behaviors quite a lot. But recently PHP has deprecated MySQL_connect since 2012 and it seems Dreamweaver isnt suporting the alternative MYSQLi server behaviors which will be the future of accessing Databases in MySQL along side with other options. Without this feature Dreamweaver is not of any use to us web-designers, since there are many Free great Editing software out there... Is the Dreamweaver team solving this problem? Or are you really planning on dropping this software? I've been using CS5.5 for a while and was planning on updating but this is a key feature and without it its not worth the investment.
    Kind regards.
    Eddy

    heduino wrote:
    Hi,
    I'm a graphic and Web-designer with some knowledge of PHP and MySQL and I've been using Dreaweaver since very early ages in creating dynamic web projects and use the Bindings and Server behaviors quite a lot. But recently PHP has deprecated MySQL_connect since 2012 and it seems Dreamweaver isnt suporting the alternative MYSQLi server behaviors which will be the future of accessing Databases in MySQL along side with other options. Without this feature Dreamweaver is not of any use to us web-designers, since there are many Free great Editing software out there... Is the Dreamweaver team solving this problem? Or are you really planning on dropping this software? I've been using CS5.5 for a while and was planning on updating but this is a key feature and without it its not worth the investment.
    Kind regards.
    Eddy
    There are no plans that I know of to introduce a new set of mysqli server behaviours into DW from Adobe. They have left that to  thrid party developers to bring out extensions which replace them.
    What the server behaviours could do was very limiting anyway so I suspect any replacement mysqli behaviours would also be very limiting. I personally jumped into thre code and started to write my own mysqli connection files and query strings by watching a few simple tutorials on youtube - it isnt that difficult.
    Look for 'php academy' on youtube - they have about 9 simple to follow tutorials on getting started with mysqli.

  • How do I add an already built Shopping Cart  (PHP and MYSQL) application to a page in a Muse site?

    How do I add an already built Shopping Cart  (PHP and MYSQL) (Cartweaver 4) application to a page in a Muse site? Do I have to export the Muse site as Html to dreamweaver and them use the extension to bring the shooping cart in or can I do it directly in Muse?
    Message was edited by: mgv2048

    We have experimented with doing this with some good success. We have been working on adding Cartweaver to a Facebook page by essentially adding a Cartweaver store to Facebook in an iframe.  The "store" would be pages with just your basic product display, cart, and checkout functionality, with none of the "window dressing" - just use CSS to match the color and general look of the design it's being added to.
    The one problem with this for Facebook is when it comes time to check out toy have to leave Facebook and go to your server where an SSL is in place.  Fortunately in this situation this would not be the case, you can have an SSL installed to the root of your site and you'll be okay.
    This is an interesting project.  Give this a try and let me know how it goes and if you run into any snags, please make a post on the Cartweaver forums: http://forums.cartweaver.com - I'm really confident that this can work, and not only work, but work well.
    Looking forward to hearing how this goes, and being of what help we can.
    Lawrence Cramer - *Adobe Community Professional*
    http://www.Cartweaver.com
    PHP & ColdFusion Shopping Cart for Adobe Dreamweaver
    Stay updated:
    http://www.facebook.com/cartweaver
    http://www.twitter.com/cartweaver
    http://blog.cartweaver.com

  • PHP and MySQL Connection problem

    I am trying to make a PHP MySQL on a remote server connection in Dreamwesaver CS3.
    When I enter the information (host, user, password, etc.) and hit TEST, I get the following error message.
    "Access Denied. The file may not exist, or there could be a permission problem. Make sure you have proper authorization on the server and the server is properly configured."
    I know the user, password, etc. work, as I can access the MySQL database with other software.
    I checked with my host and they say there are no permission problems on their end.
    I have checked the settings on the Test Server page in Site Setup and everything looks correct and works there.
    I have not seen this particular problem described in other forum postings (although there are a LOT of postings on this topic!).
    Any help would be appreciated.

    I thought my testing server was the remote server and is always on as far as I know. I don't know how to turn it on or off.
    Is there some other testing server that I should be aware of?
    Frank
    Date: Wed, 3 Jun 2009 15:43:02 -0600
    From: [email protected]
    To: [email protected]
    Subject: PHP and MySQL Connection problem
    I know you are using remote, but is your testing server on? if not turn that on and see if that does it. it just happened to me working on remote server and could not get mysql conn to work, until I turn on my testing (developer server), then I was able to connect to mysql and the tables that I created in phpmyadmin remotly was downloaded.
    >

  • What's up with DreamWeaver CS4?

    D/W tells me it can't find the root folder so I go to "mangae sites", then edit, and show it where the site is located on my desktop, and I get this error message.
    Then when I try to upload a file to my website I get this error message.
    And yes I'd buy CS6 if I could afford it, who wouldn't. But $50 bucks a month is not something I can afford right now.
    And it happens over and over again. I won't allow me to fix it. Even after many attempts. Has anybody an answer to this problem. Oh, and I'm using CS4 with Mac OS X version 10.9. I've been using this for years and have never had a problem till I bought a new MacBook Pro.
    Thanks for your help, before the fact.

    Thanks but I¹ve done that and it just keeps asking me to click on ³manage
    site² and do it over and over again. I¹m wondering if perhaps when I bought
    this new computer, and the had me change my user name on the computer by
    putting a ³1² after it, if somehow that screwed the whole thing up and it
    can no longer recognize any of it as a result?
    11/21/13, 10:48 PM   Ben Pleysier
    Re: What's up with DreamWeaver CS4?
    created by Ben Pleysier <http://forums.adobe.com/people/Ben+Pleysier>  in
    Dreamweaver support forum - View the full discussion
    <http://forums.adobe.com/message/5864704#5864704>
    I think that the error message is quite clear, there is a problem with the
    mentioned page. Try renaming the document and see what happens.
    Please note that the Adobe Forums do not accept email attachments. If you want
    to embed a screen image in your message please visit the thread in the forum
    to embed the image at http://forums.adobe.com/message/5864704#5864704 Replies
    to this message go to everyone subscribed to this thread, not directly to the
    person who posted the message. To post a reply, either reply to this email or
    visit the message page: http://forums.adobe.com/message/5864704#5864704 To
    unsubscribe from this thread, please visit the message page at
    http://forums.adobe.com/message/5864704#5864704. In the Actions box on the
    right, click the Stop Email Notifications link.  Start a new discussion in
    Dreamweaver support forum at Adobe Community
    <http://forums.adobe.com/choose-container!input.jspa?contentType=1&containerTy
    pe=14&container=2240>  For more information about maintaining your forum email
    notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Synchronize problem with Dreamweaver CS4

    Hi all,
    I was wondering whether any of you can offer any advice or help with a problem I have with Dreamweaver CS4. 
    The problem is regarding the Synchronize feature within Dreamweaver, for example after I have made a change to a web page and want to upload this to the internet, the software detects what files have changed which is fine but against the file it has the word and symbol called "Resolve" and this is where I am stuck because I cannot click on the Resolve button to change it to "Put" because the icon is grey so therfore I am unable to upload any changes to any websites. 
    If anybody can help me then it would be very much appreciated. 
    Cheers 
    Daniel

    Hi Hans- G    
    Many Thanks for this. I will go and have a look. It is strange as I have never experienced this problem before.
    Cheers
    Daniel

  • ANN: Setting up PHP and MySQL for newbies!

    We've recently released two new solution recipes to help
    designers make the
    jump to building dynamic sites. Each solution recipe
    describes step by step
    how to set up PHP and MySQL on your XP or Vista systems. You
    can find them
    on the Solution Recipe page:
    Installing PHP and MySQL on Windows Vista
    Installing PHP and MySQL on Windows XP
    http://www.webassist.com/professional/products/solutionrecipes.asp
    Each of these Solution Recipes include PDFs that you can
    print out or read
    on screen.
    We also have steps outlined for the Mac in PDF format, one
    for 10.4.x and
    the other for 10.5.x:
    10.4.x:
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-4_PDF.pdf
    10.5.x:
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-5_PDF.pdf
    All content is freely available. Go get'em!
    Best - Joe
    Joseph Lowery
    VP of Marketing, WebAssist -
    http://www.webassist.com
    Author, Dreamweaver CS3 Bible -
    http://www.idest.com/dreamweaver/

    Cool. I've bookmarked it for later.
    Thanks!
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "Joseph Lowery" <[email protected]> wrote in
    message
    news:ftj87l$nem$[email protected]..
    > We've recently released two new solution recipes to help
    designers make
    the
    > jump to building dynamic sites. Each solution recipe
    describes step by
    step
    > how to set up PHP and MySQL on your XP or Vista systems.
    You can find them
    > on the Solution Recipe page:
    >
    > Installing PHP and MySQL on Windows Vista
    > Installing PHP and MySQL on Windows XP
    >
    http://www.webassist.com/professional/products/solutionrecipes.asp
    >
    > Each of these Solution Recipes include PDFs that you can
    print out or read
    > on screen.
    >
    > We also have steps outlined for the Mac in PDF format,
    one for 10.4.x and
    > the other for 10.5.x:
    >
    > 10.4.x:
    >
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-4_PDF.pdf
    >
    > 10.5.x:
    >
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-5_PDF.pdf
    >
    > All content is freely available. Go get'em!
    >
    > Best - Joe
    >
    > Joseph Lowery
    > VP of Marketing, WebAssist -
    http://www.webassist.com
    > Author, Dreamweaver CS3 Bible -
    http://www.idest.com/dreamweaver/
    >

  • Set a max Upload quantity dreamwaver php and mysql

    The issue,
    using dreamweaver php and mysql I Would like to set a max
    quantity limit on file upload per user. i.e max 5 uploaded images
    allowed per user.
    Here is a basic example of the creation. Just need the
    implementation of how to set a max upoad limit.
    create table authors(
    id int not null auto increment primary key,
    name varchar(10) not null
    image_quantity tinyint(1),
    create table images(
    aid int not null,
    image_filename varchar(50),
    foreign key (aid) references authors(id)
    User id 1 would upload a file into the table images from a
    php or html webpage. i.e set values "thomas.jpeg", "1"
    i want to set a max upload of 5 images per user. (a folder
    for each user id will be created and photos stored in that).
    I could add a field of max_upload tinyint(1) to the table
    users and construct a php script that could add the amount of
    images entered by a user into the images table and add a +1 to each
    added. Problem is i dont know how to create that script or mysql
    querty in order to enter into a recorset for example.
    As anyone have any ideas of the best way to set a max
    quantity limit of uploads.
    Thank you.

    The issue,
    using dreamweaver php and mysql I Would like to set a max
    quantity limit on file upload per user. i.e max 5 uploaded images
    allowed per user.
    Here is a basic example of the creation. Just need the
    implementation of how to set a max upoad limit.
    create table authors(
    id int not null auto increment primary key,
    name varchar(10) not null
    image_quantity tinyint(1),
    create table images(
    aid int not null,
    image_filename varchar(50),
    foreign key (aid) references authors(id)
    User id 1 would upload a file into the table images from a
    php or html webpage. i.e set values "thomas.jpeg", "1"
    i want to set a max upload of 5 images per user. (a folder
    for each user id will be created and photos stored in that).
    I could add a field of max_upload tinyint(1) to the table
    users and construct a php script that could add the amount of
    images entered by a user into the images table and add a +1 to each
    added. Problem is i dont know how to create that script or mysql
    querty in order to enter into a recorset for example.
    As anyone have any ideas of the best way to set a max
    quantity limit of uploads.
    Thank you.

  • Can you create HTML5 with Dreamweaver CS4?

    Hello.
    Can you create HTML5 with Dreamweaver CS4? Are there workarounds if not?
    I am using a PC on Windows 7.
    Thank you.

    Try copying and pasting this HTML5 code into a new, blank document.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 Document</title>
    <!--helps older IE browsers with HTML5 tags-->
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    </head>
    <body>
    <header>
    Header
    <h1>Site Name</h1></header>
    <nav>Navigation</nav>
    <section>
    <article>
    <h3>Article</h3>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim. </p>
    </article>
    <aside>
    <h3>Aside</h3>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim. </p>
    </aside>
    </section>
    <footer>Footer</footer>
    </body>
    </html>
    Nancy O.

  • Problems controlling divs with dreamweaver cs4

    Hi all, so I have been hard coding my website and have had great success with the layout and everything.  I am having trouble with dreamweaver cs4, does anyone know if cs4 is compatible with html5?  My silicone cupcake liners website looks great but a nice transition to dreamweaver would save a lot of work.

    DWCS4 won't be able to correctly read the html5 semantic tags like <nav><aside> or <header> while in Live View. The built in version of the quasi-webkit browser is just too old.
    Design View will work for the most part, but does get confused by certain things within HTML5 specific tags, so that will look even more broken than normal.
    It also will not automatically generate any HTML5 specific code, there are no HTML5 menu options and there is no update to make it do that.
    The program itself is no longer supported by Adobe, being the 5th version removed from "current"...
    DWCC
    DWCS6 Cloud
    DWCS6 Disk
    DWCS5.5
    DWCS5
    DWCS4

  • Exploring Web Services with Dreamweaver CS4

    How can you explore web services with Dreamweaver CS4? You
    used to be able to go under Components and add Web Services and
    enter the url for the WSDL (ex.
    http://www.communitymx.com/content/article.cfm?cid=70AAB).
    How do you do that now in CS4?

    Yeah, I knew there were several workspaces. I tried them all
    but none showed the Components/Webservices tab.
    That was an important tab for me since I do a lot of work
    with cfcs in connection with Flex Builder 3.
    I just hate having to go on Easter Egg hunts to find the
    functions that have been there for years.
    Like now I cannot copy and paste some code from one file to
    another and the command tab bar is gone for the CFML commands.
    It's just a real pain in rear end to have waste a bunch of
    time locating where someone decided to bury stuff.

  • I need to know how I will create a dynamic website using php and mysql

    I need to know how will I create a dynamic website using php and mysql that people could have the abilities of registering in the website, and modify their profile where they can add their pictures and everything. apart from that, they should have the ability to search about other member. hope to here more from you.

    If you are a right-brained creative, and have no previous experience or propensity to be able to understand coding and database "stuff", and/or if your time can be better spent on other skills, I recommend you save your sanity and hire a developer... or at least the first time around. I have been attempting to grasp this for years... and have a library of marked up books to prove my efforts, all while trying to keep up with an ongoing client base that is always cramped. It's a wonder I still have my sanity... then again, I might not be the best person to determine that. Others might question it.
    That said, I still plan to master php... one of these days.

  • Trying to get Apache, PHP and MySQL up and running

    I have just bought a new MacBook and I want to set up Apache, PHP and MySQL in order to create a local mirror of a website I have in my 'Sites' folder.
    I fall at the first fence!! To get Apache, I switch web sharing on in System Preferences' and I get the green light. When I click the links for personal website or computer's website I get a "Safari can't connect to the server" message.
    Any ideas what I should do now?

    Stephen Dancer wrote:
    Any ideas what I should do now?
    You will need to make some change to the index file in your Sites directory in order to enable Apache for that directory.
    You will have to enable PHP in the Apache config file at /etc/apache2/httpd.conf
    For MySQL, you will have to install it, and then fix it. You'll want to remove the StartupItem it wants to use and replace it with a launchd file. This discussion has a good roundup of the very latest tricks to get MySQL up and running with the latest security updates.

  • Shift+i issue with Dreamweaver CS4

    Hi,
    i have an issue with Dreamweaver CS4 when I press shift+i the behavior is similar as cmd+v (a paste action). I checked the keyboard shortcut, but no action set for shift+i .. i don't understand.
    Please may you help me!?
    thanks
    bye
    Max

    Another place you can ask is in the forums for dreamweaver:
    http://www.adobe.com/support/forums/

Maybe you are looking for