I need some tutorials Ajax, PHP, Mysqli?

Hello world

I need tutorials on the following

(1) I have a div that is connected to a database, it displays information x I want to do a picture-button that refreshes this div in a click.

(2) I have 3 different pictures (thumbnails) on a page that each represents its own category of pictures, I want each image to do ' when one of the 3 images is presset, there should be a fade by displaying images (10, etc.) associated with this category (perhaps of an include statement?). under the 3 photos, if you press one of the 3 images current images in the 3 images has to falter and new photos (22 photos etc.) melted, does make sense? .

If anyone has some good tutorials that is not impossible to understand due to the mic/accent, I'd be more than happy!

OMFG... I just think that I found the magic for the first jewel, if someone need to solve one that I found this

http://StackOverflow.com/questions/17438243/AJAX-update-div-tag-on-button-click

N ° 1)

"I just removed the"setTimeout('Ajax()',2000);" both places.

Step 2)
Made the small script php/mysqli one inclusion

Step 3)

Changed to this-->> >xmlHttp.open("GET","refresh.php",true);
xmlHttp.send(null);<<<-- to this -->>

xmlHttp.open("GET","Includes/frontpage/featured.php",true);

xmlHttp.send (null);<>

Step 4)

Added this onclick = "Ajax (); "to my tag

Tags: Dreamweaver

