DreamWeaver CS4-CS5 Creates Syntax Errors

I cannot seem to find any info on this online but my DreamWeaver CS4 and a trial of DreamWeaver CS5 both create PHP and SQL queries that are loaded with syntax errors. I use XAMPP on my computer as I have done for years, and it works fine with phpMyAdmin and Komodo Edit. DreamWeaver has been a nifty app to quickly knock out simple applications in that past, but now I spend too much time manually correcting syntax errors in PHP page queries.
Has anyone there heard of a fix for this? Several other web developers have told me that they entirely abandoned DW CS* series and moved on to other IDE's rather than try to fix the problem.
EXAMPLE:
Here is what it wrote:
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
  $updateSQL = sprintf("UPDATE `mysite` SET about-yn=%s, about-h1=%s, about-p1=%s, about-p2=%s, about-p2-img=%s, about-p3=%s, about-p3-img=%s, about-p4=%s, about-p4-img=%s WHERE siteID=%s",
                       GetSQLValueString($_POST['aboutyn'], "text"),
                       GetSQLValueString($_POST['abouth1'], "text"),
                       GetSQLValueString($_POST['aboutp1'], "text"),
                       GetSQLValueString($_POST['aboutp2'], "text"),
                       GetSQLValueString($_POST['aboutp2img'], "int"),
                       GetSQLValueString($_POST['aboutp3'], "text"),
                       GetSQLValueString($_POST['aboutp3img'], "int"),
                       GetSQLValueString($_POST['aboutp4'], "text"),
                       GetSQLValueString($_POST['aboutp4img'], "int"),
                       GetSQLValueString($_POST['siteID'], "int"));
Here is what it should have written:
f ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
   $updateSQL = sprintf("UPDATE `mysite` SET  `about-yn`=\"%s\", `about-h1`=\"%s\", `about-p1`=\"%s\", `about-p2`=\"%s\", `about-p2-img`=\"%s\",  `about-p3`=\"%s\", `about-p3-img`=\"%s\", `about-p4`=\"%s\", `about-p4-img`=\"%s\" WHERE  `siteID`=\"%s\"",
                        GetSQLValueString($_POST['aboutyn'], "text"),
                        GetSQLValueString($_POST['abouth1'], "text"),
                        GetSQLValueString($_POST['aboutp1'], "text"),
                        GetSQLValueString($_POST['aboutp2'], "text"),
                        GetSQLValueString($_POST['aboutp2img'], "int"),
                        GetSQLValueString($_POST['aboutp3'], "text"),
                        GetSQLValueString($_POST['aboutp3img'], "int"),
                        GetSQLValueString($_POST['aboutp4'], "text"),
                        GetSQLValueString($_POST['aboutp4img'], "int"),
                        GetSQLValueString($_POST['siteID'], "int"));
[email protected]

Dreamweaver will not produce such a mess when using column names which comply with the MySQL Naming Conventions and don´t contain (often quite problematic) hyphen characters.
That said, you´ll be on the safe side when renaming your columns by using underscores instead, example:
about_p3_img
Several other web developers have told me that they entirely abandoned DW CS* series and moved on to other IDE's rather than try to fix the problem.
Dreamweaver is certainly not a "perfect" PHP development IDE, but other IDEs (I use Komodo or Aptana at times and like them a lot...) aren´t perfect either. This may seem strange, but IMO Dreamweaver did do the - sort of - right thing by not letting the user get away with using such problematic characters, and that´s what those other IDEs I work with regretfully don´t pay attention to.

