Y or N assigned to the MySQL database of box instead of the set value

I'm trying to display a value checkbox to a database using Dreamweaver8/PHP/MySQL. However, a Y or a N goes into the database instead of the value set for the checkbox control.

The definition of type at the beginning of the code in Dreamweaver says:
Switch ($theType) {}
case "set":
$theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

The Dreamweaver insert says:
GetSQLValueString (isset($_POST['Kitchen'])? ('true': ' ', 'set', '' Y' ",""n" ").

The code of the box says:
< input name = "Kitchen" type = "checkbox" id = 'Kitchen' value = 'Kitchen' / >

The MySQL is a CHAR field.

Should I just remove the ',' 'Y' ",""n" "from the end of the Insert statement. Or should I change the Insert for GetSQLValueString (isset($_POST['Kitchen'])? ('true': ' ', 'text');

Thank you in advance.

I have it. I have the backup file, done as you suggested and got this. Thanks again.

GetSQLValueString ($_POST ['kitchen'], "text").

Tags: Dreamweaver

Similar Questions

  • Dynamically set a value based on the selected value of LOV

    Apex 4.2

    I can't create a dynamic action to set a value. I have used dynamic actions to hide and display areas but for some reason any cannot set a value.

    I have a list of selection-> P101_LIST. Type of source is "Column of the database". Source of value or an expression is "person_id" the query is as follows:

    Select first_name, person_id
    From Persons
    

    I have a display-> P101_DISPLAY value. Source type is 'static Assignment. The source value or expression that I left blank.

    I would like for each time the user selects a name of P101_LIST, the P101_DISPLAY element is updated to display the value (person_id) correspondent.

    Because there are other page elements / information on the page, I prefer that to not submit / update of the page. Would not want other page elements / information update.

    Any help on this would be greatly appreciated. Thanks in advance.

    Hello

    Create a DA:

    -event onChange P101_LIST

    -Action: PL/SQL

    -PL/SQL code:

    : P101_DISPLAY: =: P101_LIST;

    What to submit: P101_LIST

    Point of return: P101_DISPLAY

    And in fact.

    Kind regards

    Joni

  • Put the data of the set point in a waveform graph

    Hello

    In a graph of measure, which is the result of a waveform, I would add data of the set point as well. How can I add this data to set for the chart value?

    In a control loop system, the output is controlled by a labview program. I would like to see the point of this system as well as in the graph, these thresholds are changed at random times, so I don't know how to create a waveform of these data. Should I create a waveform of the setpoint, or y at - it another option to show the set value in the chart?

    See you soon,.

    Rolf

    That can make it much more difficult.

    At one point an array of 1000 points need to be assembled (obviously). How do depends greatly on your structure. Synchronize the time of the two signals can be very difficult. It would be easy if the set value only changed once a cycle of 1000 point.

    You may want to read the SP as an analog input, so you get 2 samples of the material here. In this way the two will always be synchronized. But I'm done alleady assumption, like this, the signal is an analog input (and the target value of one analogue output). What equipment do you use?

    I think always need you a loop to get data and a loop to set the SP. The two loops will be more parallel execution GLSL and synchroniseent. The trick is to synchronize, or for the deterministic timestamps in two loops. If you can make that happen, you 80% there. You could do loops timed loops (using the same clock). Then you get the timestamps in two loops. The MS loop has the queue changes, pushing the value and time. Then the loop of data can use values and hours to create examples of sp 1000.

  • using the custom value sets rules of SOUL of special type of information

    Hi, I have custom value sets that I use with my types of special information. I have allowed these types of special information self-service and attached rules for approval their.
    Here my problem, some of the sets values are sql based and are designed to obtain information on the applicant. then I use a lot fnd_profile.value ('user_id').
    For example,.
    Select email_address from fnd_user where user_id = fnd_profile.value('user_id')

    But when the sit is sent for approval, any field, the use of these custom value sets are missing. the only fields that are displayed are those not not with value sets with user_id profile as part of the query.
    My question is, is there a better way to retrieve information about the employees and thus be able to avoid this error?
    Thank you very much
    Iraqi

    Hi innocent,

    for the specific e-mail address case, maybe you can remove the valueset validation, set a default value based on the query and convert the field read-only, although I recall some faulty difficulties read only FDF.

    or maybe you could try changing the valueset to something like:

    Select email_address from fnd_user where user_id = fnd_profile.value('user_id')
    Union
    Select varchar2_value in the hr_api_transaction_values where >

    see you soon
    Giuseppe

  • How to set up the MySQL database to connect from another computer?

    Hello

    I have a huge problem with that.

    What I want to do is:

    I want to create a system (in LabWindows/CVI) this will (among others) allow users to send simple messages to each other. So I want to create a MySQL database , which will be based on a server. Other computers running the system then is able to remotely connect to this database and read a certain table to see if they have new messages. I want that the client computer to connect through the LAN to the database on the server.

    But how can I do this?

    1. How to create a database that can be connected through the LAN?

    2. How my connection string should look like not on the client computer?

    3. What configurations on the client and server computers can I do?

    Any help is appreciated, and if you could suggest how can I do to reach my goal. I'm a very competent programmer, but HATE those network things.

    Thank you

    Umer

    Nothing really associated with LabWindows. Try http://dev.mysql.com/doc/refman/5.7/en/tutorial.html for the database installed and running on a server.

  • continious streaming to the mysql database

    Hello

    I have LabvVIEW and LV Database Connectivity Toolkit. I'm creating a test sequence and I need to log the results and data to a mysql database. I want to ask you your opinion on what will be the most effective approach to connect to the database. I'll open connection once and then permanently in the stream of data to the database and then once I am finished, I've just will close the connection (similar to the concept of IO file in LabVIEW. Or will I open connection every time I need to connect to the database and immediately close and then open it again once I need to save the data again. SO basically, my program flow will be:

    1. opening (operator or engineer)---> this information must be connected.

    2. Select the test---> name sequence selected sequence must be connected

    3. start Test---> uut data number of series, and the result must be connected

    and so on.

    so the cycle just repeats, it may be that the operator will continue to another sequence of test, or switch to another object to measure. But all the information will be saved to the database.

    So, what will be the most effective approach of data communication? It is best to open the connection before, connect and then log the data on the fly, and then after the operator made with test, to stop the program, the connection will also be closed.

    or

    Whenever I need to connect to the database, I'll open the connection, and then close the log data (i.e. for the Login of the operator, the database connection will be opened, save the id of the operator, then closes the connection, then when a test sequence is selected, the database connection is open again and then save the name of the test sequence) and then close the connection, etc.)

    This will be my first to deal with the database and I don't know if the approach to database is the same as the approach to connect to the file using binary or text. I know that for the binary or text, it is recommended that we make data streaming, but for the database, it will follow the same concept? My concern is that these tests can last for hours. I'm not sure how stable it is to keep in now open database connection.

    Any help or opnion anywone, will be very happy. Thanks a lot in advcance!

    I think both architectures are good. Choose the best one depends on too many factors. How many connection you have simultaneously to this base? How is the load of your LAN network? How long can happen that you lost the connection with the database? The amount of data you want to transfer for each transaction?

    According to me, a third approach now is to connect the the test data for the local machine and transfer the data at the end of the trial. It is an approach to security that it is also proposed by Microsoft using the ADO SqlServer 8.Lorsque. The data group are indeed a copy of the data on the local, but I think that it is better to save data to a log file and once the acquisition is completed, transfer them to SQLServer and then kill the file.

  • How or there is no model code keep update/sync the local database indexedDB for MySQL database online?

    How or there is no model code keep update/sync the local database indexedDB for MySQL database online?

    Unfortunately there is no direct connector for an application of WebWorks to a back-end database. You will need to do, is to have some middleware web server (Apache, Node.js, etc.) who manages a web service that you can make an HTTP request to and GET, POST, UPDATE, DELETE data. Middleware and then transmits commands to the back-end database and returns the results to the finished device.

  • Can I change the MySQL database records?

    Hello

    As the title says, can I change the MySQL database records from the database window or can I only browse the structure?

    Thanks for your time, Steve

    No, you will need to use a front-end such as PHPMyAdmin, MS Access, tool or any tool SQL front end.

  • How to connect to the local mysql database

    Hello, I can't find the mysql database. I have set up the server in Dreamweaver CM³, but cannot view the database.

    Help, please. Don't know what info you need.

    Yes, I guess DMX is. I do not pay much attention to these things.

    If you use PHP 5.6, so be sure that your external server also uses 5.5 or 5.6. As a beginner, it is unlikely that you will use and features that differ between 5.5 and 5.6.

  • Created a site in dreamweaver, want to now set up the MySql database and username / password to access

    I created a site in dreamweaver, now you want to set up the MySql database and username / password to access a part of it. Dreamweaver's tools?

    I guess I need to learn PHP?

    Guidance gratefully received!

    Bob

    If you simply need to restrict access to your site, or a part of your site, there is an easier way to do it, using Apache htpasswd, but this solution is very limited and not suitable for use with clients, there is no interesting features people expect, as the ability to reset a lost password.

    Otherwise, Yes, you will need to learn some PHP and SQL.

    You will start by setting up your development computer with an Apache web server, which comes with PHP and possibly also MySQL. There are free versions, such as XAMPP, but I prefer Zend Server, which costs $195.

    Dreamweaver includes data 'tools' to the CS 5.5 version and there are third-party plugins available that will handle the data functions, but to really make things right you need to learn how to write your own code and don't mess with the tools who write code for you that you can not understand and are difficult to change.

    I think that David Powers PHP Solutions book is a good introduction and also includes a tutorial on building a password access system that is fine.

  • MySQL database does not work on the remote server help!

    Hello

    I'm kinda a noob in PHP/MySQL and I can't get my MySQL database to work on my remote server (it works on my local server).

    On the spot, I have:

    Connection name: local

    MySQL server: localhost

    User name: root

    Password: root

    Database: wbgt

    From a distance, I have:

    Created a database to help:

    username: wbgt (although it displays it as "web100-wbgt")

    password: root

    I also imported the MySQL database on the remote server.

    When I try to access any page that uses the MySQL database, it comes in white!

    Any ideas?

    Thanks in advance for your help

    Eddie

    Thank you! I got confused that it was not connect to the remote server.

    If someone else is in a similar situation as I was.

    I use heartinternet.co.uk

    1. export your local MySQL database
    2. create a MySQL database on your remote web hosting provider
    3. go to manage (or something similar) and import the MySQL database on your web hosting provider remotely
    4. in dreamweaver go to database data, +, MySQL connection Panel (or change your original database)
    5. Connection name - what you want
    6. MySQL - Localhost Server
    7. User name - whatever your remote site named the database in my case, I entered admin, but the user name is admin-web100-8
    8. Password - password for your remote database
    9. Database - go in manage your databases click on database and on the left side you should see the name of your database. in my case it was web100-admin-8 new (I couldn't connect on the ddatabase distance so I had to enter manually)
    10. Click fact put and it should work!
  • Populating a drop-down menu form with the values from MySQL database

    I'm creating a simple CMS that will allow staff to add new items on their site (sale of furniture).

    I want them to be able to choose from the list of values for some fields to ensure that the items are displayed on the website correctly (IE to avoid typos etc.).

    I have spent a lot of time to trawl forums and have so far obtained the code below.  When it was working I could only get the dropdown menu options of data contained in the database, as opposed to the list of DEFINED values that initially, I would put in my database.

    For example under the field named 'Type', I assigned these values: all ('table', 'chair', 'buffet', 'convenient', 'bottles', 'library', 'mirror', 'drawers','s chest', 'display', 'tvunit', "bedside", reads, "wardrobe", 'dressingtab', 'blanketbox', 'Office', 'filing cab', "workstation")

    Here's what I want to display in the drop-down, not only the five values of elements already in it.

    However, my CMS page is nothing display now not in the drop down and I can't understand why not!

    So my question is, first of all any ideas what's wrong with my code?  And second, how to fill the bottom of the fall with SET values?

    Thank you very much in advance for your help!

    I didn't want to bore you, then the code below is just the bit that is relevant to my question, rather than any connection $POST and info php etc.

    It is in my code php at the top of my page

     $sql = mysql_query("SELECT DISTINCT id, supplier, room, type, material, finish, bespoke, image FROM furniture ORDER BY ASC");
    
                        while($row = mysql_fetch_assoc($sql))
                        {
                    $supp .= "<option value=\"{$row['supplier']}\">{$row ['supplier']}</option>";
                    $room .= "<option value=\"{$row['room']}\">{$row['room']}</option>";
                    $type .= "<option value=\"{$row['type']}\">{$row['type']}</option>";
                    $material .= "<option value=\"{$row['material']}\">{$row['material']}</option>";
                    $finish .= "<option value=\"{$row['finish']}\">{$row['finish']}</option>";
                    $bespoke .= "<option value=\"{$row['bespoke']}\">{$row['bespoke']}</option>";
                        } 
    

    It's in my html code

    <form action="<?php echo $editFormAction; ?>" method="POST" enctype="multipart/form-data" name="form1"  id="form1">
    
                    <label for="supplier">Manufacturer</label>
                    <select name="supplier" id="supplier" title="<?php echo $row_add['supplier']; ?>" >
                      <? echo $supp; ?>
                     </select>
           
    
                     <label for="room">Room</label>
                    <select name="room" id="room" title="<?php echo $row_add['room']; ?>" >
                      <? echo $room; ?>
                     </select>
    
                           <label for="type">Type</label>
                          <select name="type" id="type" title="<?php echo $row_add['type']; ?>">
                           <? echo $type; ?>
                          </select>
       
    
                          <label for="material">Material</label>
                          <select name="material" id="material" title="<?php echo $row_add['material']; ?>">
                          <? echo $material; ?>
                              </select>
           
                              <label for="finish">Finish</label>
                          <select name="finish" id="finish" title="<?php echo $row_add['finish']; ?>">
                            <? echo $finish; ?>
                              </select>
       
                           <label for="bespoke">Can be made-to-measure?</label>
                           <select name="bespoke" id="bespoke" title="<?php echo $row_add['bespoke']; ?>">
                          <? echo $bespoke; ?>
                          </select>
    
                                  <input type="Submit" name="Add" id="add" value="Add" />
                          <input name="date" type="hidden" id="hiddenField" value="<?php echo $todayis['date']; ?>">
                          <input type="hidden" name="MM_insert" value="form1" />
                          </form>
    

    > So, don't you think not with my different approach?

    Yep, that's how it should be done.

    Note the OP also mentioned that they are filled with 6 drop-down lists:

    > 6 fields I want to post, drop downs in my a form are: provider, room, type of material, finish and custom.

    So you can create a table for each separate... but what I would probably do is store everything in a single table (depends of if you need to store additional information or if it's just a list of choice):

    optionsTbl

    Category ID value

    ------------------------------

    1 provider abc

    2 vendor xyz

    3 living room

    4 dining

    Enter values using a set of multiple records in the query: Select value of optionsTbl category WHERE = 'suppplier. " Select the value optionsTbl category = "room"; etc.

    Then fill the drop-down lists by looping through each query in the recordset and use next_result() to perform a loop on the next game.

  • shared object why? If you already have all the data in a mysql database

    Hello.

    I see that a shraed object can be used to store the data locally is to say: what avatar you use, what level you are and what the screen you are currently on. But why you need or use a shared if object you all this info on a mysql database, anyway.

    In addition, a shared object can get destroyed as you clear the cache, as many people have. In addition, Governments are looking at the cookies and they start to hang.

    That is to say: should really so we have?

    I quite often to store a user name in a shared object and pre-fill the login form

    most of the browsers that will be for text html in any case boxes

    you could add an option "Remember me on this computer" connect directly, and then you would save username and password

    your site might only need to login to some privelidges, like posting in a forum. You may want to save the preferences for the shared object if they are applied before the opening of the session

    BTW, the shared object is not a cookie. clear cookies, cache and browser history make the shared object. In fact I bet that most of the users don't know how to delete it.

  • change the port connection to the mysql database settings

    Hello

    I created a mysql database on my hosting server, very basic, and I'm trying to connect to it. However receive a 404 error trying to test the connection. checked the settings with the hosting provider and all correct, they said to check that it does not try to connect on port 80 and should be the port 3306.

    How can I change this in the settings in dreamweaver cs4?

    Thank you very much

    Andy

    What happens if you try to create the connection to database from the server, rather than the site manager behaviors panel?

  • On the remote host MySQL database: password encryption?

    Hello

    I discovered the world of PHP and MySQL in the last days. I didn't get all the intricacies still but nevertheless I managed to set up a server "localhost" on my computer, create a MySQL database and display correctly information in this database in HTML using PHP pages.

    I am now at the stage of transferring it to the remote host where the site will happen: I exported my database, imported these information in the database on the server host and I n unexpectedily even just to get my PHP/HTML pages to connect to this database. It's great.

    I have one question. I've read a lot of thread in this forum about this, but haven't seen an answer: must the password encryption? I mean, when I connect to a database using DW CS4, the software creates for me a connections folder in my Web site root folder and stores inside a little PHP to the folder with the server name, database name, user name and password which are necessary to allow PHP to connect to the MySQL database. It is all printed clearly in there. Once which is transferred to the remote host, it is always accessible to anyone? Should I not worry and try to hide the password?

    Any thoughts on this would be greatly appreciated.

    Emilie

    Thread moved to Dreamweaver application development forum, which addresses other issues aside and PHP/MySQL server.

    As long as the server is enabled in PHP, put the connection details in a PHP file like this is not a problem. PHP code is processed on the server. Only its output is sent to the browser. Even if someone guesses the name of your connection file, they won't see anything if they try to load the page in a browser. The only way they can see it is to hack into the server. It is important to have passwords on your FTP account.

Maybe you are looking for

  • Office Jet 6600: printer cartridge not recognize

    "I get the following message is displayed on my printer" print head seems to be missing, not detected, or incorrectly installed.  I followed all the instructions on how to solve this problem, but nothing works.  I read once that if the problem persis

  • Satellite P105 European exit?

    Hello. I apologize if this is in the wrong forum section or if it is not at all on the forum... The P105 series will be launched in the United Kingdom or of any other European country? I've heard some rumors that he is only intended for the U.S. mark

  • Display the waveform of the multimeter (34401)

    Hello I have a few problems in the view the using waveform graph. It seems that I can not connect the data directly to the waveform curve. The error indicates that the problem is impossible to connect two different types of terminals, the source is s

  • How to remove PC Cleaner Pro

    I uninstalled pc cleaner pro from my pc, but it continues to show in the center of safety under anti virus and said it's off.  How do I uninstall completely from my pc?  I tried to uninstall it through Add/Remove section since it does not have its ow

  • my USB won't open it says "you must format the disk hard until you can use it"

    HelloI have my brand DANE ELEC 16 GB USB key was the work properly. I took it off wile, he played the song, and since then, I have try to open a dialog box open and said you need to format the hard disk: X before you can use I can't format it because