Flex with php

Hello

I want to insert a record in my database but ICAN t. I am new to Flex, and there is my code:

<? XML version = "1.0"? >

< mx:Application ' xmlns:mx = ' http://www.Adobe.com/2006/MXML "xmlns =" " * "layout =" " absolute "creationComplete ="userRequest.send ()" >

< mx:HTTPService id=" userRequest " url=" http://localhost/Flex/Insere.php "useProxy =" " fake "method =" " POST " >

< mx:request xmlns = "" " >

< username > {username.text} < / name > < emailaddress > {emailaddress.text} < / emailaddress >

< / mx:request >

< / mx:HTTPService >

< mx:Form x=" 22 " y=" 10 "width = » 493 " >

< mx:HBox >

< mx:Label " text = ' Username " />

< mx:TextInput id=" username " />

< / mx:HBox >

< mx:HBox >

< mx:Label " text = ' Email address " />

< mx:TextInput id=" EmailAddress " />

< / mx:HBox >

< mx:Button " label = ' BOLAS "click ="userRequest.send ()" />

< / mx:Form >

< / mx:Application >

I think the problem is that insere.php is not called.

Any help, please?

Heres the flex work:




     
         
     

    
        
            {usernameStr}
            {emailStr}
        
    

    
        
            
                
            
        
            
            
        
        
    

    
        
            
            
            
        
    


Configure a datagrid control, so you can see the add users button that you press

Try this PHP, swap "xxx" for your usename and "xxxx" your database password database:

";

   while ($User = mysql_fetch_object($Result))
   {
          $Return .= "".$User->userid."".$User->username."".$User->emailaddress."";
   }
   $Return .= "";
   mysql_free_result($Result);
   print ($Return)
?>

your daa

Tags: Flex