Similar Questions

  • PHP/MySql error message

    I posted this before and didn't get the answer I need, probably because I didn't post all my codes. I use PHP/MySql.  I created a Web site that has several forms.  When I conducted three of the forms, I get the below error messages:

    You have an error in your SQL syntax; consult the manual for your version of the MySQL server for the right syntax to use near ' condition, length, color, city, 'State', Email, Photo) VALUES ('29 ', ' 4',' used "in line 1.)

    I write the codes below.  I hope this time that I posted everything I should have so that I can get help.

    FORM

    < form action = "<?" PHP echo $editFormAction;? ">" method = "POST" enctype = "multipart/form-data" name = "individual" class = 'individual' id 'individual' = >
    < table width = "594" border = "0" class = "test" >
    < tr > < /tr >
    < b >
    < td width = "166" class = 'td' > view < table > title
    < td colspan = "3" > < span id = "sprytextfield1" >
    < label >
    < input name = "Display title" type = "text" class = "test" id = "Display title" size = "35" / >
    < / label >
    < span class = "textfieldRequiredMsg" > required </span > < / span > < table >
    < /tr >
    < b >
    < td = 'td' class > price < table >
    < td colspan = "3" > < span id = "sprytextfield2" >
    < label >
    < input name = "price" type = "text" class = 'test' id = 'price' size = '35' / >
    < / label >
    < span class = "textfieldInvalidFormatMsg" > Invalid format. </span > < / span > < table >
    < /tr >
    < b >
    < class td = 'td' > < table > format
    < td colspan = "3" > < label >
    < select name = "size" = "1" multiple = "multiple" class = 'test' id = 'size' >
    < option > 0 < / option >
    < option > 2 < / option >
    < option > 4 < / option >
    < option > 6 < / option >
    < option > 8 < / option >
    < option > 10 < / option >
    < option > 12 < / option >
    < option > 14 < / option >
    < option > 16 < / option >
    < option > 18 < / option >
    < option > 20 < / option >
    < option > 22 < / option >
    < option > 24 < / option >
    < option > 26 < / option >
    < / select >
    < / label > < table >
    < /tr >
    < b >
    < class td 'td' = > status < table >
    < td colspan = "3" > < label >
    < select name = "Condition" class = 'test' id = 'State' >
    < option > new < / option >
    < option > used < / option >
    < / select >
    < / label > < table >
    < /tr >
    < b >
    < class td 'td' = > length < table >
    < td colspan = "3" > < label >
    < select name = "Length" class = 'test' id = 'Length' >
    Long < option > < / option >
    Short < option > < / option >
    < option > mid-length < / option >
    < / select >
    < / label > < table >
    < /tr >
    < b >
    < class td 'td' = > color < table >
    < td colspan = "3" class = 'td' > < span id = "sprytextfield5" >
    < label >
    < input name = "Color" type = "text" class = "test" id = "Color" size = "35" / >
    < / label >
    < span class = "textfieldRequiredMsg" > required </span > < / span > < table >
    < /tr >
    < b >
    < class td 'td' = > city < table >
    < class td = 'td' > < span id = "sprytextfield4" >
    < label >
    < input name = "City" type = "text" class = 'test' id = 'City' size = "35" / >
    < / label >
    < span class = "textfieldRequiredMsg" > required </span > < / span > < table >
    < class td = 'td' > < table >
    < class td = 'td' > < table >
    < /tr >
    < b >
    < class td 'td' = > status < table >
    < td colspan = "3" > < label >
    < select name = "State" class = 'test' id = 'State' >
    < option > AL < / option >
    < option > AK < / option >
    < option > AZ < / option >
    < option > AR < / option >
    < option > CA < / option >
    < option > CO < / option >
    < option > CT < / option >
    < option > OF < / option >
    < option > DC < / option >
    < option > FL < / option >
    < option > GA < / option >
    < option > HI < / option >
    ID < option > < / option >
    < option > HE < / option >
    IN < option > < / option >
    < option > HERE < / option >
    < option > KS < / option >
    < option > KY < / option >
    < option > THE < / option >
    < option > ME < / option >
    < option > MD < / option >
    < option > MY < / option >
    < option > e < / option >
    < option > MN < / option >
    < option > MS < / option >
    < option > MO < / option >
    < option > MT < / option >
    < option > NOT < / option >
    < option > NV < / option >
    < option > NH < / option >
    < option > NJ < / option >
    < option > NM < / option >
    < option > NY < / option >
    < option > NC < / option >
    < option > ND < / option >
    < option > OH < / option >
    < option > OK < / option >
    < option > OR < / option >
    < option > PA < / option >
    < option > LAUGHED < / option >
    < option > SC < / option >
    < option > SD < / option >
    < option > TN < / option >
    < option > TX < / option >
    < option > c < / option >
    < option > VT < / option >
    < OPTION > < / option >
    < option > WA < / option >
    < option > WV < / option >
    < option > WI < / option >
    < option > WY < / option >
    < / select >
    < / label > < table >
    < /tr >
    < b >
    < class td 'td' = > Email < table >
    < td colspan = "3" > < span id = "sprytextfield3" >
    < label >
    < input name = "Email" type = "text" class = "test" id = "Email" size = "35" / >
    < / label >
    < span class = "textfieldRequiredMsg" > required </span > < span class = "textfieldInvalidFormatMsg" > Invalid format. </span > < / span > < table >
    < /tr >
    < b >
    < height = "26" td class = 'td' > confirm Email < table >
    < td colspan = "3" > < span id = "spryconfirm1" >
    < label >
    < input name = "Confirm Email2" type = "text" class = 'test' id = 'confirm Email2"size ="35"/ >
    < / label >
    < span class = "confirmRequiredMsg" > required </span > < span class = "confirmInvalidMsg" > the values don't match. </span > < / span > < table >
    < /tr >
    < b >
    < height td = '26' class = 'td' > photo (s) < table >
    < td colspan = "3" > < label >
    < input name = "Photo" type = 'file' class = 'test' id = 'Photo' size = "35" / >
    < / label > < table >
    < /tr >
    < b >
    < height = '131' td class = 'td' > < table > Details
    < td colspan = "3" > < label >
    < textarea = cols "Additional Details" name = "40" lines "6" = class = 'test' id = "Détails" > < / textarea >
    < / label > < table >
    < /tr >
    < /table >
    < p >
    < label >
    < input name = "Submit" type = 'submit' class = 'test' id = "Submit" value = "Post" / >
    < / label >
    < /p >
    < input type = "hidden" name = "MM_insert" value = "individual" / >
    < / make >

    SERVER BEHAVIOR


    If (! function_exists ("GetSQLValueString")) {}
    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
    If (via 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 "set":
    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
    break;
    }
    Return $theValue;
    }
    }

    $editFormAction = $_SERVER ['PHP_SELF'];
    If (isset {}
    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);
    }

    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "individual")) {}
    $insertSQL = sprintf ("INSERT INTO donations (postingTitle, 'size', condition, length, color, city, 'State', email, photo) VALUES (%s, %s %s, %s, %s, %s, %s, %s, %s)", ")
    GetSQLValueString ($_POST ["'validation title"], "text").
    GetSQLValueString ($_POST ['size'], "text").
    GetSQLValueString ($_POST ["State"], "text").
    GetSQLValueString ($_POST ['Length'], "text").
    GetSQLValueString ($_POST ['Color'], "text").
    GetSQLValueString ($_POST ['city'], "text").
    GetSQLValueString ($_POST ["State"], "text").
    GetSQLValueString ($_POST ['Email'], "text").
    GetSQLValueString ($_POST ['Photo'], "text"));

    @mysql_select_db ($database_bridesmaidsrack_db, $bridesmaidsrack_db);
    $Result1 = mysql_query ($insertSQL, $bridesmaidsrack_db) or die (mysql_error ());

    $insertGoTo = "donations.php";
    If (isset {}
    $insertGoTo. = (strpos ($insertGoTo, '?'))? « & » : « ? » ;
    $insertGoTo. = $_SERVER ['QUERY_STRING'];
    }
    header (sprintf ("location: %s", $insertGoTo));
    }

    CONNECTION TO THE BASE


    # FileName = "Connection_php_mysql.htm"
    # Type = 'MYSQL '.
    # HTTP = 'true '.
    $hostname_bridesmaidsrack_db = "localhost";
    $database_bridesmaidsrack_db = "bridesmaidsrack";
    $username_bridesmaidsrack_db = "";
    $password_bridesmaidsrack_db = "";
    $bridesmaidsrack_db = mysql_pconnect ($hostname_bridesmaidsrack_db, $username_bridesmaidsrack_db, $password_bridesmaidsrack_db) or trigger_error (mysql_error (), E_USER_ERROR);

    OK, so your initial problem was the condition of the word, because it is a reserved word for MySQL.

    Here is a list of the reserved words.

    http://dev.MySQL.com/doc/refman/5.1/en/reserved-words.html

    If you use a reserved word, you must place the accents around it like this...

    "condition."

    then MySQL knows you use it as a standard Word and he interprets not as command.

    OK now on the following problem.

    'Photo' column cannot be null

    When you have created your table in MySQL tells you that the photo field can not be empty. If you are forcing people to add a photo, then you need to do the checked field before the script runs / inserts. If you're ok with them NOT to add a photo, then you have to allow NULL values for this field in your table. This is a function that you would normally control via PHP MyAdmin or other MySQL database management software.

    Now, the last question:

    The Dynamic (form.action...) attribute is just how the FIELD itself will appear in SB (Server Behaivors) who is not the insertion of a plug.

    Record insertion as I said probably disappeared because some how you two when you shouldn't have one. So when we removed a DW (Dreamweaver) now think his party but is not. This can sometimes be corrected by opening the page again and closing or manually set or remove all SB side code, and then add the insertion of a plug anywhere. But at least you know what was the original problem so you can fix it after add it again.

  • Recommend utility PHP/MySQL

    To save time, I am looking to buy application development software / tool box compatible with php / mysql.  One of the features I'm looking for is a upload of php via form upload script file. I know that the DMX box has separate program they sell.  Ideally I'd like a tool that does more than simply a function and not with a price high.

    If you could recommend some products, it would be appreciated.

    George

    When it comes to using a reasonable price "required no additional coding" software code generation PHP/MySQL, I ve always been very happy with PHPMAKER - but it is worth mentioning that there are many other tools out there as well who may meet your needs better than this so just one, google for "php code generator" to get a general idea about available today.

    See you soon,.

    Günter

  • If DW 20141 cc does not support the database, connection, server behavior, and PHP/MySQL require it, but using Adobe Extensions Mngr IS DO NOT recommended, then TOOLS WHICH does allow us to develop a database with DW?

    I use windows DW 20141 cc. I'm following lynda.com tutorials to create a website with PHP and MySQL database. I learned that I have to download Adobe Extension Mngr database active, BINDING, panels of SERVER BEHAVIOR, what I've done. BUT NOW, I've BEEN ADVISED NOT to USE THESE TOOLS for all new development. If this is the actually the case, then THAT TOOLS DO I USE to develop a Web site that has a database?

    Ideally, you code your own with (improved) MySQLi or PDO.

    http://code.tutsplus.com/tutorials/PDO-vs-mysqli-which-should-you-use--NET-24059

    Help the Web offer also an Extension of commercial MySQLi for DW server behaviors replace the obsolete.

    MySQLi server behaviors. Dreamweaver extension | WebAssist

    Nancy O.

  • Unable to connect error 404 PHP/MySQL

    Wow, the learning curve is killing me. Yet another challenge. I use Dreamweaver CC and this tutorial http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html

    I'm at this stage:

    1. Open comments.php . You must have a PHP page open in the Document window to create a MySQL connection.
    2. In the databases Panel (choose window > databases), click on the sign located on the Panel and select MySQL Connection.The MySQL connection dialog box appears.
    3. Type connTest as login name.
    4. For the MySQL server, type localhost. If you use MAMP ports by default on a Mac, use localhost:8889.
    5. For the user name, type phptestuser.
    6. Type the password that you chose for the phptestuser account in the password field.
    7. To the database, type php_test. Note: You need not precede the underscore with a backslash character here. It was inserted by phpMyAdmin in the previous section (see Figure 20) only because phpMyAdmin uses a query which allows wildcards.
    8. Click on Test.Dreamweaver tries to connect to the database. If the connection fails, follow these steps:
      • Check the server name, user name, and password.
      • Check the settings in the file that Dreamweaver uses to process dynamic pages (see specification of a Dreamweaver testing server).
      • Ensure that the web and MySQL server are both running.
      • Temporarily disable any firewall or security program. If the connection works, you must configure the security program to allow communication between Dreamweaver and MySQL.
    9. Click OK. The new connection appears in the data Panel.
    10. Expand connTest connection, and then expand the Tables branch. You will see the comments table in the database, you can expand to reveal the details of the columns in the table (see Figure 23).

    I can say that I followed this tutorial to the letter.

    As far as I know, XAMPP/php mySQL all running very well, the files are in the right place and everything should work. However when I type test, I get a 404 error. (Same error when I hit the select button).

    The problems on the 404 message are:

    1. There is no server running on the server test.

    Sure the testing server is running. Is there a way to test this, another that note that xampp is certainly running right now and I can connect to phpMYadmin without problem?

    2 test specified for this site server is not mapped with the http://localhost/php_test/_MMServerScripts/MMHTTPDB.php URL check that the URL prefix maps to the root of the site.

    UH... I'm sure that I put things where I was told to put them in the tutorial, but I'm lost right now where I should check that. A clue here? The files are where they are supposed to be, but maybe I entered something wrong? Except... I don't know what it might be or where to find it. Whatever IT is.

    Everything in the local files is fine.

    Thanks for your help!

    PS: Extra points to anyone who figures how to make copy/pasteable error messages! These guys are the bane of my life!

    Stop and restart the services he. Stop Xampp if still the same behavior. It should look like as below

  • Code PHP/mySQL help please

    Hi all

    Thanks to David Powers fab tutorial I am now well on my way to my first dynamic website with PHP/mySQL competeing, (thanks to David ), but I'm stuck on one particular area... can someone please help?

    I know that the mySQL database using the YYYY/MM/DD format for dates, and that's fine. I set how to display in a format more regular (for example, September 1, 2011) for my application, but I'm stuck on how to convert a more regular formatting date is entered by the user of the site to mySQL format.

    Ideally I would like to enter users or tell the 09/01/11 or 09/01/11 (or something in that sense, to be recognized and displayed on the registration form, but to have a back-end service that converts the data to the format mySQL. I think I'm reading a lot of posts forum who say that this is possible, but unfortunately I can't quite understand how or where the code should sit. Someone would have is not afraid to take a look at my page of codes to identify actually what I need to insert and also as important... where!

    Is it possible to have a miniature calendar date picker that can be built next to the entry field in the right format and date to make sure that a valid date is entered along these lines? Where this could be extracted?

    Thanks for help if necessary

    Mark

    GetSQLValueString (date('Y-m-d'), strtotime($_POST['date']), 'day'),

    Make this line looks like this-

    GetSQLValueString (date ('Y-m-in, strtotime($_POST['date'])), 'day'),

    This was my mistake - sorry.  The MySQL data type DATE should be in YYYY-MM-DD format.  If this is the data type of this field "date", and then copy the following code should work.

  • AS3 / PHP / MySQL - login form

    Hello

    I am creating the simplest example I can an AS3/PHP/MySQL interaction.  I want a Flash animation to check login/pass a user against a database.  I tested the PHP code and know that it is correct.  The problem must lie in his.  I traced everything to make sure that it shuts down correctly, but it is up under the names of variable $user, $passer... and some of the other garbage... not the values of the variables I wait... see below.

    The PHP code returns correctly what follows when tested in the browser: user = dan & pass = danpass & err = success!

    The variable traces $user, $pass, $err return the following Flash:

    undefined

    $pass

    $err ';


    echo $returnString;


    }


    ? >

    The following ActionScript code:

    import flash.events. *;

    import flash.net.URLLoader;

    import flash.net.URLRequest;

    import flash.net.URLVariables;

    import flash.net.URLRequestMethod;

    logbtn.addEventListener (MouseEvent.CLICK, login)

    function login ($e:MouseEvent) {}

    var myVariables:URLVariables = new URLVariables();

    var myRequest:URLRequest = new URLRequest ("login.php");

    myRequest.method = URLRequestMethod.POST;

    myRequest.data = myVariables;

    var myLoader:URLLoader = new URLLoader;

    myLoader.dataFormat = pouvez;

    myLoader.addEventListener (Event.COMPLETE, completeHandler);

    myVariables.user = loguser.text;

    myVariables.pass = logpass.text;

    myLoader.load (myRequest);

    function completeHandler(event:Event):void {}

    trace (Event.Target.Data.User);

    trace (Event.Target.Data.Pass);

    trace (Event.Target.Data.Err);

    }

    }

    And here is the PHP:

    <? PHP

    include_once "dbconnect.php";

    $user = $_POST ['user'];

    $pass = $_POST ['pass'];

    $sql = mysql_query ("SELECT * FROM users WHERE user = ' $user ' AND pass = '$pass'");

    $check = mysql_num_rows ($sql);

    If ($check > 0) {}

    $row = mysql_fetch_array ($sql);

    $user is $row ['user'];.

    $pass is $row ['pass'];.

    $err = ' Success! ';

    $returnString = "user = $user & pass = $pass & err = $err;

    echo $returnString;

    }

    ? >

    Nothing stands out as incorrect?  I went on that for probably 10 or 15 hours trying different variations, tweaks and reduce complexity.  Really, I'd appreciate any help you can offer!  Thank you.

    -Eric

    Hello

    you load the php file in the same folder, or localhost (running the SWF in a browser)?

    If being run from localhost, your system could deliver rather than run php scripts

  • Unknown column in the PHP/MySQL field list

    I created a feedback form for our airshow site and it works great. I now create some pages of the review, which are also working well, then

    ... I decided to improve one of the review pages and now it does not work... sigh.

    We ask stakeholders to provide their zip code and I have a vision showing the number of responses by postcode, this works very well and can be seen here http://www.hollisterairshow.com/feedback-results.php , so I decided to improve it by adding the City / State based on zip code. I created a new table called 'postcodes' and imported a list of zip codes and city / state info - all the 42,000 + of them.

    The PHP/MySQL, who works is illustrated below

    <? PHP
    Connect MySQL

    $query = "SELECT zip, COUNT (zip) ZIP GROUP BY feedback";

    $result = mysql_query ($query) or die (mysql_error ());

    Print results
    While ($row = {mysql_fetch_array ($result))}
    echo $row ["zip"]. " ". $row ['COUNT (zip)'];
    echo "< br / > ';
    }
    ? >

    As I am now faced with two tables, I thought that I had to add the name of the table in any field, so I added the names of tables and fields to the new table so

    I changed the PHP / MySQL as follows

    <? PHP
    Connect MySQL

    $query = 'SELECT feedback.zip, COUNT (feedback.zip), zipcodes.citystate OF feedback codes postal WHERE feedback.zip = zipcodes.zipcode GROUP BY feedback.zip';

    $result = mysql_query ($query) or die (mysql_error ());

    Print results
    While ($row = {mysql_fetch_array ($result))}
    echo $row ['feedback.zip']. " ". $row ['COUNT (feedback.zip)']. " ". $row ['zipcodes.citystate'];
    echo "< br / > ';
    }
    ? >

    and it fails when I run it says ' Unknown column 'feedback.zip' in "field list '"

    I would be grateful any suggestion on this, I am new on this PHP/MySQL stuff.

    Thank you

    Tony

    Tables listed in the From clause must be separated by commas. As it is, it is evaluated as an alias.

  • help Beginner Dreamweaver - php &amp; mysql

    Jin

    New in dremweaver, have used .net in the past with von Willebrand disease and found straight forward to drag on the grid of visualization etc. to display data from sql database.

    I now want to use php and mysql, and watching dreameaver cs4 I really want to know what is each navigation. say how to create my database mysql and drag a grid view in dreamweaver cs4 above to see?

    basically just need to know the basics navigation what buttons I need to interact using php and mysql?

    any help would be very well and also if anyone can recommend a good book on php/mysql with dreamweaver cs4 as one by him then would be very happy.

    Thank you very much

    Andy

    This could be a good starting point:

    http://help.Adobe.com/en_US/Dreamweaver/10.0_Using/WScbb6b82af5544594822510a94ae8d65-7fc8a .html

  • How can I get the data in the foreign key?  PHP/mysql

    I managed to create registration, log-in and results pages appear for accounts of client with PHP/Mysql/Dreamweaver 8. I have another page for more information to be contained in a child table, I used the Insert Wizard to create. I can't make it work. I get either a foreign key cannot be null error or a foreign key constraint.

    If I include the foreign key in the form on the page, I can manually enter the appropriate identification number, and it works. How to automatically enter the id into the foreign key column?

    I got the authentication of users using e-mail, password and user type.

    Thanks for your help

    When someone connects, Dreamweaver creates a session variable called $_SESSION ['MM_Username"]. Use this session variable to create a recordset object to get the ID of the user, who can then be entered in the child table's foreign key field.

    Dreamweaver automatically updates the code for recordsets immediately above the DOCTYPE declaration, then you will need to move above the code for the server behavior insert record. So it must be in the following order:

    1. Recordset to get the user ID
    2. Insert the record to the child table
  • help with php mysql connect script

    OK guys im new to php mysql and I try inserting form information in my database. IM using a sitepoint script in which I went through the tutorial made some experiences of myself and it worked...

    but now I get this error that I can't understand...

    Command error: you have an error in your syntax SQL; consult the manual corresponding to your version of the server MySQL for the right syntax to use near 'order product SET = ' 1', 'average' = size, color is ", amount = '1' at line 1

    Here is the page
    http://vaughntucker.com/imagecon/hats.php

    and this is the script
    <? PHP
    default page view
    connect to the database
    $dbcnx = @mysql_connect ('p3nl41mysql7.secureserver .net', 'imagecon', ' Dub * boss_1');
    If (! $dbcnx) {}
    echo "< p > unable to connect to the '. 'database server at this time." < /p > ";
    Exit();

    }

    Select database
    If (! @mysql_select_db ('imagecon')) {}
    exit (' < p > cannot locate the ".")
    "database at this time. < /p >");
    }

    MySQL Query add joke
    If (isset($_POST['submit'])) {}
    $product = 1;
    $size = $_POST ["size"];
    $color = $_POST ['color'];
    $quan = $_POST ['quantity'];
    $sql = "INSERT INTO command TOGETHER
    product = "$product."
    size = "$size."
    Color = "$color"
    quantity = "$quan"
    Date = CURDATE () ';
    } else {}
    ECHO 'no data sent ";

    }
    If (@mysql_query ($sql)) {}
    echo "< p > your order has been sent. < /p > ";
    } else {}
    echo ' error < p > order process: '.
    mysql_error(). / '< p > ';
    }



    ? >

    Thanks in advance

    Murray * ACE * has written:
    > $sql = "INSERT INTO command TOGETHER."
    "> product ='". $product. "',
    "> size ='". $size. "',
    "> color ='". $color. "',
    ' > quantity = ' ". $quan. "',

    No, this is not what is causing the problem. It is the use of 'order' as
    the name of the table. The order is an SQL reserved word. Either the name of the table
    should be changed, or the query INSERT rewritten as follows:

    $size = mysql_real_escape_string($_POST['size']);
    $color = mysql_real_escape_string($_POST['color']);
    $quan = mysql_real_escape_string($_POST['quantity']);
    $sql = 'INSERT INTO 'order' SET
    product = 1,.
    size = "$size."
    Color = "$color"
    quantity = $quan,
    'date' = CURDATE () ';

    Note that I surrounded order and date with backticks. I also have
    $product, was deleted because it has a fixed value. I removed the quotes from
    around $quan, because the numbers should not be quoted in SQL queries.

    The changes I did assume that magic quotes are disabled the
    Server. If they are on, you must also pass the variables $_POST
    stripslashes() like this:

    $size = mysql_real_escape_string (stripslashes($_POST['size']));
    $color = mysql_real_escape_string (stripslashes($_POST['color']));
    $quan = mysql_real_escape_string (stripslashes($_POST['quantity']);

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS4",
    "PHP Solutions" & "PHP Object-Oriented Solutions.
    http://foundationphp.com/

  • I need some information on the new iMessage on ox10

    I need some information about the new features on I update to iOS 10 message

    Howdy iotti!

    I understand you want to learn more about iMessage on iOS 10. There are a few new features!

    See these pages for a quick look on the update options:

    Use effects of message with iMessage on your iPhone, iPad and iPod touch
    Use iMessage apps on your iPhone, iPad and iPod touch
    Use #images with Messages in iOS 10

    If you have a question about a specific feature, you are in the right place to help! Don't forget to reply to this topic with specific questions.

    Take care!

  • Satellite C660 - need some for my MK3275GSX HARD disk diagnostic utilities

    Hello

    I need some diagnostic utilities for * MK3275GSX * hdd.

    For example * mhdd tool ([link | http://www.hddguru.com/software/2005.10.02-MHDD/]) would be enough for me, but I can not use because in some reason intel card mother block hard drive and I have an error: _Drive don't ready_.

    I find that: [link: http://storage.toshiba.com/storage-services-support/warranty-support/software-utilities], but I don't know what exactly I can use with my hard drive.

    Can I use [this | http://storage.toshiba.com/storage-services-support/warranty-support/software-utilities#erase] utility for my drive?

    Any suggestions?

    Post edited by: richman

    Hello

    What you think him * Drive Fitness Test utility? *
    It s a freeware software means you can use it for free and it helps you to scan the HARD drive for problems.

    Google for Drive Fitness Test, you can download this tool from different pages.

  • Need some tips to merge the two table-manipulation functions

    Hi guys!

    Thanks to Johnsold, Helmut O'Brian and Jcarmody, who helped me through a string function complicated (for me, the noob of LV), I got away with my project and I'm very close to its end.

    As I've described it here I wanted to explore an array of words combined with-, i.e. C1 - C10. Help, when I arrived, I was able to do. I also learned a few things and was able to do the following:

    Original array: new table:

    R1                                                       R1

    R2                                                       R2

    C1-C3                                                  C1

    K1                                                       C2

    C3

    K1

    I have this:

    Original array: new table:

    R1                                                       R1

    R2,R4,R7                                             R2

    C1                                                       R4

    K1                                                       R7

    C1

    K1

    I was also able to combine these two functions

    Now, back to my problem.

    Until now, it was just a 1 d array that I worked with. In fact, it's a 2D array, I read a. CSV file:

    As you can see there are a few places where things is combined with either - or by commas. I need to widen the first column as described above and as resolved in the thread I mentioned. Fact! No problem. I extracted the first column in table 1 d. Then expand it. Now, I need to replace in the original array and also expand all.

    It should then look like this:

    Then I only need to copy the position of the R6 line and paste it in the empty fields:

    I enclose below two screws. Start by opening the main.vi. Then copy.vi. I tried to describe the problem here too. You can see what I've accomplished and what is missing.

    Tasks:

    1. replace the column expanded in the original array and expand all.

    2 copy the needed lines.

    In the main.vi, I do the 1 d expansion, but I have the problem with the expansion of table 2D. In copy.vi, I managed to copy the lines. If this part is done.

    Basically, I need some advice on enlargement that I do and how do I get the 2D table also expanded. Because I have not much experience, I feel more comfortable working with 1 d arrays. But I can't seem to get any further with this 1 d-> expansion 2D.

    I also really can't seem to find a smart way to implement my function of copy-line-in the main.vi.

    P.S the joint screws are manufactured in LV2010.

    Fortunately, I can attend some courses of basic home OR here in Norway, but so far, I'm still learning and I think that sometimes, I try to do things that are way out of my League

    I don't know what I did but it works now

    Thanks for the help, same!

    You are even welcome!

    Have attached the file if anyone wants to see what I did.

  • HP 15-r045sr: need some drivers for HP 15-r045sr

    Hello.

    Please, help me, I need some drivers.

    Network controller

    PCI\VEN_1814 & DEV_3290 & SUBSYS_18EC103C & REV_00
    PCI\VEN_1814 & DEV_3290 & SUBSYS_18EC103C
    PCI\VEN_1814 & DEV_3290 & CC_028000
    PCI\VEN_1814 & DEV_3290 & CC_0280

    SM Bus controller

    PCI\VEN_8086 & DEV_0F12 & SUBSYS_2213103C & REV_0E
    PCI\VEN_8086 & DEV_0F12 & SUBSYS_2213103C
    PCI\VEN_8086 & DEV_0F12 & CC_0C0500
    PCI\VEN_8086 & DEV_0F12 & CC_0C05

    PCI device

    PCI\VEN_10EC & DEV_5229 & SUBSYS_2213103C & REV_01
    PCI\VEN_10EC & DEV_5229 & SUBSYS_2213103C
    PCI\VEN_10EC & DEV_5229 & CC_FF0000
    PCI\VEN_10EC & DEV_5229 & CC_FF00

    PCI encryption/decryption controller

    PCI\VEN_8086 & DEV_0F18 & SUBSYS_2213103C & REV_0E
    PCI\VEN_8086 & DEV_0F18 & SUBSYS_2213103C
    PCI\VEN_8086 & DEV_0F18 & CC_108000
    PCI\VEN_8086 & DEV_0F18 & CC_1080

    HP Truevision HD

    USB\VID_04F2 & PID_B40E & REV_6934 & MI_00
    USB\VID_04F2 & PID_B40E & MI_00

    AND (looks like it's my mouse)

    REV_0010 & USB\VID_13EE & PID_0001
    USB\VID_13EE & PID_0001

    You are the very welcome.

    So, I just owe you the pilot of the universal camera... back to the site, here it is...

    http://h20564.www2.HP.com/hpsc/SWD/public/detail?sp4ts.Oid=6943827&swItemId=ob_141708_1&swEnvOid=4058

    You will also need the cyberlink youcam software...

    http://h20564.www2.HP.com/hpsc/SWD/public/detail?sp4ts.Oid=6943827&swItemId=ob_133024_1&swEnvOid=4058

    You can try to uninstall the device mouse, reboot and see if it is properly installed.

Maybe you are looking for

  • Issue at the start of Windows 7 when you set up windows update

    Every time that turn on the computer (it is a VAIO laptop actually), Windows retains the configuration of updates but rest 0% as forever, after awhile, it says failed to update configuration every time then the computer works normally. Every time as

  • Microsoft xna framework 4.0 error 2908

    When I tried to install microsoft XNA Framework 4.0 error 2908 He 2 error to give: Setup has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2908. second error: "An error occur

  • Report l / h

    I hit a button randomly on my computer and now all "icons" on my desk are twice the size than before. It makes me NUTS.How can I fix that? -Brian

  • Office jet pro 8500 software for os 10.8

    I have a week I have Mac OS X 10.8 running. My not so new Office jet Pro 8500 910 a has a disk for OS 10.6. When you try to install the printer an error message is displayed. The help of HP suggests using the Mac update, but I guess as have not yet h

  • Blue screen, but can the safe boot mode

    I get the following error He then gets to my home screen, just before going to my office and then I get the blue screen: I am able to boot in safe mode.  I also tried boot of the last good configuration but still knowing the blue screen. Please help