Similar Messages

  • Dreamweaver CS4 Mac – non-startup – Error: 150:30

    Hi, any help would be appreciated.
    Dreamweaver CS4 Mac – non-startup – Error: 150:30
    "Licensing for this product has stopped working". Transferred to new computer via Time Machine back-up.
    Thanks

    See if anything here helps: https://helpx.adobe.com/creative-suite/kb/error-licensing-product-expired-cs4.html

  • Dreamweaver CS4 FTP Access Denied error

    We recently purchased and installed Adobe CS 4 Design Suite. I am trying to install and configure  Dreamweaver CS4 to maintain our website.
    I had a trial version on a PC which works fine.
    I have a Mac OS X 10.5.8 and I installed the newly purchased Dreamweaver CS4 on it. When I try defining a new website as suggested here (http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSBE25912D-A9DE-4ba1-9F85-4C692F5C14ADa .html#WS269BF2C1-74ED-4797-9D9D-6EC283FE7645a)
    and connect using FTP, it connects successfully.  It shows me local and remote files. But if I try to download any file it gives an error such as:
    /sandeepkolte/activities.aspx - error occurred - An FTP error occurred - cannot get activities.aspx.  Access denied.  The file may not exist, or there could be a permission problem.
    If I try to upload a file, it gives an error:
    Started: 4/11/10 10:52 PM
    about.aspx - error occurred - Access denied.  The file may not exist locally,  may be open in another program, or there could be a local permission problem.
    File activity incomplete. 1 file(s) or folder(s) were not completed.
    Files with errors: 1
    about.aspx
    Finished: 4/11/10 10:52 PM
    I tried installing FileZilla to check if I can upload/download files from website using a ftp client. And I can successfully do that. As I suggested earlier, I can connect, upload/download files from another PC with a older version as well as new trial version of DW on the same home network.
    I also tried toggling Passive/Active mode but it did not work.
    I have no firewall on Mac OS X. Can you please help me figure out what must be causing this and how to resolve it?
    Sandeep

    hi,
    In the audit log .. I can see 
    -Connecting to FTP server "123.123.123.123"
    -Write to FTP server "123.123.123.123" directory "/TEST/", -> file "abc.asc"
    -Transfer: "TXT" mode, size 1 bytes, character encoding 8859_1
    -Attempt to process file failed with com.sap.aii.adapter.file.ftp.FTPEx: 550 Access is denied
    -MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Access is denied.: com.sap.aii.adapter.file.ftp.FTPEx: 550 Access is denied.
    -Exception caught by adapter framework: Access is denied.
    -The message status set to WAIT.
    i think connection is fine.But its not uploading the file.When i try created a folder in the same location , i can do the same.
    My question is that if i can create and delete,then why PI is not posting the file even when i use the same user name and PW to connect.
    Regards,
    Srini

  • AppleScript InDesign CS5.5 Syntax Error

    Hi, this script runs fine as is but when I got to edit, it gives me error when compiling.  Error I get is on following 2 lines with as text part.  If I take it out, I don't get error but script doesn't run.  Script was created on a older version of MAC OS and InDesign but someone else.
    set contents of myTextFrame to TheList as text
    set XML_File to (choose file with prompt XMLstr) as text
    Error is Syntax error:" Expected end of line, etc. but found application constant or consideration."
    Here is complete script:
    try
    set CSVstr to "Please locate your CSV file..."
    set CSV_File to (choose file with prompt CSVstr) as text
    set csvData to read file CSV_File
    set csvEntries to paragraphs of csvData
    set {CSVItem1} to parseCsvEntry(csvEntries's item 1)
    set {CSVItem2} to parseCsvEntry(csvEntries's item 2)
    set {CSVItem3} to parseCsvEntry(csvEntries's item 3)
    set {CSVItem4} to parseCsvEntry(csvEntries's item 4)
    set {CSVItem5} to parseCsvEntry(csvEntries's item 5)
    set {CSVItem6} to parseCsvEntry(csvEntries's item 6)
    set {CSVItem7} to parseCsvEntry(csvEntries's item 7)
    set {CSVItem8} to parseCsvEntry(csvEntries's item 8)
    set {CSVItem9} to parseCsvEntry(csvEntries's item 9)
    set TheList to {CSVItem1, CSVItem2, CSVItem3, CSVItem4, CSVItem5, CSVItem6, CSVItem7, CSVItem8, CSVItem9}
    tell application "Adobe InDesign CS5.5"
    set myDocument to active document
    tell XML view preferences
    set show attributes to false
    set show structure to true
    set show tagged frames to false
    set show tag markers to false
    set show text snippets to true
    end tell
    tell XML import preferences
    set allow transform to false
    set create link to XML to false
    set ignore unmatched incoming to true
    set ignore whitespace to true
    set import CALS tables to true
    set import style to merge import
    set import text into tables to false
    set import to selected to false
    set remove unmatched existing to false
    set repeat text elements to true
    end tell
    set myPage to active page of active window
    tell myPage
    set myTextFrame to make text frame
    set geometric bounds of myTextFrame to {"6p", "6p", "24p", "24p"}
    ****Error on below line ****
    set contents of myTextFrame to TheList as text
    move myTextFrame to {"-30p", 0}
    end tell
    set Char1 to item 1 of TheList
    set Char2 to item 2 of TheList
    set Char3 to item 3 of TheList
    set Char4 to item 4 of TheList
    set Char5 to item 5 of TheList
    set Char6 to item 6 of TheList
    set Char7 to item 7 of TheList
    set Char8 to item 8 of TheList
    set Char9 to item 9 of TheList
    set AppleScript's text item delimiters to "\"\""
    set {LTry} to Char1's text items
    set AppleScript's text item delimiters to {}
    set placedAsset to place asset asset LTry of library "JetroXMLElements.indl" on myDocument
    move placedAsset to {0.363, 0.84}
    set placedAsset to place asset asset Char2 of library "JetroXMLElements.indl" on myDocument
    move placedAsset to {3.695, 0.84}
    set placedAsset to place asset asset Char3 of library "JetroXMLElements.indl" on myDocument
    move placedAsset to {6.905, 0.84}
    set placedAsset to place asset asset Char4 of library "JetroXMLElements.indl" on myDocument
    move placedAsset to {0.363, 3.91}
    set placedAsset to place asset asset Char5 of library "JetroXMLElements.indl" on myDocument
    move placedAsset to {3.695, 3.91}
    set placedAsset to place asset asset Char6 of library "JetroXMLElements.indl" on myDocument
    move placedAsset to {6.905, 3.91}
    set placedAsset to place asset asset Char7 of library "JetroXMLElements.indl" on myDocument
    move placedAsset to {0.363, 6.95}
    set placedAsset to place asset asset Char8 of library "JetroXMLElements.indl" on myDocument
    move placedAsset to {3.695, 6.95}
    set placedAsset to place asset asset Char9 of library "JetroXMLElements.indl" on myDocument
    move placedAsset to {6.905, 6.95}
    tell myDocument
    set XMLstr to "Please locate your XML file..."
    ****Error on below line ****
    set XML_File to (choose file with prompt XMLstr) as text
    import XML from XML_File
    end tell
    tell application "Adobe InDesign CS5.5"
    set find text preferences to nothing
    set change text preferences to nothing
    set find what of find text preferences to "mykzlplx"
    set change to of change text preferences to ""
    tell active document
    change text
    end tell
    set find text preferences to nothing
    set change text preferences to nothing
    set find what of find text preferences to "¬"
    set change to of change text preferences to ""
    tell active document
    change text
    end tell
    set find text preferences to nothing
    set change text preferences to nothing
    end tell
    end tell
    end try
    to parseCsvEntry(csvEntry)
    set AppleScript's text item delimiters to "\"\""
    set {Stuuff} to csvEntry's text items
    set AppleScript's text item delimiters to {""}
    return {Stuuff}
    end parseCsvEntry
    Thanks!

    Thanks, I had re-written and seem to have it working ok but went back to original to test using string instead of text and that seems to work.
    Thanks again for the help.
    Joe

  • CS5 goto Syntax Error

    With the introduction of PHP 5.3, the powers that be introduced a new operator, "goto."  See it in the manual here:
    http://php.net/manual/en/control-structures.goto.php
    Example:
    <?php
    goto a;
    echo 'Foo';
    a:
    echo 'Bar';
    ?>
    Outputs Bar.
    It's really quite handy.
    However, Dreamweaver CS5 does not recognize this instruction and displays a syntax error where it both installed and at the target.
    Is there a workaround or a way to add the tag to the application?

    Thanks, I had re-written and seem to have it working ok but went back to original to test using string instead of text and that seems to work.
    Thanks again for the help.
    Joe

  • Help! RDBMSCodeGenerator creates syntax errors!

    We have recompiled our Weblogic 8.1 product on Weblogic 9.2, and while re-deploying
    our EJBs one of our CMP beans curiously and unusually failed to deploy. The failure to deploy
    stems from syntax errors generated by RDBMSCodeGenerator!
    When we turn off use-select-for-update, the offending code is no longer
    generated and the EJB deploys, but we need and depend on this feature being enabled, so simply
    leaving this off is not a viable solution.
    Here's the header, so you know I'm not hallucinating.
    * This code was automatically generated at 10:43:37 AM on May 30, 2007
    * by weblogic.ejb.container.cmp.rdbms.codegen.RDBMSCodeGenerator -- do not edit.
    * @version WebLogic Server 9.2 MP1  Sun Jan 7 00:56:31 EST 2007 883308
    * @author Copyright (c) 2007 by BEA Systems, Inc. All Rights Reserved.
    */The offending code occurs in nine separate methods, all in the same line of code: an if statement.
    The if statement has two opening parentheses, and three closing parentheses!!
    if (!__WL_pkMap.containsKey(__WL_pk))) {(One such broken method is at the bottom of this post.)
    The seventh instance of this syntax error contains a second syntax error. It appears
    that the code generator corrupted the variable name as well:
    if (!WL_pkMap.containsKey(__WL_pk))) {(The two underscores at the beginning of the variable are missing.)
    Now, when use-select-for-update is removed, the compiler generates a slightly different if clause,
    but with no syntax errors. The __WL_pkMap variable is also written correctly.
    Has anyone encountered this? Can anyone surmise what might be going on??
    I think this might need to be posted as a bug. What do you think?
    Torin...
    Attached: One offending method (of nine) with the error highlighted and underscored is (about two-thirds of the way down):
    public java.util.Collection ejbFindByReturnValue(java.lang.String param0) throws javax.ejb.FinderException
        if(__WL_debugLogger.isDebugEnabled()) {
          __WL_debug("called findByReturnValue");
        java.sql.Connection __WL_con = null;
        java.sql.PreparedStatement __WL_stmt = null;
        java.sql.ResultSet __WL_rs = null;
        int __WL_offset = 0;
        __WL_pm.flushModifiedBeans();
        int updateLockType = __WL_pm.getUpdateLockType();
        java.lang.String __WL_query = null;
        switch(updateLockType) {
          case DDConstants.UPDATE_LOCK_AS_GENERATED:
          __WL_query = "SELECT  WL0.JOB_ID, WL0.COMPONENT_ID, WL0.HOSTNAME, WL0.LAST_EVENT, WL0.MESSAGE, WL0.PARAMETER, WL0.PARENT_JOB_ID, WL0.PID, WL0.PROGRESS, WL0.RETURN_VALUE, WL0.STATUS  FROM JOB_QUEUE WL0 WHERE ( WL0.RETURN_VALUE = ? ) FOR UPDATE ";
          break;
          case DDConstants.UPDATE_LOCK_TX_LEVEL:
          __WL_query = "SELECT  WL0.JOB_ID, WL0.COMPONENT_ID, WL0.HOSTNAME, WL0.LAST_EVENT, WL0.MESSAGE, WL0.PARAMETER, WL0.PARENT_JOB_ID, WL0.PID, WL0.PROGRESS, WL0.RETURN_VALUE, WL0.STATUS  FROM JOB_QUEUE WL0 WHERE ( WL0.RETURN_VALUE = ? ) FOR UPDATE ";
          break;
          case DDConstants.UPDATE_LOCK_TX_LEVEL_NO_WAIT:
          __WL_query = "SELECT  WL0.JOB_ID, WL0.COMPONENT_ID, WL0.HOSTNAME, WL0.LAST_EVENT, WL0.MESSAGE, WL0.PARAMETER, WL0.PARENT_JOB_ID, WL0.PID, WL0.PROGRESS, WL0.RETURN_VALUE, WL0.STATUS  FROM JOB_QUEUE WL0 WHERE ( WL0.RETURN_VALUE = ? ) FOR UPDATE NOWAIT ";
          break;
          case DDConstants.UPDATE_LOCK_NONE:
          __WL_query = "SELECT DISTINCT WL0.JOB_ID, WL0.COMPONENT_ID, WL0.HOSTNAME, WL0.LAST_EVENT, WL0.MESSAGE, WL0.PARAMETER, WL0.PARENT_JOB_ID, WL0.PID, WL0.PROGRESS, WL0.RETURN_VALUE, WL0.STATUS  FROM JOB_QUEUE WL0 WHERE ( WL0.RETURN_VALUE = ? )";
          break;
          default:
          throw new AssertionError(
          "Unknown update lock type: '"+updateLockType+"'");
        if(__WL_debugLogger.isDebugEnabled()) {
          __WL_debug("Finder produced statement string " + __WL_query);
        try {
          __WL_con = __WL_pm.getConnection();
        catch (java.lang.Exception e) {
          __WL_pm.releaseResources(__WL_con, __WL_stmt, __WL_rs);
          throw new javax.ejb.FinderException("Couldn't get connection: " + EOL +
          e.toString() + EOL +
          RDBMSUtils.throwable2StackTrace(e));
        try {
          __WL_stmt = __WL_con.prepareStatement(__WL_query);
          // preparedStatementParamIndex reset.
          if (param0 == null) {
            __WL_stmt.setNull(1,java.sql.Types.VARCHAR);
          } else {
            __WL_stmt.setString(1, param0);
            if (__WL_debugLogger.isDebugEnabled()) {
              __WL_debug("paramIdx :"+1+" binded with value :"+param0);
          __WL_rs = __WL_stmt.executeQuery();
        catch (java.lang.Exception e) {
          __WL_pm.releaseResources(__WL_con, __WL_stmt, __WL_rs);
          throw new javax.ejb.FinderException(
          "Exception in findByReturnValue while preparing or executing " +
          "query: '" +
          __WL_query + "': " + EOL +
          "statement: '" + __WL_stmt + "'" + EOL +
          e.toString() + EOL +
          RDBMSUtils.throwable2StackTrace(e));
        try {
          java.util.Collection __WL_collection = new java.util.ArrayList();
          com.quickplay.mmp.ingestionservices.ejb.JobQueue_r6lr5u__WebLogic_CMP_RDBMS __WL_bean = null;
          Object __WL_eo = null;
          Object __WL_eo_rc = null;
          Map __WL_pkMap = new HashMap();
          while (__WL_rs.next()) {
            Integer __WL_offsetIntObj = new Integer(0);
            Object __WL_pk = __WL_getPKFromRS(__WL_rs, __WL_offsetIntObj, __WL_classLoader);
            __WL_eo = null;
            if (__WL_pk != null) {
              if (!__WL_pkMap.containsKey(__WL_pk))) {
                RSInfo __WL_rsInfo = new RSInfoImpl(__WL_rs, 0, 0, __WL_pk);
                __WL_bean = (com.quickplay.mmp.ingestionservices.ejb.JobQueue_r6lr5u__WebLogic_CMP_RDBMS)__WL_pm.getBeanFromRS(__WL_pk, __WL_rsInfo);
                __WL_eo = __WL_pm.finderGetEoFromBeanOrPk(__WL_bean, __WL_pk, __WL_getIsLocal());
                if (__WL_debugLogger.isDebugEnabled()) __WL_debug("bean after finder load: " + ((__WL_bean == null) ? "null" : __WL_bean.hashCode()));
                if( __WL_bean == null || ( __WL_bean != null && !__WL_bean.__WL_getIsRemoved()))
                  __WL_collection.add(__WL_eo);
                Object __WL_retVal = __WL_pkMap.put(__WL_pk, __WL_bean);
            } else {
              if (__WL_pm.isFindersReturnNulls()) {
                __WL_collection.add(null);
          return __WL_collection;
        } catch (java.sql.SQLException sqle) {
          throw new javax.ejb.FinderException(
          "Exception in 'findByReturnValue' while using " +
          "result set: '" + __WL_rs + "'" + EOL +
          sqle.toString() + EOL +
          RDBMSUtils.throwable2StackTrace(sqle));
        } catch (java.lang.Exception e) {
          throw new javax.ejb.FinderException(
          "Exception executing finder 'findByReturnValue': " + EOL +
          e.toString() + EOL +
          RDBMSUtils.throwable2StackTrace(e));
        } finally {
          __WL_pm.releaseResources(__WL_con, __WL_stmt, __WL_rs);
      }

    Dreamweaver will not produce such a mess when using column names which comply with the MySQL Naming Conventions and don´t contain (often quite problematic) hyphen characters.
    That said, you´ll be on the safe side when renaming your columns by using underscores instead, example:
    about_p3_img
    Several other web developers have told me that they entirely abandoned DW CS* series and moved on to other IDE's rather than try to fix the problem.
    Dreamweaver is certainly not a "perfect" PHP development IDE, but other IDEs (I use Komodo or Aptana at times and like them a lot...) aren´t perfect either. This may seem strange, but IMO Dreamweaver did do the - sort of - right thing by not letting the user get away with using such problematic characters, and that´s what those other IDEs I work with regretfully don´t pay attention to.

  • Numbers, Formel-Editor division creates syntax-error

    Good morning everyone. Am sorry, but I face a problem in Numbers that is beyond my ability to grasp: Using Number ´08 Version 1.0.3 I created a rather vast Datasheet from A1 to BU368 The data in this sheet is derived from aprox fourty different sheets. The data is numeric.
    Now I would like create the simple formula eg.: Q362/P362. Using the Formula-edtior and doing the up to now always working procedure: Open Formula-editor, clicking Q363 then adding a / then clicking P362 creates an "Syntax error"
    If I do the same by manually writing: Q362/P362 into the formula-editor, it works. Until I have the idea to chage the format of the collum from "automatic" to "numbers" then the formula has a syntaxerror as well.
    Now, what is the difference between the two formulas below? I can´t find any.
    and:
    The latter one works.
    Please help me, I should have handed in this sheet by today and there is quite some money involved for me.
    Warm greetings
    William

    William,
    I don't have Numbers '08, so the version I have may behave differently, but I have a few observations that may be useful to you or another helper.
    Your procedure does seem correct and should work.
    The formula editor would be much easier to read if you turned off the preference to  “Use header cell names as references.”
    The example with the syntax error does not highlight anything, so it isn't seeing any cell references (which it should if you entered them by clicking the cells). It is just trying to divide two strings.
    There are single quotes and spaces in both the working and non-working examples that I don't see the reason for. Maybe it's a localization thing.
    Since you are on a deadline, wouldn't it work to copy the working formula and paste it into the cell with the non-working one?
    Jeff

  • PreparedStatment creating Syntax Error.

    The poblem is in the first prepared statment if I enter the value straight into the statement string everying works fine. However, when I use a ? for placeholder and then supply the same sting value i would have entered in the statement string I get a sytax error.
    import java.sql.*; import javax.swing.*; import java.awt.BorderLayout; import java.awt.event.*; public class Exercise34_5 extends JFrame { private JTextField jtfInput = new JTextField(10); private JButton jbShowTable = new JButton("Show Table"); private JTextArea jta = new JTextArea(); private PreparedStatement pstmt1; private PreparedStatement pstmt2; private PreparedStatement pstmt3; public Exercise34_5() { JPanel northPanel = new JPanel(); northPanel.add(new JLabel("Table Name")); northPanel.add(jtfInput); northPanel.add(jbShowTable); add(northPanel, BorderLayout.NORTH); add(new JScrollPane(jta)); try { Class.forName("com.mysql.jdbc.Driver"); Connection connection = DriverManager.getConnection("jdbc:mysql://localhost/test" , "root", "root"); pstmt1 = connection.prepareStatement("describe ?"); pstmt2 = connection.prepareStatement("select count(*) from enrollment"); pstmt3 = connection.prepareStatement("select * from enrollment"); }catch(Exception ex) { ex.printStackTrace(); } jbShowTable.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String table = jtfInput.getText(); try{ pstmt1.setString(1, "enrollment"); /*pstmt2.setString(1, "enrollment"); pstmt3.setString(1, "enrollment");*/ ResultSet rset1 = pstmt1.executeQuery(); ResultSet rset3 = pstmt3.executeQuery(); int count = 0; while(rset1.next()) { jta.append(rset1.getString(1) + "\t"); count++; } jta.append("\n"); System.out.println(count); while(rset3.next()) { for(int i = 1; i <= count; i++) { jta.append(rset3.getString(i) + "\t"); } jta.append("\n"); } }catch(Exception ex) { ex.printStackTrace(); } } }); } public static void main(String[] args) { Exercise34_5 frame = new Exercise34_5(); frame.setSize(400, 200); frame.setLocationRelativeTo(null); frame.setDefaultCloseOperation(EXIT_ON_CLOSE); frame.setVisible(true); } }
    java.sql.SQLException: Syntax error or access violation message from server: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''enrollment'' at line 1"
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1997)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1167)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1278)
    at com.mysql.jdbc.Connection.execSQL(Connection.java:2251)
    at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1586)
    at Exercise34_5$1.actionPerformed(Exercise34_5.java:47)

    Alyosha wrote:
    I don't understand.You can't just put a ? parameter any old place in a prepared statement. It's just just a simple string substitution. For instance, you cannot use a ? parameter for a table name or a column name.
    // wrong
    ps = conn.prepareStatement("select * from ? where ? = ?");
    ps.setString(1, tableName);
    ps.setString(2, columnName);
    ps.setString(3, columnValue);
    // right
    ps = conn.prepareStatement("select * from " + tableName = " where " + columnName + " = ?");
    ps.setString(1, columnValue);

  • Help cannot get dreamweaver cs4 to re install error 1603

    My dreamweaver suddenly stopped working one day when I turned my computer on so I reinstalled it and got error 1603 tried all the things suggested in the Adobe files and from adaobe support. ran cs4 clean script anybody any ideas?

    Yes I will give them a call
    It came up with the licence for me to agree too ( which was strange ) when I opened it and when I agreed it just stopped - tried a few times rebooted my computer so thought I would re install it. I have been communicating  by email with the support guys but they keep telling me to do the same thing- look at the link you have given me.
    Thanks for your help
    Margo

  • Problem insert media flv dreamweaver cs4 cs5

    Hello
    im creating website and something happen and now when i inset media FLV it doesn't. it shows many buttons like 4 play buttons, 4 pause buttons.

    Hi
    I'm writing because exactly the same thing happened to me on my G5 PowerMac in DW CS4. I've read a few other threads where Adobe haven't managed to solve the problem yet have somehow managed to close the threads. Is this; trying to brush the problem under the carpet a bit?
    Anyhow, just before the same issue happened to me, I got an error message that when it came up I thought to take a snapshot of it which I enclose below. Additionally I had downloaded a newer copy of iTunes and also VLC softwares just prior to this annoying problem starting.
    In the past, I was advised by Adobe to put the plist prefs in the bin, then not actually empty the bin but make a new installation so these would get re-made and possibly cause problems to get fixed. So far I haven't done this yet but have made a new installtion of DW CS4 but this problem still exists.
    So my message is to any senior Adobe DW specialist reading this;  Can you fix this?  Do you know what is causing it to happen? How best to make a complete installation of DW so that we can get this glitch fixed please? Should we delete the prefs as well?
    My FLV file was made in Squeeze software by the way, but has the icon from VLC as I like to open up the FLVs in this software.
    Best regards
    Paul

  • Implements php function in dreamweaver cs4 / cs5

    Hi,
    I made a framwork for my company that develops using php.
    It would be nice to not always having to explain the use of functions, implement dreamweaver, possibly through an extension, the intellisense for these functions.
    for example when using the shell function require me indicates that the function accepts a string. in the case of mysql_connect are advised to enter the host name etc..
    It would be very important to implement something like this for my functions
    is it possible?

    thanks for the reply.
    I analyzed the file codeHints on php but I can not get what I want. I am doing tests on cs5 version.
    I inserted the following code in the file
    [Code]
    <Function pattern = "today (string $eng)" doctypes = "PHP_MySQL" displayrestriction = "PHP_Script" icon = "shared / mm / images / hintFunction.png" casesensitive = "true" MMString: source = "php / CORE" description = "@ # php_CORE3.xml mysql_connect" />
    [/ Code]
    in new php file i put
    function today($a).......
    when i type today(...
    the intellisense show me $a not 'string $eng'....
    the problem may be caused by
    MMString: source = "php / CORE" description = "@ # php_CORE3.xml mysql_connect"
    I do not think because from what I understand this is the explanation of function and not the intellisense
    thanks a lot in anycase
    Ciro Marotta

  • Using DreamWeaver CS4 to create a program?!?!

    Hi everyone,
    Hopefully someone here can help me out. I was told I could use DreamWeaver to create a program or assemble a program from a .xml file and some resource files. The .xml file looks like instructions that thell the resource files what to do to create a program or a program-like web application. But I have no idea how to use dreamweaver in this mannar. Does anyone have any idea why someone would send me a .xml file and 3 reasource files and say DreamWeaver can put them togther somehow to create a program? Thank you for your time...

    Is this the same question as that posted in an earlier thread?
    http://forums.adobe.com/thread/800019

  • My Dreamweaver CS4 won't load - error code 148:3

    Any idea how to fix?   Just started.  Never had a problem with it before.

    The only solution so far that really works is as per this document:
    <http://helpx.adobe.com/creative-suite/kb/error-licensing-stopped-windows.html>
    It seems these old products had lots of these problems;  Perhaps activation technology was still in its infancy at that time.

  • Dreamweaver claiming non-existent php syntax errors temporarily

    Dreamweaver occasionally tells me I have php errors that do not exist. In order to get dreamweaver to recognize the error, I have to save the document and then go to another document, and then go back to my current document, and then dreamweaver will recognize that there are no syntax errors. It's very annoying, because it frequently results in my tearing out my hair looking for an error that does not exist. Is there anyway to force dreamweaver to check for syntax errors more frequently, or some other workaround?

    You are not giving away any of your secrets, so I shall tell you mine:
    Windows7, DWCS5.5, Testing server setup for PHP MySQL
    The above allows me to create new documents that automatically have the PHP extension assigned to the. As soon as I type <?php I get an error message until I have also entered ?>
    Gramps

  • How can I create a photo album on Dreamweaver CS4?

    How can I create a photo album on Dreamweaver CS4? The button that is supposed to do this (Commands>create photo album) is disabled.

    Hi Nancy, Thank you for your help.   Do you have any idea why the button that creates photo albums in my version of Dreamweaver CS4 is disabled?
    Thank you,  Date: Sat, 19 Jan 2013 12:29:48 -0700
    From: [email protected]
    To: [email protected]
    Subject: How can I create a photo album on Dreamweaver CS4?
        Re: How can I create a photo album on Dreamweaver CS4?
        created by Nancy O. in Dreamweaver General - View the full discussion
    DW is web authoring software.  It's not a photo gallery creation tool. You can build your own own web gallery with HTML or PHP, CSS & JavaScript.  http://alt-web.com/GALLERY/Gallery.php Or you can use commercial products to help you. Project Seven's Image Gallery Magic 2:http://www.projectseven.com/products/galleries/igm2/index.htm jAlbumhttp://jalbum.net/  Nancy O.
         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/5007136#5007136
         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/5007136#5007136
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5007136#5007136. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver General by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

Maybe you are looking for

  • Text shifting on imposed PDF; distill vs export

    Hi experts. Please help me solve a mystery! Mac OS 10.7, InDesign CS5 7.0.4 Here's the problem: I export a PDF (using modified version of the built-in X-1a PDF export preset to include bleed and crop marks) Fonts are embedded, no problems when prefli

  • How to make the logs captured for Z fields in ME21N/ ME22N

    Hi I have  devloped new tab(Screen) and added Z field in the PO header (ME21N) as per my requirement. But whenever I do changes to the perticular Z field, logs are not captured (ME21N->ENVIRONMENT-->HEADERLOG). How to make the logs captured for Z fie

  • Re:Payement block

    Is there any special configuration for block the payment

  • Crystal Reports and SAP BW 7

    Hi, I have been reading these posts and got bit confused. What do I need to integrate Crystal Reports and SAP BW 7 without BOE. My company has SAP NW license and Crystal Reports Enterprise license and plan to use CR for formatted reporting. Do I stil

  • Insert word count

    Is there a way to insert word count? I have some professors that want a word count and I wanted to know if there was an "insert word count" somewhere?