Similar Questions

  • connecting flex with php (wamp)

    I'm trying to connect to flex to a php (wamp server) application... BT I m unable to do

    my application works very well... bt wen I click on the "submit" button it shows... data transfer frm localhost n is nothing happens... database is updated to nt...
    Flex code

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="absolute"creationComplete =" send_data () "> "
    < mx:Script >
    <! [CDATA]
    import mx.controls.DataGrid

    private function send_data (): void {}
    userRequest.send ();
    }
    []] >
    < / mx:Script >

    < mx:Label = "79" x = "89" text = "username" / >
    < mx:Label = "79" x = "128" text = "rolnumber" / >
    < mx:TextInput id = "nm" x = "153" y = "87" / >
    < mx:TextInput = "153" x = "126" id = "roll" / >
    < mx:Button = "127" x = "191" label = "submit" id = "sub" click = "send_data ()" / >


    " < mx:HTTPService id ="userRequest' url = ' http://localhost/connect.php "useProxy ="false"method ="POST"> "

    < mx:request xmlns = "" >
    < user name > {nm.text} < / name > < rollnumber > {roll.text} < / rollnumber >
    < / mx:request >
    < / mx:HTTPService >


    < / mx:Application >

    php code

    <? PHP
    mysql_connect ("localhost", "root", "") or die ("cannot connect");
    @mysql_select_db ("std_db") or die ("cannot select database");

    $q = "INSERT INTO 'std_db'."student"("name","roll") VALUES (' $_POST [nm]", $_POST [roll]) ";"
    If (mysql_query ($q))
    echo 'sucessfully inserted ";
    on the other
    echo' error occurred ';
    If ($Row = mysql_fetch_array ($result))
    //{
    echo $row [']

    ? >

    //

    php code

    <>
    mysql_connect ("localhost", "root", "") or die ("cannot connect");
    @mysql_select_db ("std_db") or die ("cannot select database");

    $q = "INSERT INTO 'std_db'."student"("name","roll") VALUES (' $_POST [nm]", $_POST [roll]) ";"
    If (mysql_query ($q))
    echo 'sucessfully inserted ";
    on the other
    echo' error occurred ';
    If ($Row = mysql_fetch_array ($result))
    //{
    echo $row [']

    ?>

    //

    your query looks a little off, instead of

    mysql_connect ("localhost", "root", "") or die ("cannot connect");
    @mysql_select_db ("std_db") or die ("cannot select database");

    $q = "INSERT INTO 'std_db'."student"("name","roll") VALUES (' $_POST [nm]", $_POST [roll]) ";"

    Try

        mysql_connect("localhost", "root", "") or die("cannot connect");
        mysql_select_db("std_db") or die("cannot select database");
    
        $name = mysql_real_escape_string($_POST["username"]);
        $roll =    mysql_real_escape_string($_POST["rollnumber"]);
    
        $q = "INSERT INTO student (name , roll) VALUES ('$name', '$roll')";
    
  • Connection with Flex and PHP

    Hello

    I write a login page that will serve as the front end of our main Flex application and hope someone can fill in the blanks here...

    The Flex login page composed of password entry fields, username and a "submit" button. When a user enters their credentials and hit sumbit, HTTPService will send the login information of the user to the PHP script. This script will handle authentication on the MySQL database. If verified, two random questions created by the user will be included in the resulting XML object. These two security issues will be displayed in the login page.

    I have already implemented these logics, but I was wondering...

    1. Assuming that HTTPS / SSL will be implemented in the production, is this OK/safe to include security responses in XML and let the Flex to validate the responses of the user?
    2. After successful validation, how to redirect to the homepage?
    3. I understand the idea of ID of session and token cookies, but what I have to implement this?
    4. How to sign out?

    Thank you very much in advance for your time and the suggestion.

    I currently have three projects on the go, so I can't really spend a lot of time on it. He ca

    n be a bit of a minefield for certain circumstances, but this link should be a good start

    http://corlan.org/2008/07/22/Flex-Air-PHP-and-user-authentication/

    Personally, I would probably support using the notion of token stick at its connection to the flex application and whenever the data request system is passed a token (baton), the token of the wand is also past and demand verified as a user that is logged by the PHP backend.

    Naturally, it all depends on how secure your application must be to decide exactly what appropriate measures. The data passed between client and server and back can be intercepted if a secure protocol is not used.

    Paul

  • Adobe Flex with Web performance

    Flex dear Experts.

    Hello! How are you? I am SAP consultant, I'm preety big application (not on the SAP platform but with PHP ZEND platform) to develop with table UI, Google Maps and other powerful visualization interfaces. I like Flex to work with. My work most of the side SAP so do not know the problems of possible performance with PHP and Zend.  My friends say don't turn out to be used Flex since it creates performance issues in the Web page.  I don't want to go with any other technology like JQuery or something. Is - what really this famous performance problem can anyone? If someone help me to understand how to improve the performance of FLEX RIA, it will be very useful to the mine. I'd appreciate any response.

    Thanking you

    Concerning

    Naeem

    How also known as Morgan Stanley matrix Flex applications could be built if Flex was such a klutz?

    http://www.morganstanley.com/matrixinfo/

    The answer is that a lot about people is due to ignorance:

    -In order to create a Flex application that works well, know both the bowels of the Flex framework and do not act against the underlying Flash Player. Many people try and rewrite things that exist in the Flex framework or upset the Flash Player.

    -A large number of people will talk about Silverlight/.NET because there multithreading and Flex does not work. But used multithreading unwisely can lead to performance problems. Many operations in Flex are asynchronous and use a callback mechanism.

    -You can use the time cutting heavy data processing, but it is recommended to reduce the amount of data loaded and processed at some point (for example using paging): http://cookbooks.adobe.com/post_Time_slicing-18691.html

    -Flash Player 11 will bring the GPU acceleration and 3D scene possibly multithreading

  • FLEX 3 PHP TCPDF QUESTION

    If I make a Datagrid with PHP, I have this code:

    submitted forms < h2 > < / h2 >
    < table >
    < b >
    Date < /th > < th >
    < /Th > < th > order ID
    The < /th > < th > base ID
    < /Th > < th > range ID
    Tech ID < /th > < th >
    < th > < /th > PDF download
    < /tr >
    <? PHP
    Meter starting line
    $iRow = 0;

    To loop through all the rows in the database
    While ($orders = {mysql_fetch_array ($result))}
    $iRow ++; Increase the counter
    $rowColor = ($iRow % 2)? ' ': ' class =-"even\" "; If the line is the same, put a CSS class on it
    ? >
    < tr <? PHP echo $rowColor; actually put the rowColor class name? > >
    < td > <? PHP echo $orders ['date'];? > < table >
    < td > <? PHP echo $orders ['id'];? > < table >
    < td > <? PHP echo $orders ["value"];? > < table >
    < td > <? PHP echo $orders ["route_id'];? > < table >
    < td > <? PHP echo $orders ["tech_id"];? > < table >
    < td > < a href = "getorder.php? id = <?" PHP echo $orders ['id']; Download page for if it uses the primary key of the row to select the data to create the pdf file. ? > "> Download < /a > < table >"
    < /tr >
    <? PHP
    Closed loop
    }
    ? >

    I have a column named downloading that has a link that executes a php that produces a PDF file and it gives the user. It works very much like above, but I'd like to use flex to build an app for that.

    Problem is that I do not understand where I need to add this code in FLEX3. I just did a project where I bult a datagrid that pulls from the MYSQL database. I am able to add a column with the header DOWNLOAD and I see the place where it generates a table, I guess that I don't know the syntax to add the link to the table.

    I can add more script if necessary and strongly apprecite to help

    I have here a simple application that reads information from a database and puts it in a datagrid flex, source code included

    http://www.mattlefevre.com/viewExample.php?tut=flexPHP&proj=simple%20Login%20Application

  • Flex and php?

    I tried to put a contact form, a Messenger on my website contact page, so now you use php as a background that transfer of email and logic while flex made use of rich user interface,

    on the server where should I put the php file? the server must be supoprting right php scripts? even if the server, mine zymichost supports php, my form of contact e-mail system does not work?

    is there a difference with php on the server files? because my application converts the format swf, exactly how it works with php? Help, please...

    You can do with php.

    POST, fake useproxy method

    but AMFPHP is a better client server communication protocol available for developers of Flash Player.

    For more details www.amfphp.org here you can find examples, as well as the configuration.

    hope this post helps u.

  • can I pay my monthly net flex with gift cards

    can I pay my monthly net flex with iTunes gift cards

    Yes, just make sure they keep your credit account, all payments will be taken from your credit before your card balance.

  • Can someone guide me to implement my XP and Windows 7 based IIS to work with PHP?

    I tried to implement my workstation local based working with PHP, IIS servers but the instructions I can find are vague and so far, I did not get the servers to answer even a simple PHP script.  I was hoping since Expression Web products claim to be able to build PHP applications that by extension could someone give me advice to set up PHP to work with my local IIS installations.  I have Windows XP Pro and Windows 7 Pro work positions.  This is a forum for Windows 7 and I thought someone here might have the experience and knows how to get the operational product.  Just for reference, I'm trying to use php - 5.4.10 - Win32-VC9 - x 86, which is, in my view, their latest stable version.  VC9 is what they say to use with IIS.

    Documentation is an ISAPI filter that is available, but I can't find this dll in the decompression code.  The other alternative is "fastcgi", but I don't know how configured

    Hello

    The question you have posted is better suited for the TechNet forums. Please post the question in the following link for assistance:

    http://social.technet.Microsoft.com/forums/en-us/Iises/threads

    I hope that helps!

  • A website managed with PHP Muse?

    Hi, I inherited a Web site that was designed mainly with PHP coding. I'm not very well informed about PHP, but I know very well that Muse. My question is, can I manage the website PHP using Muse, or am I stuck with the learning of PHP (which is going to take time to learn)? Thank you.

    If you mean php like in wordpress so no, only of wordpress which will manage but if you mean real php like in the code very very old that person no longer used on the internet then I recommend you trash or use the Muse | Dreamweaver to rebuild.

    Learn php at this point IMO is worthless, unless you plan to work for a Government or another retro organization.

  • code snippets in color behavior plan DW in file with php

    Hello

    I have a PHP file loaded in DW.

    In this file are several HTML + PHP code snippets.

    The color scheme (on screen) of the HTML components is not the same in different parts of this file... Is this normal... or is it a mistake?

    It seems that the file is OK running in php.

    question:

    Snippets of HTML code of the system color (ie) are identical in all of the file?

    Fred K. says:

    Hello

    I have a PHP file loaded in DW.

    In this file are several HTML + PHP code snippets.

    The color scheme (on screen) of the HTML components is not the same in different parts of this file... Is this normal... or is it a mistake?

    It seems that the file is OK running in php.

    question:

    Snippets of HTML code of the system color (ie) are identical in all of the file?

    Looks like there is probably an error in your markup somewhere. Snippets of html code must be the same color except that you generate a script to mail electronic html or maybe a message of the form.

    If there is an error in the supplement of php, it would be unusual for the page to show anything it either - look so the html code.

    EDITED.

    In FACT if you are echoing of html with php elements that might be a different color, usually red in DW, identical to the php code.

  • Invalid accept header with PHP SDK 5.1 against 1.5.1 vCloud Director

    In PHP 5.1 SDK samples do not work against 1.5.1 vCloud Director?  Any code that I am trying to write with PHP 5.1 SDK really will work against my vCD 1.5.1?  Or it will fail as the samples?  Is there something I can do for samples and all this work?

    My question seems very similar to http://communities.vmware.com/message/2142668#2142668.  I've had some success with the SDK 1.5 samples against my 1.5.1 vCloud Director.  But when I've upgraded to the PHP 5.1 SDK, all I could get was "invalid accepts header" messages, like this:

    PHP Fatal error: Eception exception 'VMware_VCloud_SDK_Exception' with the message "POST ". https://vCloud.mydomain.edu/API/login failed, return code: 400, error: <? xml version = "1.0" encoding = "UTF-8"? >

    " < error xmlns =" http://www.VMware.com/vCloud/v1.5 "stackTrace =" com.vmware.vcloud.api.rest.handlers.exceptions.BadRequestRestApiException: invalid application accepts the header

    at com.vmware.vcloud.api.rest.common.handlers.ErrorHandler.getBadRequestApiException(ErrorHandler.java:71)

    at com.vmware.vcloud.api.rest.common.handlers.ErrorHandler.errorBadRequest(ErrorHandler.java:44)

    at sun.reflect.GeneratedMethodAccessor11639.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)

    at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)

    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:133)

    to org.ap in /home/bob/lib/vcloudPHP-5.1.0/library/VMware/VCloud/ServiceAbstract.php on line 178

    After changing VCLOUD_API_VERSION in library/VMware/VCloud/Constants.php of 5.1 to 1.5, I get this:

    PHP Fatal error: Eception exception 'VMware_VCloud_SDK_Exception' with the message "POST ". https://vCloud.mydomain.edu/API/login failed, return code: 401 error,:, request data:
    ' in /home/bob/lib/vcloudPHP-5.1.0/library/VMware/VCloud/ServiceAbstract.php:178
    Stack trace:
    #0 home/bob/lib/vcloudPHP-5.1.0/library/VMware/VCloud/Service.php(114): VMware_VCloud_SDK_Service_Abstract-> message ('https://vcloud...) "(, 200) "
    #1 home/bob/lib/vcloudPHP-5.1.0/samples/login.php(78): VMware_VCloud_SDK_Service-> login ('vcloud.mydomain...', Array, Array)
    #2 {hand}
    lifting in /home/bob/lib/vcloudPHP-5.1.0/library/VMware/VCloud/ServiceAbstract.php on line 178

    A standard API call seems to work:

    curl - test id = true u scripty@system h ' Accept: application / * + xml; " version 1.5 =" https://vCloud.mydomain.edu/API/sessions

    Enter password for the user "scripty@system": Home


    HTTP/1.1 200 OK

    Date: Wednesday, November 28, 2012 17:43:56 GMT

    x vcloud-authorization: rxpTQIswdd15HNz + hZku6BCutGljF5VLUrt0M8x + IGI =

    Set-Cookie: vcloud-token = rxpTQIswdd15HNz + hZku6BCutGljF5VLUrt0M8x IGI plus; Guarantee; Path = /.

    Content-Type: application/vnd.vmware.vcloud.session+xml;version=1.5

    Date: Wednesday, November 28, 2012 17:43:56 GMT

    Content-Length: 1009


    <? XML version = "1.0" encoding = "UTF-8"? >

    " < session xmlns =" http://www.VMware.com/vCloud/v1.5 "user = org"scripty' = 'System' type="application/vnd.vmware.vcloud.session+xml' href =" https://vCloud.mydomain.edu/API/session/ "" xmlns: xsi = " http://www.w3.org/2001/XMLSchema-instance " xsi: schemaLocation = " http://www.VMware.com/vCloud/v1.5 http://vcloud.the.usg.edu/api/v1.5/schema/master.xsd" > "" "

    "" < link rel = "low" type="application/vnd.vmware.vcloud.orgList+xml" href = " https://vCloud.mydomain.edu/API/org/ "/>

    "" < link rel = "low" type="application/vnd.vmware.admin.vcloud+xml" href = " https://vCloud.mydomain.edu/API/Admin/ "/>

    "" < link rel = "low" type="application/vnd.vmware.admin.vmwExtension+xml" href = " https://vCloud.mydomain.edu/API/admin/extension "/>

    "" < link rel = "low" type="application/vnd.vmware.vcloud.query.queryList+xml" href = " https://vCloud.mydomain.edu/API/query "/>

    "" < link rel = "entityResolver" type="application/vnd.vmware.vcloud.entity+xml" href = " https://vCloud.mydomain.edu/API/entity/ "/>

    < / session >

    Version switching in gross 1.5 to 5.1 API call causes the accept header message invalid, which is not surprising, now that I became familiar with the format and the requirement to accept header.
    For example, can code samples from the SDK 5.1 actually work against 1.5.1 API?
    Thank you!!!

    Hello

    PHP Fatal error: Eception exception 'VMware_VCloud_SDK_Exception' with message "POST https://vcloud.mydomain.edu/api/login failed, return code: 401 error,:, request data:"

    [Rajesh] Seems to me like a problem of password username. As it clearly says 401.

    After changing VCLOUD_API_VERSION in library/VMware/VCloud/Constants.php of 5.1 to 1.5, I get this:

    [Rajesh] SDK users should not change the code in the library. This is a bug with the SDK for not allowing users to change the version of API through the library (connection method accepts the version as well) rather than change in the library.
    Kind regards
    Rajesh Kamal.
  • Server error: Configure 9i with php

    Respected
    I want to configure oracle 9i 9.2.0.1.0 with php on windows xp version. First I tried with apache 2, but it has been clashing with oracle apache so I installed appserv 2.6.0 and given port 81 for the 'localhost:81 '. In this way, I managed to run the simple program php ' hello world ' using 'localhost:81/test/hello.php', but when I run the connected program (check below) it gives * "Web site has encountered an error when retrieving the http://localhost:81/test/test1.php. It is perhaps out of service for maintenance or configured incorrectly. * error HTTP 500 (Internal Server Error): an unexpected condition has occurred while the server attempted to respond to the request.
    I did it due to changes in php.ini and http.conf
    1 kept php.ini in c:\windows
    2. set the doc_root
    3 - extension_dir
    4 - session.save_path = "c:\temp"
    5 uncomment the line extension = php_oci8.dll
    http.conf
    1 - Allowoverride None for all
    2 - Element DirectoryIndex is set with index.php
    3 AddType command for php "AddType application/x-http - php.php ' value
    4 - LoadModule php6_module has been defined with 'LoadModule php6_module C:/AppServ\php\php6apache2_2.dll' Remeber appserv uses php 6 and I couldn't find "php_oracle.dll" in the post of php6

    Program online
    <? PHP
    $conn = oci_connect('scott@orcl','tiger','//localhost:81/orcl');
    {if(!$conn)}
    $m = oci_error ();
    echo $m ['message'], "\n";
    "exit";
    }
    on the other
    {
    print 'connected to oracle. "
    }
    oci_close ($conn);
    ? >

    * 2nd program *.
    <? PHP
    <?
    If ($conn = Ora_Logon ("scott@orcl","tiger")) {}
    echo "< B > SUCCESS! Connected to the database < B > \n";
    }
    on the other
    {
    echo "< B > Failed < B > \n";
    }
    Ora_Logoff ($conn);
    phpinfo();
    ? >
    Please help me where I'm wrong, I want to run php on the same computer where the database resides.

    Published by: 885098 November 2, 2011 12:03

    1. I haven't looked AppsServ. If it is the same that I Googled, then it looks like an older version of PHP.
    You might consider looking at Zend Server instead.

    2. Yes you need not software customer Oracle if PHP & Oracle DB are on the same machine. But if
    your PHP OCI8 dll built to require a minimum version of Oracle and your DB libraries
    is not equal to or greater than this version, then you will need to (a) get the minimum version of the Oracle
    libraries or (b) recompile PHP yourself.

  • Send an email with php and mysql

    I want a visitor to my site click on a field in mysql to email with a BCC to me also, I want the link to show 'Send an email' not the e-mail address of the field

    There is no way to hide a BCC address with a mailto link, because it just opens the e-mail program of the user with the address fields filled in.

    What I would recommend is to create a contact form, as described in Chapter 5 of PHP Solutions. Using PHP to send the form hides your email address and all BCC addresses. It appears from your description that the email will be sent to different people according to which the link is clicked. If this is the case, the programming becomes more complex, but you can solve this problem, once you have learned how to create a contact form and email with PHP.

    I hope PHP Solutions is sufficient for your needs, but I warn you to take Chapter 3 slowly. Do not try to memorize everything in Chapter 3. Just have a general idea for how the language is structured and re-enter the chapter whenever you need to refresh your memory. If you feel the need for another book, I think that the books of Visual Quick Start of Larry Ullman are good.

  • Call to undefined function getsqlvaluestring() with PHP mysql Dreamweaver

    Hey guys, I'm new to the forum and it seems very useful. I think I have a unique problem well.

    Although this script worked for a year or two, all of a sudden, during the holidays, he went to hay

    Front end is always get all the information, it must be the Database.But when I try to connect through the side admin I created with php and database of dreamweaver extensions normal I get this error.

    I do not know many php - then I'll hide the chain at the moment - if I need to paste the code that I'll - thank you in advance


    Fatal error
    : Call to undefined function getsqlvaluestring() in /xxxxx/xxxx/xxxxxxx/xxxxxxx/newsletters/xxxxxxx/xxxxxxx/admin/login.php on line 22

    Vicinity of line 22 looks like this

    @mysql_select_db ($database_promocenter, $promocenter);

    $LoginRS__query = sprintf ("SELECT username, password, destination_page FROM users WHERE username = %s AND password is %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "int"));

    $LoginRS = mysql_query ($LoginRS__query, $promocenter) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    If {($loginFoundUser)

    First part looks like this

    < form id = "form1" name = "form1" method = "POST" action = "<?" PHP echo $loginFormAction;? > ">"
    < b >
    < td bgcolor = "#dedede" >
    < table width = "400" border = "0" align = "center" cellpadding = '3' cellspacing = "0" bgcolor = "#ffffff" >
    < b >
    < td height = "35" align = "right" valign = "middle" id = "description" > user name: < table >
    < height td = "35" > < label >
    < input style = "height: 20px;" border: 1px solid #999999 "name ="username"type ="text"id ="username"size ="35"/ >"
    < / label > < table >
    < /tr >
    < b >
    < td height = "35" align = "right" valign = "middle" id = "description" > password: < table >
    < height td = "35" > < label >
    < input style = "height: 20px;" border: 1px solid #999999 "name ="password"type ="password"id ="password"size ="35"/ >"
    < / label > < table >
    < /tr >

    Anton

    Could also show you it could never work.  Why?  Because the call to the function is made before the function is defined.  He would always stop execution with an undefined function error.

    Now - it seems that you have added the users authentication that was placed before the code block in which the function is defined.  So I would say that you move it-

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION< 6)="" {="" 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;

    }

    }

    from its current location to a new block just under the connection with the directive, i.e.,.

    MOVE HERE ? >

    <>

    Validate request to connect to this site.

    so that the final code looks like this-

    <>

    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;

    }

    }

    ?>

    <>

    Validate request to connect to this site.

  • Creation of lists of goods make a DWCS5 recordset with php PLS help

    Hi there I have an another question on lists with php and the Recordset.

    Here is my example:

    < ul >

    < li > let us all live < /li >

    Help my soul. < /li > < li > to

    < li > please have a life wonderfull. < /li >

    < li > you want another. < /li >

    < li > will you help me with. < /li >

    < li > let us go now. < /li >

    < /ul >

    I have all these lines of text in a table all in lines in my mysql database all have an id, I need to post it on my site as my example above, don't know where start because all the examples I have seen are nested lists someone can help. When I create my recordset and use the repeat region I get 'let us all live. Help my soul. Please have a wonderful life. You will assist me with. Let us go now. »

    Here is my code

    <? PHP

    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;

    }

    }

    @mysql_select_db ($database_datexdatabase, $datexdatabase);

    $query_rsSwiftPOStableFeatures = "SELECT title, discribtion of id ORDER BY 'restaurant table service' ASC ';

    $rsSwiftPOStableFeatures = mysql_query ($query_rsSwiftPOStableFeatures, $datexdatabase) or die (mysql_error ());

    $row_rsSwiftPOStableFeatures = mysql_fetch_assoc ($rsSwiftPOStableFeatures);

    $totalRows_rsSwiftPOStableFeatures = mysql_num_rows ($rsSwiftPOStableFeatures);

    ? >

    < div id = "content" > <? PHP {? >}

    <? PHP echo $row_rsSwiftPOStableFeatures ["discribtion"];? >

    <? PHP} while ($row_rsSwiftPOStableFeatures = mysql_fetch_assoc ($rsSwiftPOStableFeatures));? >

    < / div >

    Concerning

    Just change this:

    To do this:

    • «. $row_rsSwiftPOStableFeatures ["discribtion"]. »
    • "; ?>

    Also I recommend you strongly to read on the basics of PHP programming to understand these things, because while that DW gives you a good starting point, once you want to raise with you will need to understand the code.

Maybe you are looking for

  • Corrupt Library.photoslibrary photos

    I just migrated a Macbook Air to a new Macbook (the one that is light. Years to come). IPhoto has started, and he told me this file need to be repaired.  I have run several times and whenever it is said, is working on it for a while and the % increas

  • Equium A60-173 stops without reason

    My laptop turns off suddenly, it comes to a complete stop, I thought it was the battery had blown or something so I bought a new. I put it on and it started working. Everything suddenly after an hour or two use it turns off again. Same thing happens

  • Coregen memory when you use defined VI block memory

    I currently have a problem when you try to compile a VI for my card Flex RIO (SMU-7965R).  I have a sub - vi which contains a small instance memory set by VI (U16 X 256 elements) and a block of DSP48.  This VI is instantiated 128 times in the top lev

  • Energy saving

    What better energy conservation: in Windows 7 or Windows 8/8.1?

  • downloaded updates of files can I delete the installation packages to free up disk space

    After having been to the bass and installed, can I delete the installation packages to free up disk spaceand how?