ERROR 1064 (42000): You have an error in your SQL syntax;

Folks,
I stucked here while granting the permissions.
could you please throw any ideas why this...
mysql> GRANT SELECT, INSERT, DELETE ON database TO prod@localhost IDENTIFIED BY
'Welcome1'
-> FLUSH PRIVILEGES;
ERROR 1064 (42000): 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 'datab
ase TO prod@localhost IDENTIFIED BY 'Welcome1'
FLUSH PRIVILEGES' at line 1
mysql> \q

wrong forum mate ! need to post in SQL forums

Similar Messages

  • Error when making connection:  You have an error in your SQL syntax;

    I'm getting this error when trying to make a simple Database Connection:
    SQLException: 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 '????????????????????????????????' at line 1
    SQLState: 42000
    VendorError: 1064
    I tried a different driver and got the same error with more "?"s in the "use near....." part.
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class DBTest{         public static void main(String[] args){                 try{                         Class.forName("com.mysql.jdbc.Driver").newInstance();                 } catch(Exception e){                         System.out.println(e);                         System.exit(0);                 }                 Connection conn = null;                 try {                         conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/testDB?" + "user=root&password=password");                         conn.close();                 } catch (SQLException ex) {                         // handle any errors                         System.out.println("SQLException: " + ex.getMessage());                         System.out.println("SQLState: " + ex.getSQLState());                         System.out.println("VendorError: " + ex.getErrorCode());                 }         } }
    MySQL Server Version:
    Server version: 5.0.67-0ubuntu6 (Ubuntu)

    cotton.m wrote:
    c0c0 wrote:
    I've tried Drivers 5.1 , 5.0 and 3.1 now and I get the same problem every time. I've tried switching databases, users, etc but always get this same error:
    java.sql.SQLException: 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 '????????????????' at line 1
    I have the latest version of mysql from the Ubuntu repositories. Do I have to configure that a certain way? It isn't the URL which I supply that it does not like because I've tried multiple URLs and they all give me the same error when I supply the correct information.
    Any help is greatly appreciated.This is.. very odd.
    I have to ask are you really, really sure that your code is just as you posted? Are you sure you aren't running a query of some sort? My guess at this point would be some sort of rather bizarre encoding issue. I'm sorry but I can't reproduce your behaviour, I am connecting to different MySQL instances with no problem from Ubuntu..
    Yes the code is exactly the same as what I posted (except hiding actual usernames and passwords)
    I've even tried to connect to a remote mysql server and get the same behavior (If I type in the wrong database it alerts me there is no db of that name, if I lg in with the wrong password it alerts me cant login ____ @ ______, when I have all the correct information I get that same old error) , I'm somewhat convinced it's my driver now. I thought at first it was the way I had mysql configured but now I think it's my driver or the way I have everything installed. I simply put the driver location in the classpath and do the command:
    export set CLASSPATH=/usr/share/tomcat5.5-webapps/ROOT/lib/mysql-connector-java-5.1.7-bin.jar
    Was this the wrong way to go about doing it? I'm not currently running tomcat I simply put it there because a book said that's where it should go for tomcat, but I wanted to first try this not running tomcat with just a simple normal Java example.

  • Hi guys, I have a problem with my new macbook pro 15". I tried to updtate the apps (iPhoto, iMovie and Garageband), but an error was displayed "You have updates available for other accounts". I don't have other accounts!!! :(

    Hi guys,
    I have a problem, I have a new macbook pro. I updated the software without problems; then I tried to update iPhoto, iMovie and Garageband, but an error was displayed "You have updates available for other accounts". I don't have any other account, i tried everything found on the net but nothing seems to work...Please help me!!!!

    Same thing for me it writes "To update this application, sign in to the account you used to purchase it."

  • When opening the latest version of Iphoto an error message appears that says; You can't open your current iphoto library using this version of Iphoto. You have made changes to your photo library using a newer version of iphoto. Please quit and use the lat

    When opening the version of Iphoto i have an error message appears that says; You can't open your current iphoto library using this version of Iphoto. You have made changes to your photo library using a newer version of iphoto. Please quit and use the latest version of iphoto. What? If I can't open the current library using the latest version of iphoto, and I am asked to make changes the the newest version!!! I'm asked to run in circles chasing my tail...I had a new hard drive installed about 6 weeks ago. I am running MAC OS 10.5.8

    What version of iPhoto do you have? If you're on 10.5 then you're not running the latest iPhoto
    Any chance that the library was opened with another version?
    Simplest solution will be to just restore from your back up.

  • When trying to sign into facebook in settings for ios6, I get an error that says "You cannot sign in from your iPhone since you have opted out of Facebook Platform." What gives?

    When trying to sign into facebook in settings for ios6, I get an error that says "You cannot sign in from your iPhone since you have opted out of Facebook Platform." What gives?
    More info: I've combed through the settings in facebook and there is nothing that shows I'm blocking anything from accessing it.

    Sure sounds like a Facebook setting. When you look at your Privacy Settings in Facebook (on facebook.com), you should see something under "Apps you use" that says
    Turn off your ability to use apps, plugins, and websites on and off Facebook. After you turn this off, we will not store information about you when you use apps or websites off Facebook.
    The "Turn off" is a hyperlink that shuts down the Facebook platform. If you don't see this, or if the wording is different, you may have (inadvertently?) shut this off, and should be able to turn it back on.
    Edit: The sequence to that screen on facebook.com is: Privacy Settings (from the upper right dropdown), then "Ads, Apps and Websites" will have an "Edit settings" link to the right. This is where you'll see the "Apps you use" screen.

  • Opening iphoto I get an error message that says "you can't open your current photo library using this version of iphoto.  You have made changes to your photo library using a newer version of iphoto.  Please quit and use the latest version of iphoto.

    Opening iphoto I get an error message that says "you can't open your current photo library using this version of iphoto.  You have made changes to your photo library using a newer version of iphoto.  Please quit and use the latest version of iphoto."  I wouldn't have a clue as to how to change to a new version of iphoto even if I wanted to. 

    If you don't have a backup you can resort to give this a try:
    Starting over from scratch with new library
    Start over with a new library and import the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from your original library as follows:
    1. Open the library package like this.
    2. Launch iPhoto with the Option key held down and, when asked, select the option to create a new library.
    3. Drag the subfolders of the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from the open iPhoto Library package into the open iPhoto window a few at a time.
    This will create a new library with the same Events (but not necessarily the same Event names) as the original library but will not keep the metadata, albums, books slideshows and other projects.
    Note:  your current library will be left untouched for further attempts at a fix if so desired.
    OT

  • Mail error "Verify that you have addressed this message correctly. Check your SMTP server settings in Mail preferences and verify any advanced settings with your system administrator.Select a different outgoing mail server from the list"

    The Mail application has suddenly started giving error:
    "Verify that you have addressed this message correctly. Check your SMTP server settings in Mail preferences and verify any advanced settings with your system administrator.Select a different outgoing mail server from the list"
    It was working fine till yesterday, suddenly it stopped. I have 3 email accounts configured here, 2 are on exchange servers and one yahoo. Connection verification works and shows all servers as green.
    Any inputs?

    I had 3 accounts, 2 ms exchange accounts and 1 yahoo. After removal of yahoo, everything is back to normal.
    Regards
    Rohit

  • You have an error in your SQL syntax;

    i have a checkout page that i am trying to send to a payment centre but and getting the following error
    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 '16)' at line 1
    can someone help and tell me what this means does it mean "conflict with columns definitions"
    if so what can i do to solve the issue? do you need to see the page code?
    thanks

    <?php require_once('Connections/wibbles.php'); ?>
    <?php
    // do not cache
    header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");                      // Date in the past
    header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
    header ("Cache-Control: no-cache, must-revalidate");                    // /1.1
    header ("Pragma: no-cache");                                            // /1.0
    // *** Restrict Access To Page: Grant or deny access to this page
    $FX_authorizedUsers=" ";
    $FX_authFailedURL="login.php";
    $FX_grantAccess=0;
    if (!session_id()) session_start();
    if (isset($_SESSION["MM_Username"])) {
      if (true || !(isset($_SESSION["MM_UserAuthorization"])) || $_SESSION["MM_UserAuthorization"]=="" || strpos($FX_authorizedUsers, $_SESSION["MM_UserAuthorization"])) {
        $FX_grantAccess = 1;
    if (!$FX_grantAccess) {
      $FX_qsChar = "?";
      if (strpos($FX_authFailedURL, "?")) $FX_qsChar = "&";
      $FX_referrer = "Restricted Area";
      $FX_authFailedURL = $FX_authFailedURL . $FX_qsChar . "accessdenied=" . urlencode($FX_referrer);
      header("Location: $FX_authFailedURL");
      exit;
    // *** Retrieve X ID ***
    if (!session_id()) session_start();
    $XC_OrderIdSessionVar = "OrderID";
    if (!isset($_SESSION[$XC_OrderIdSessionVar])) {
      // Get a unique OrderID number and save to session.
      $XC_tableName = "wibble_nextorder";
      $XC_fieldName = "NextOrderID";
      mysql_select_db($database_wibbles, $wibbles);
      $XC_IdSource = "select " . $XC_fieldName . " from " .  $XC_tableName;
      $XC_rsId = mysql_query($XC_IdSource, $wibbles) or die(mysql_error());
      $row_XC_rsId = mysql_fetch_assoc($XC_rsId);
      $_SESSION[$XC_OrderIdSessionVar] = $row_XC_rsId[$XC_fieldName];
      $$XC_OrderIdSessionVar = $_SESSION[$XC_OrderIdSessionVar];
      session_register($XC_OrderIdSessionVar);
      $XC_next = $_SESSION[$XC_OrderIdSessionVar] + 1;
      $XC_upd = "update " . $XC_tableName . " set " . $XC_fieldName . " = " . $XC_next;
      $XC_rsId = mysql_query($XC_upd, $wibbles) or die(mysql_error());
      $XC_rsId = null;
    // x limit validation
    if (isset($_POST["XC_Limit"]) && $_POST["XC_Limit"] != "") {
      $XC_limErr = stripslashes($_POST["XC_Limit"]);
      if (isset($_GET['XC_SaveCartToTable'])) unset($_GET['XC_SaveCartToTable']);
      unset($HTTP_POST_VARS);
      unset($_POST);
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    // x limit validation
    if (isset($_POST["XC_Limit"]) && $_POST["XC_Limit"] != "") {
      $XC_limErr = stripslashes($_POST["XC_Limit"]);
      if (isset($_GET['XC_SaveCartToTable'])) unset($_GET['XC_SaveCartToTable']);
      unset($_POST);
      unset($_POST);
    // Validate X amount
    if (isset($_POST["XC_Amount"]) && $_POST["XC_Amount"] < 10) {
        if (isset($_GET['XC_SaveCartToTable'])) unset($_GET['XC_SaveCartToTable']);
        unset($_POST);
        unset($_POST);
        $XC_amErr = "The amount doesn't reach the allowed minimum of &euro; 100.";
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO wibble_orders (OrderID, CustomerID, OrderDate, Shipping, Discount, Tax, Total) VALUES (%s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['OrderID'], "int"),
                           GetSQLValueString($_POST['CustomerID'], "int"),
                           GetSQLValueString($_POST['OrderDate'], "date"),
                           GetSQLValueString($_POST['Shipping'], "double"),
                           GetSQLValueString($_POST['Discount'], "double"),
                           GetSQLValueString($_POST['Tax'], "double"),
                           GetSQLValueString($_POST['XC_Amount'], "double"));
      mysql_select_db($database_wibbles, $wibbles);
      $Result1 = mysql_query($insertSQL, $wibbles) or die(mysql_error());
    // *** X Shopping Cart ***
    $useSessions = true;
    $XCName = "wibbleJakeCart";
    $XCTimeout = 30;
    $XC_ColNames=array("ProductID","Quantity","Name","Color","Price","MinQty","Discount","Stoc k","Total");
    $XC_ComputedCols=array("","","","","","","","","Price");
    require_once('XCInc/XCart.inc');
    $colname_rsCustomer = "1";
    if (isset($_SESSION['MM_UserAuthorization'])) {
      $colname_rsCustomer = $_SESSION['MM_UserAuthorization'];
    mysql_select_db($database_wibbles, $wibbles);
    $query_rsCustomer = sprintf("SELECT * FROM wibble_customers WHERE CustomerID = %s", GetSQLValueString($colname_rsCustomer, "int"));
    $rsCustomer = mysql_query($query_rsCustomer, $wibbles) or die(mysql_error());
    $row_rsCustomer = mysql_fetch_assoc($rsCustomer);
    $totalRows_rsCustomer = mysql_num_rows($rsCustomer);
    // *** Redirect if XCart is Empty ***
    $XC_RedirectIfEmpty = "shopping-cart.php";
    if (isset($_SERVER["QUERY_STRING"])) {
      $XC_RedirectIfEmpty .= "?" . htmlentities($_SERVER["QUERY_STRING"]);
    if (isset(${$XCName}["contents"]) && (sizeof(${$XCName}["contents"][0]) == 0)) header("Location: " . $XC_RedirectIfEmpty);
    // *** Repeat XCart region *** (do not remove this label)
    // validate x limit
    $XC_invalidItems = "";
    $XC_lim = "";
    $iCol = array_search("Quantity",${$XCName}["ColNames"]);
    $iSrc = array_search("Stock",${$XCName}["ColNames"]);
    for ($iVal=0; $iVal<sizeof(${$XCName}["contents"][0]); $iVal++) {
      if (${$XCName}["contents"][$iCol][$iVal] > ${$XCName}["contents"][$iSrc][$iVal]) {
        if ($XC_invalidItems != "") $XC_invalidItems .= "-";
        $XC_invalidItems .= (string) ($iVal+1);
        if ($XC_lim != "") $XC_lim .= "-";
        $XC_lim .= (string) ${$XCName}["contents"][$iSrc][$iVal];
    if ($XC_invalidItems != "") {
      $XC_invalidItems = "(".$XC_invalidItems.")";
      $XC_lim = "(".$XC_lim.")";
      $x_limErr = "The item(s) $XC_invalidItems exceed the available stock of $XC_lim";
    // *** Add shipping based on Range
    mysql_select_db($database_wibbles, $wibbles);
    $XC_sourceVal = $XCart_sumTotal;
    $XC_ShipSource = "SELECT Shipping FROM wibble_shipbyprice WHERE MinPurchase < " . $XC_sourceVal . " AND MaxPurchase >= " . $XC_sourceVal;
    $XC_rsShip = mysql_query($XC_ShipSource, $wibbles) or die(mysql_error());
    $row_XC_rsShip = mysql_fetch_assoc($XC_rsShip);
    $XC_Shipping = $row_XC_rsShip['Shipping'];
    $XC_rsShip = null;
    // *** Add Referenced Sales Tax
    mysql_select_db($database_wibbles, $wibbles);
    $XC_taxSource = "SELECT Tax FROM wibble_tax WHERE Country = '" . $row_rsCustomer['Country'] . "'";
    $XC_rsTax = mysql_query($XC_taxSource, $wibbles) or die(mysql_error());
    $row_XC_rsTax = mysql_fetch_assoc($XC_rsTax);
    $XC_Tax = $row_XC_rsTax['Tax'];
    $XC_rsTax = null;
    $XC_SalesTax = $XC_Tax*($XCart_sumTotal+$XC_Shipping-$XC_Discount);
    // *** Compute Grand Total
    $XC_GranTotal = $XCart_sumTotal+$XC_SalesTax+$XC_Shipping-$XC_Discount;
    // *** Format table as Europe style
    if (!session_id()) session_start();
    // set header 
    $XC_header = "<style type=\"text/css\">\n<!--\n";
    $XC_header .= "table {font-family: Arial, Helvetica, sans-serif; font-size: 13px;}\n";
    $XC_header .= "-->\n</style>\n";
    $XC_header .= "<table width=\"520\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
    $XC_header .= "  <tr>\n    <td>\n";
    $XC_header .= "<table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"2\">\n";
    $XC_header .= "  <tr>\n    <td> </td>\n    <td align=\"right\"> </td>\n  </tr>\n";
    $XC_header .= "  <tr>\n    <td>Order n. <b>" . $_SESSION["OrderID"] . "</b></td>\n    <td align=\"right\"> " . date("d/m/Y") . "</td>\n  </tr>\n";
    $XC_header .= "  <tr>\n    <td> </td>\n    <td> </td>\n  </tr>\n";
    $XC_header .= "  <tr>\n    <td colspan=\"2\" align=\"Left\">";
    $XC_header .= $row_rsCustomer["FirstName"] . " ";
    $XC_header .= $row_rsCustomer["LastName"] . " <br>";
    $XC_header .= $row_rsCustomer["Address"] . " <br>";
    $XC_header .= $row_rsCustomer["ZIP"] . " ";
    $XC_header .= $row_rsCustomer["City"] . " ";
    $XC_header .= $row_rsCustomer["State"] . " <br>";
    $XC_header .= $row_rsCustomer["Country"] . " <br>";
    $XC_header .= "</td>\n  </tr>\n</table>\n";
    $XC_header .= "<table border=\"0\" cellspacing=\"2\" cellpadding=\"2\">\n";
    $XC_header .= "  <tr>\n    <td colspan=\"5\"> </td>\n  </tr>\n";
    $XC_header .= "  <tr>\n    <td colspan=\"5\">Cart contents: </td>\n  </tr>\n";
    // set cart data 
    $XCartData = "  <tr>\n";
    $XCartData .= "    <th width=\"30\" bgcolor=\"#CC6600\"><font color=\"white\">Qty</font></th>\n";
    $XCartData .= "    <th width=\"310\" bgcolor=\"#CC6600\"><font color=\"white\">Description</font></th>\n";
    $XCartData .= "    <th width=\"60\" bgcolor=\"#CC6600\"><font color=\"white\">Price</font></th>\n";
    $XCartData .= "    <th width=\"40\" bgcolor=\"#CC6600\"><font color=\"white\">Disc</font></th>\n";
    $XCartData .= "    <th width=\"80\" bgcolor=\"#CC6600\"><font color=\"white\">Total</font></th>\n";
    $XCartData .= "  </tr>\n";
    for ($jRow=0; $jRow<sizeof(${$XCName}["contents"][0]); $jRow++) {
      require('XCInc/RepeatXMailRegion.inc');
      $XCartData .= "  <tr>\n";
      $XCartData .= "    <td align=\"Center\" bgcolor=\"#FFFF99\">" . ${$XCName}["contents"][1][$jRow] . "</td>\n";
      $XCartData .= "    <td align=\"Left\" bgcolor=\"#FFFF99\">" . ${$XCName}["contents"][2][$jRow] . "</td>\n";
      $XCartData .= "    <td align=\"Right\" bgcolor=\"#FFFF99\">&euro; " . number_format(${$XCName}["contents"][4][$jRow], 2, ',', '.') . "</td>\n";
      $XCartData .= "    <td align=\"Center\" bgcolor=\"#FFFF99\">" . ${$XCName}["contents"][6][$jRow] . "</td>\n";
      $XCartData .= "    <td align=\"Right\" bgcolor=\"#FFFF99\">&euro; " . number_format(${$XCName}["contents"][8][$jRow], 2, ',', '.') . "</td>\n";
      $XCartData .= "  </tr>\n";
    // set footer
    $XC_footer = "  <tr>\n    <td colspan=\"4\" align=\"right\"><b> SubTotal </b></td>\n    <td align=\"right\" bgcolor=\"#FFFF99\"><b> &euro; " . number_format($XCart_sumTotal, 2, ',', '.') . "</b></td>\n  </tr>\n";
    $XC_footer .= "  <tr>\n    <td colspan=\"4\" align=\"right\"> Shipping </td>\n    <td align=\"right\" bgcolor=\"#FFFF99\"> &euro; " . number_format($XC_Shipping, 2, ',', '.') . "</td>\n  </tr>\n";
    $XC_footer .= "  <tr>\n    <td colspan=\"4\" align=\"right\">  </td>\n    <td align=\"right\" bgcolor=\"#FFFF99\"> </td>\n  </tr>\n";
    $XC_footer .= "  <tr>\n    <td colspan=\"4\" align=\"right\"> Sales Tax </td>\n    <td align=\"right\" bgcolor=\"#FFFF99\"> &euro; " . number_format($XC_SalesTax, 2, ',', '.') . "</td>\n  </tr>\n";
    $XC_footer .= "  <tr>\n    <td colspan=\"4\" align=\"right\"><b> Grand Total </b></td>\n    <td align=\"right\" bgcolor=\"#FFFF99\"><b> &euro; " . number_format($XC_GranTotal, 2, ',', '.') . "</b></td>\n  </tr>\n";
    $XC_footer .= "  <tr>\n    <td colspan=\"5\"> </td>\n  </tr>\n";
    $XC_footer .= "</table>\n    </td>\n  </tr>\n</table>\n";
    // join all
    if (isset($_SESSION["XC_CartMail"])) session_unregister("XC_CartMail");
    $XC_CartMail = $XC_header . $XCartData . $XC_footer;
    $_SESSION["XC_CartMail"] = $XC_CartMail;
    session_register("XC_CartMail");
    // *** Save XCart contents to table ***
    require_once('XCInc/XCsaveAction.inc');
    if (isset($_GET['XC_SaveCartToTable']) && ($_GET['XC_SaveCartToTable'] == "1")) {
      $XC_destColName = array("ProductID","Quantity","","Color","UnitPrice","","Discount","","Total");
      $XC_destColType = array("str","num","str","str","num","num","num","num","num");
      $XC_orderId = $_SESSION['OrderID'];
      $XC_tableName = "wibble_orderdetails";
      $XC_OrderIDCol = "OrderID";
      $XC_OrderIDType = "num";
      $XC_AddToTableRedirect = "thanks.php";
      $XC_conName = "wibbles";
      require_once('XCInc/SaveXCartToTable.inc');
    // clone a session
    if (!session_id()) session_start();
    if (isset($_SESSION["OrderNum"])) session_unregister("OrderNum");
    if (isset($_SESSION["OrderID"])) {
      $OrderNum = $_SESSION["OrderID"];
      $_SESSION["OrderNum"] = $OrderNum;
      session_register("OrderNum");
    function DoFormatCurrency($theObject,$NumDigitsAfterDecimal,$DecimalSeparator,$GroupDigits,$Curren cySymbol) {
              $currencyFormat=$CurrencySymbol.number_format($theObject,$NumDigitsAfterDecimal,$Dec imalSeparator,$GroupDigits);
              return ($currencyFormat);
    function DoFormatPercent($theObject,$NumDigitsAfterDecimal,$DecimalSeparator,$GroupDigits) {
              $currencyFormat=number_format($theObject*100,$NumDigitsAfterDecimal,$DecimalSeparato r,$GroupDigits).'%';
              return ($currencyFormat);
    ?>

  • TS3694 I just received the unknown software error (6) do you have a resolution for this issue?  Occurred after install of software and firmware in the final validation phase. I have a 4S

    I just received the unknown software error (6) do you have a resolution for this issue?  Occurred after install of software and firmware in the final validation phase. I have a 4S

    http://lmgtfy.com/?q=iPhone+error+code+6

  • Non riesco a ricevere acquisti fatti su itunes, mi da questo errore :erreu : you have an error in your sql syntax; checkthe manual that corresponds to your mysql server version for the right syntax to use near from news order by id desc at line. cosa devo

    non riesco a ricevere acquisti fatti su itunes, mi da questo errore :erreu : you have an error in your sql syntax; checkthe manual that corresponds to your mysql server version for the right syntax to use near from news order by id desc at line. cosa devo fare?  grazie

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Error 1032 - Ensure you have write permissions to the following registry entries:

    I can not copy and paste the page into this forum box so ill have to put the link to the page
    at the bottom of this page has the problem aparently for the reason why i can not install adobe flash player 10.1
    in the box it says
    the installation encountered errors
    the active x control for flash player could not be registered
    then it says
    error 1032- ensure you have the write permisson to the following registry entiries.
    please can some read this as ive sadi i can not copy and paste all of these entry permission i do not have aclue what they are on about.
    here is the link.
    http://kb2.adobe.com/cps/191/tn_19166.html#main_Error codes for Flash Player 10.1
    thank you
    for any help

    Hi, I saw that email notification come in and just had to comment. I re-read your thread and was laughing at it all. I can't believe you still have that great sense of humor after all of the trouble.
    Did you hibernate over the Winter and just waking up? LOL
    Perhaps Pat will have a way you can check to make sure you have full authority for that Administrator Account.
    I know there is the Clock test. Right click over the clock hour/minute and then click on Adjust Date/Time. If you can see the clock and calendar Microsoft says that you have Permission needed to Install Programs. If you don't see that, then there is a problem.
    Thanks,
    eidnolb

  • Error in your SQL syntax

    Getting this error when using DW CS3 Insert Record Wizard
    with CF8 and MySql 5
    quote:
    Error Executing Database Query.
    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 '"description") VALUES ( 'any' )' at line 1
    The error occurred in
    C:\ColdFusion8\wwwroot\mysqltest\untitled1.cfm: line 7
    5 : VALUES (<cfif IsDefined("FORM.description") AND
    #FORM.description# NEQ "">
    6 : <cfqueryparam value="#FORM.description#"
    cfsqltype="cf_sql_clob" maxlength="2147483647">
    7 : <cfelse>
    8 :
    9 : </cfif>
    SQLSTATE 42000
    SQL INSERT INTO testedmemo ("description") VALUES ( (param 1)
    VENDORERRORCODE 1064
    DATASOURCE test

    Try using backticks to escape the column name description.
    Try removing the hash signs around FORM.description.
    Edit: You can probably also omit the maxlength attribute in
    your queryparam.

  • No Adobe support for CC Team Members if you have installed Parallels on your Mac

    No Adobe support for CC Team Members if you have installed Parallels on your Mac
    First let me make it clear my iMac is running native OS X 10.8.5 and all Adobe Creative Cloud Apps are install on the iMac running natively in the OS X system environment. I only have Parallels Desktop 8 for Mac installed to run Microsoft Office software in Windows 7 when needed (because PowerPoint for Mac sucks big time compared to the PC version)… absolutely no Adobe CC Apps have been installed on the Parallels virtual PC environment.
    I have been having problems with Creative Cloud Desktop not updating so I uninstalled it and tried to install the latest version from Adobe. I then get the following error:
    We've encountered the following issues:
    There seems to be a problem accessing a critical file/directory during download. For troubleshooting tips. please visit our customer support page. (Error code: 204)
    [retry] [cancel]
    This has happened all last week. Because we have been so busy at work I waited until the weekend to contact the 24/7 chat support.
    This was going well. I was sharing my desktop with the agent who was adjusting the permissions of some folder. The problem came when he launched chrome on Parallels and not on the MAC and tried to install the PC EXE version of CC desktop. When I pointed this out to the Agent he instantly stop the screen share and stated in the chat box that virtual computers are not supported and I must find my own solution without giving me an opportunity to explain.
    Every time I tried to start the chat again I was cut-off while trying to explain that Adobe CC was running natively under a native OS X and the Virtual PC was a separate to this
    Only after my 4th attempt (having per cut an pasted my arguement into the chat box) did a get any further. The Agent refused to continue to try and fix my problem but did say the Adobe engineers are aware of the "204" error
    Has anyone else had this "204" error installing Creative Cloud Desktop or can  direct me to a solution it would be much appreciated

    Unfortunately I am still getting the 204 error
    I download the Creative Cloud Desktop App at home and brought it into work to install — which failed
    I then tried to install the same file on the only Mac in the office not on Creative Cloud and it installed with out any problems
    I then tried plugging my iMac into the same ethernet socket incase it was a problem with the ethernet socket. No luck it still had the 204 error
    These are the Adobe download log files which show errors but they me nothing to me
    DLM.log
    07/01/14 08:15:48:723 | [INFO] |  |  |  |  |  |  | 1743186 | *******************start of Download****************
    07/01/14 08:15:48:723 | [INFO] |  |  |  |  |  |  | 1743186 | GDE Version is 2.0.0.13 (BuildVersion: 2.0; BuildDate: Thu Jan 09 2014 20:38:50 )
    07/01/14 08:15:48:724 | [INFO] |  |  |  |  |  |  | 1743186 | The file to be downloaded is https://prod-rel-ffc.oobesaas.adobe.com/adobe-ffc-external/core/v1/applications?name=Creat iveCloud&name=CCLBS&osVersion=10.8.5&platform=osx10
    07/01/14 08:15:48:724 | [INFO] |  |  |  |  |  |  | 1743186 | Going to download the file at /tmp/B58E0DB2-C6AD-4480-B614-874A46E27582/applications.xml
    07/01/14 08:15:48:825 | [INFO] |  |  |  |  |  |  | 1743186 | Preference: Client has set the preference for single stream download
    07/01/14 08:15:50:036 | [INFO] |  |  |  |  |  |  | 1743190 | **File download complete.**
    07/01/14 08:15:50:537 | [INFO] |  |  |  |  |  |  | 1743182 | *******************End****************
    07/01/14 08:15:50:690 | [INFO] |  |  |  |  |  |  | 1743203 | *******************start of Download****************
    07/01/14 08:15:50:690 | [INFO] |  |  |  |  |  |  | 1743203 | GDE Version is 2.0.0.13 (BuildVersion: 2.0; BuildDate: Thu Jan 09 2014 20:38:50 )
    07/01/14 08:15:50:690 | [INFO] |  |  |  |  |  |  | 1743203 | The file to be downloaded is https://ccmdls.adobe.com/AdobeProducts/KCCC/1/osx10/packages/ACCC_2_6_PDIMPackage_393/mani fest.xml
    07/01/14 08:15:50:690 | [INFO] |  |  |  |  |  |  | 1743203 | Going to download the file at /manifest.xml
    07/01/14 08:15:50:791 | [INFO] |  |  |  |  |  |  | 1743203 | Preference: Client has set the preference for single stream download
    07/01/14 08:15:51:900 | [ERROR] |  |  |  |  |  |  | 1743206 | An error has occurred while renaming the temporary named downloaded file.
    07/01/14 08:15:52:213 | [INFO] |  |  |  |  |  |  | 1743182 | *******************End****************
    LBS.log
    07/01/14 08:15:43:357 | [INFO] |  | ACC | LBS | ApplicationFacade |  |  | 1742865 | ****************Starting LBS workflow*******************
    07/01/14 08:15:43:361 | [INFO] |  | Download | LBS | ProductInfo |  |  | 1742865 | Product Sap Code not specified in the product information file
    07/01/14 08:15:43:361 | [INFO] |  | Download | LBS | ProductInfo |  |  | 1742865 | Applet Version not specified in the product information file
    07/01/14 08:15:43:361 | [INFO] |  | Download | LBS | ProductInfo |  |  | 1742865 | Applet ID not specified in the product information file
    07/01/14 08:15:43:361 | [INFO] |  | Download | LBS | ProductInfo |  |  | 1742865 | Product locale not specified in the product information file
    07/01/14 08:15:43:362 | [INFO] |  | Download | LBS | ProductInfo |  |  | 1742865 | Product name not specified in the product information file
    07/01/14 08:15:43:362 | [INFO] |  | Download | LBS | LBSUtils |  |  | 1742865 | Launching LBS in elevated mode
    07/01/14 08:15:48:442 | [INFO] |  | ACC | LBS | ApplicationFacade |  |  | 1743172 | ****************Starting LBS workflow*******************
    07/01/14 08:15:48:446 | [INFO] |  | ACC | LBS | WorkflowManager |  |  | 1743172 | LBS launched in LEGACY mode
    07/01/14 08:15:48:524 | [INFO] |  | Download | LBS | SystemCheck |  |  | 1743182 | System OS Version - major = 10, minor = 8, bugFix = 5
    07/01/14 08:15:48:524 | [INFO] |  | ACC | LBS | WorkflowManager |  |  | 1743182 | ACCC System requirements check passed
    07/01/14 08:15:48:546 | [INFO] |  | Download | LBS | ProductInfo |  |  | 1743182 | Product Sap Code not specified in the product information file
    07/01/14 08:15:48:546 | [INFO] |  | Download | LBS | ProductInfo |  |  | 1743182 | Applet Version not specified in the product information file
    07/01/14 08:15:48:546 | [INFO] |  | Download | LBS | ProductInfo |  |  | 1743182 | Applet ID not specified in the product information file
    07/01/14 08:15:48:547 | [INFO] |  | Download | LBS | ProductInfo |  |  | 1743182 | Product locale not specified in the product information file
    07/01/14 08:15:48:547 | [INFO] |  | Download | LBS | ProductInfo |  |  | 1743182 | Product name not specified in the product information file
    07/01/14 08:15:48:547 | [INFO] |  | ACC | LBS | WorkflowManager |  |  | 1743182 | Bootstrap LBS is successful
    07/01/14 08:15:48:565 | [INFO] |  | ACC | LBS | WorkflowManager |  |  | 1743182 | Bootstrapper Lock acquired
    07/01/14 08:15:48:583 | [INFO] |  | ACC | LBS | WorkflowManager |  |  | 1743182 | LBS Lock acquired
    07/01/14 08:15:48:604 | [INFO] |  | ACC | LBS | WorkflowManager |  |  | 1743182 | Deployment lock check passed
    07/01/14 08:15:48:622 | [INFO] |  | ACC | LBS | WorkflowManager |  |  | 1743182 | The resolved URL for package service is https://prod-rel-ffc.oobesaas.adobe.com/adobe-ffc-external/core/v1/applications?name=Creat iveCloud&name=CCLBS&osVersion=10.8.5&platform=osx10
    07/01/14 08:15:50:538 | [INFO] |  | ACC | LBS | WorkflowManager |  |  | 1743182 | Successfully downloaded application xml at path /tmp/B58E0DB2-C6AD-4480-B614-874A46E27582/applications.xml
    07/01/14 08:15:50:588 | [ERROR] |  | ACC | LBS | WorkflowManager |  | FileUtils | 1743182 | Error Failed open the dylib /Applications/Utilities/Adobe Creative Cloud/utils/AdobePIM.dylib while getting its version
    07/01/14 08:15:50:588 | [ERROR] |  | ACC | LBS | WorkflowManager |  |  | 1743182 | Failed to get the PIM version from location: /Applications/Utilities/Adobe Creative Cloud/utils/AdobePIM.dylib
    07/01/14 08:15:50:588 | [ERROR] |  | ACC | LBS | PDM | PackageDownloadManager |  | 1743182 | Failed to create folder at temp location for download operations
    07/01/14 08:15:51:900 | [WARN] |  | ACC | LBS | PDM | PDMWorkflowManager |  | 1743206 | A user retryable error has occured while downloading the file. errotType = -100 extendedErrorCode = 0
    07/01/14 08:15:51:910 | [WARN] |  | ACC | LBS | PDM | PackageDownloadManager |  | 1743203 | Manifest file could not be downloaded
    07/01/14 08:15:51:910 | [INFO] |  | ACC | LBS | PDM |  |  | 1743203 | File already exist. This should not happen because packages is downloaded in new GUID folder and file is send by client so should not be there already.
    07/01/14 08:15:52:213 | [ERROR] |  | ACC | LBS | WorkflowManager |  |  | 1743182 | Failed in DOWNLOAD PIM
    07/01/14 08:15:57:938 | [INFO] |  | Download | LBS | ETS |  |  | 1743172 | Waiting for the async thread to get the task completed
    07/01/14 08:15:57:939 | [INFO] |  | Download | LBS | ETS |  |  | 1743185 | Async thread is completed. Now exiting from function.
    07/01/14 08:15:57:949 | [INFO] |  | ACC | LBS | ApplicationFacade |  |  | 1743172 | ACC installation end with exit code: 204
    07/01/14 08:15:57:949 | [INFO] |  | ACC | LBS | ApplicationFacade |  |  | 1743172 | ****************Closing LBS workflow*******************
    07/01/14 08:15:57:959 | [INFO] |  | ACC | LBS | ApplicationFacade |  |  | 1742865 | ****************Closing LBS workflow*******************

  • You have made changes to your photo library using a newer version of iPhoto. Please quit and use the latest version of iPhoto. What can I do?

    My home was recently burgularized and my Intel MacBook Pro was stolen I had a backup but my other computer is a G5 PowerPC running 10.5.8 and I am getting the following error:
    You have made changes to your photo library using a newer version of iPhoto. Please quit and use the latest version of iPhoto.
    Obviously I cannot install a newer version of iPhoto on my G5 so what recourse do I have to get my images back?
    Help

    You have two options:
    Run the Library on a machine that has the same version as the machine that was stolen.
    or
    Recover the files from this library and start over from scratch.
    To recover the files:
    Go to your Pictures Folder (or whereever you have the back up) and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Your originals are in the Masters folder.
    Note this will only recover your photos as imported from you camera.
    Regards
    TD

  • Error in your SQL syntax........near '' at line 1

    i have a payment success page that should update the database when a payment is correct but am getting the error
    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 '' at line 1
    on the success.php page, i have looked at the code but cant seem to see the error, i have changed the ' ' to "" on line one but that didn't do it so was hoping someone could look and see the incorrect syntax
    <?php require_once('Connections/chic.php'); ?>
    <?php
    // *** Update the stock ***
    $details_table = "chicJewls_orderdetails";
    $ID_column = "UniqueID";
    $details_prodID = "ProductID";
    $details_qty = "Quantity";
    $XStock_TableName = "chicJewls_products";
    $XStock_FieldName = "Stock";
    $XStock_unID = "ProductID";
    if (!session_id()) session_start();
    if (isset($_SESSION["orderID"])) {
      mysql_select_db($database_chic, $chic);
      $details_Source = "select * from " .  $details_table . " where " . $ID_column . " = " . $_SESSION["orderID"];
      $detailsRS = mysql_query($details_Source, $chic) or die(mysql_error());
      $row_detailsRS = mysql_fetch_assoc($detailsRS);
      do {
        $XStock_qtySource = "select " . $XStock_FieldName . " from " .  $XStock_TableName . " where " . $XStock_unID . " = " .$row_detailsRS[$details_prodID] . "";
        $XStock_rsUpd = mysql_query($XStock_qtySource, $chic) or die(mysql_error());
        $row_XStock_rsUpd = mysql_fetch_assoc($XStock_rsUpd);
        if ($row_XStock_rsUpd[$XStock_FieldName] > 0) {
          $XStock_new = $row_XStock_rsUpd[$XStock_FieldName] - $row_detailsRS[$details_qty];
          if ($XStock_new < 0) $XStock_new = 0;
          $XStock_UpdSource = "update " . $XStock_TableName . " set " . $XStock_FieldName . " = " . $XStock_new . " where " . $XStock_unID . " = " .$row_detailsRS[$details_prodID] . "";
          $XStock_rsUpd = mysql_query($XStock_UpdSource, $chic) or die(mysql_error());
      } while ($row_detailsRS = mysql_fetch_assoc($detailsRS));
      $XStock_rsUpd = null;
      $detailsRS = null;
      session_unregister("orderID");
    ?>
    thanks in advance

    No, I'm talking about the dot before.
    Change this
    .$row_detailsRS[$details_prodID] . "";
    to this
    . $row_detailsRS[$details_prodID] . "";
    in both places.

Maybe you are looking for