Strange generated PHP code

I attached some generated DW CS3 using PHP code. I'm not a PHP expert, but just looking at the code you can see the same "GetSQLValueString" function, said over and over again. On one page, I saw this set 5 times, 4 deletion of definitions, and then was able to view my page. I know that this isn't a complete explanation, maybe I deleted some media that were causing problems, but the point is that it is all generated code in DW. Please see the code attached if you're a PHP expert and can perhaps shed some light for us pedestrians. There Adobe experts out there on this forum? There was once, but it is looking like a Council deserted lately.

"davidbarrackphoto" wrote in message
News:fhi56c$PFI$1@forums. Macromedia.com...
> I am attached a certain DW CS3 using PHP code. I'm not a PHP
> expert, but just looking at the code you can see the same function
> "GetSQLValueString" said over and over again. On one page, I saw that
> set 5 times, 4 deletion of definitions and then my page was able to
> Display. I know that this isn't a complete explanation, maybe I deleted some
> media
> that were causing problems, but the point is that it is all generated DW
> code.
> Please see the code attached if you're a PHP expert and can maybe throw
> some
> light for us pedestrians. Are there experts out there on Adobe this
> Board of Directors?
> There once was, but he is looking like a Council deserted lately.

This code has been added to avoid problems with the previous PHP SQL injection
Setting up MySQL,
Why on Earth, they chose to put it over and over again instead of use
an inclusion or put in the connection file is beyond me...

Tags: Dreamweaver

Similar Questions

  • execution of 'some' auto generated php Teleservices... sore?

    Hello

    I used the trial of flash builder Premium 4 with the 4.0 sdk, I recently purchased the CS5 web premium suite. It includes flash builder standard with sdk 4.1 4.0.1.

    1. create a new flex project (as in the welcome tutorial)

    2. create a service PHP example using my db info (let it install Zend_AMF for me)

    3. place a DataGrid in the design mode,

    4. remove the method "getAll()" on this subject

    5 tweek some columns.

    6. it works, I see the call of service and response with the service capture (a monitor external service AMF).

    2 problems that appear now (which did not exist in version 4.0 trial I had)

    (1) add a new item

    protected var newItem:dbItem;

    protected function addBtn_clickHandler(event:MouseEvent):void

    {

    newItem = new dbItem();

    newItem.attribute = "someValue";

    this.addDbItem(newItem:dbItem);

    }

    protected function addDbItem (agenda: dbItem:void )

    {

    createDbItemResult.token = dbItemService.createDbItem (item);

    }

    " < s:Button label ="new item"id ="addBtn"click ="addBtn_clickHandler (event)"/ >


    When I click on the button, absolutely nothing happens, no error, no service call, nothing.

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

    (2) refresh datagrid dataprovider

    I followed the tutorial on how to bind a collection ArrayCollection to the dataGrid instead of linking to the 'service.lastresult '.

    populate the ArrayCollection collection with the result handler of the service with event.result as ArrayCollection collection... everything works as before. Whe DataGrid is created, he calls "dataGrid_creationCompleteHandler".

    protected function dataGrid_creationCompleteHandler(event:FlexEvent):void

    {

    this. getAllDbItem();

    }

    protected function refreshBtn_clickHandler(event:MouseEvent):void

    {

    this. getAllDbItem();

    }

    protected function getAllDbItemResult_resultHandler(event:ResultEvent):void

    {

    DbItems = event.result as ArrayCollection;

    }

    " < s:Button label ="Refresh"id ="refreshBtn"click ="refreshBtn_clickHandler (event)"/ >

    This works!, the button refresh works too, BUT... It refreshes only point with no bees published in the app... If I change a value of the element with a form (still using the skills of the tutorial):
    -the data in the datagrid control ARE updated.
    -the method of service.update (item) NOT to EXECUTE NOT (like create above)
    -If I'm updating the DB manually, ONLY the lines of UPDATE NO update...
    Any idea?
    Thank you! I'm stuck here for hours and hours now :-(
    the complete MXML code

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

    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" xmlns:moniteurservice = minHeight "" services.moniteurservice. * "xmlns:valueObjects ="valueObjects.*">"

    < fx:Script >

    <! [CDATA]

    Import mx.collections.ArrayCollection;

    Import mx.controls.Alert;

    Import mx.events.FlexEvent;

    Import mx.rpc.events.ResultEvent;

    [Bindable]

    protected var monitors: ArrayCollection = new ArrayCollection();

    protected function dataGrid_creationCompleteHandler(event:FlexEvent):void

    {

    getAllMoniteurResult.token = moniteurService.getAllMoniteur ();

    }

    protected function button_clickHandler(event:MouseEvent):void

    {

    Moniteur.Statut = statutTextInput.text;

    Moniteur.Nom = nomTextInput.text;

    Moniteur.prenom = prenomTextInput.text;

    Moniteur.Tel = telTextInput.text;

    Moniteur.mobile = mobileTextInput.text;

    Moniteur.email = emailTextInput.text;

    Moniteur.adresse = adresseTextInput.text;

    monitor. NPA = npaTextInput.text;

    Moniteur.lieu = lieuTextInput.text;

    Moniteur.pays = paysTextInput.text;

    this.updateMoniteur (monitor);

    }

    protected function updateMoniteur(item:Moniteur):void

    {

    updateMoniteurResult.token = moniteurService.updateMoniteur (item);

    }


    protected function button1_clickHandler(event:MouseEvent):void

    {

    getAllMoniteurResult.token = moniteurService.getAllMoniteur ();

    }



    protected function getAllMoniteurResult_resultHandler(event:ResultEvent):void

    {

    monitors = event.result as ArrayCollection collection;

    }


    []] >

    < / fx:Script >

    < fx:Declarations >

    < s:CallResponder id = "getAllMoniteurResult" result = "getAllMoniteurResult_resultHandler (event)" / >

    < moniteurservice:MoniteurService id = "moniteurService" fault = "Alert.show (event.fault.faultString +"\n"+ event.fault.faultDetail)" showBusyCursor = "true" / > "

    < valueObjects:Moniteur id = "monitor" / >

    < s:CallResponder id = "updateMoniteurResult" / >

    <! - Place non-visual elements (e.g., services, items of value) here - >

    < / fx:Declarations >

    < fx:Binding source = "dataGrid.selectedItem as monitor" destination = "monitor" / > "

    < mx:DataGrid = "25" x y = '24' id = "dataGrid" creationComplete = "dataGrid_creationCompleteHandler (event)" "

    dataProvider = "{Guide}" >

    < mx:columns >

    < mx:DataGridColumn headerText = "id" dataField = "id" / >

    < mx:DataGridColumn headerText = "status" dataField = "status" / >

    < mx:DataGridColumn headerText = "name" dataField = "name" / >

    < mx:DataGridColumn headerText = "first name" dataField = "FirstName" / >

    < mx:DataGridColumn headerText = "Phone" dataField = "as" / >

    < mx:DataGridColumn headerText = "mobile" dataField = "mobile" / >

    < mx:DataGridColumn headerText = "email" dataField = "email" / >

    < mx:DataGridColumn headerText = "address" dataField = "address" / >

    < mx:DataGridColumn headerText = "IR" dataField = "IR" / >

    < mx:DataGridColumn headerText = "place" dataField = "place" / >

    < mx:DataGridColumn headerText = "payer" dataField = "payer" / >

    < / mx:columns >

    < / mx:DataGrid >

    < mx:Form defaultButton = "{button}" x = "25" y = "174" >

    < mx:FormItem label = "Status" >

    < s:TextInput id = text = "{moniteur.statut}" / "statutTextInput" >

    < / mx:FormItem >

    < mx:FormItem label = "Name" >

    < s:TextInput id = text = "{moniteur.nom}" / "nomTextInput" >

    < / mx:FormItem >

    < mx:FormItem label = "Name" >

    < s:TextInput id = text = "{moniteur.prenom}" / "prenomTextInput" >

    < / mx:FormItem >

    < mx:FormItem label = "Tel" >

    < s:TextInput id = text = "{moniteur.tel}" / "telTextInput" >

    < / mx:FormItem >

    < mx:FormItem label = 'Mobile' >

    < s:TextInput id = text = "{moniteur.mobile}" / "mobileTextInput" >

    < / mx:FormItem >

    < mx:FormItem label = "Email" >

    < s:TextInput id = text = "{moniteur.email}" / "emailTextInput" >

    < / mx:FormItem >

    < mx:FormItem label = "Address" >

    < s:TextInput id = text = "{moniteur.adresse}" / "adresseTextInput" >

    < / mx:FormItem >

    < mx:FormItem label = "IR" >

    < s:TextInput id = text = "{moniteur.npa}" / "npaTextInput" >

    < / mx:FormItem >

    < mx:FormItem label = 'Place' >

    < s:TextInput id = text = "{moniteur.lieu}" / "lieuTextInput" >

    < / mx:FormItem >

    < mx:FormItem label = 'Pays' >

    < s:TextInput id = text = "{moniteur.pays}" / "paysTextInput" >

    < / mx:FormItem >

    < s:Button id = "button" label = "Submit" click = "button_clickHandler (event)" / >

    < / mx:Form >

    < s:Button "322" = x y = "200" label = "Button" click = "button1_clickHandler (event)" / >

    < / s:Application >

    full service of PHP code:
    <
    ? PHP
    /**
    * File README for the sample service
    *
    * This service generated sample contains functions that illustrate typical service operations.
    * Use these functions as a starting point to create your own implementation of service. Change the
    signatures of function, references to the database and implemented according to your needs.
    * Remove the functions that you do not use.
    *
    Save the changes and go back to Flash Builder. According to Flash Builder/Data Services, update
    * the service. Then drag the service operations on components in design mode user interface. For
    * example, the operation of getAllItems() drag a DataGrid control.
    *
    * This code is for prototyping only.
    *
    * The authenticate before allowing them to call these methods. You can learn more
    *
    */
    Class MoniteurService {}
    var $username = 'root ';
    var $password = "mikedev";
    var $server = "localhost";
    var $port = "8889;
    var $databasename = "test_db";
    var $tablename = 'monitor ';
    var $connection;
    /**
    * The constructor initializes the connection to the database
    . Whenever the application is
    * received by Zend AMF, an instance of the service class is created, then the
    * method is called.
    */
    public function __construct() {}
    $this-> connection = mysqli_connect)
    $this-> server,
    $this-> username,
    $this-> password,
    $this-> databasename,
    $this-> port
    );
    $this-> throwExceptionOnError ($this-> connection);
    }
    /**
    * Returns all rows in the table.
    *
    * Add the authroization or logical checks to secure access to your data
    *
    Table * @return
    */
    public void getAllMoniteur() {}
    $stmt = mysqli_prepare ($this-> connection, "" SELECT * FROM $this-> tablename ' ");
    $this-> throwExceptionOnError();
    mysqli_stmt_execute ($stmt);
    $this-> throwExceptionOnError();
    $rows = array();
    mysqli_stmt_bind_result ($stmt, $row-> id, $row-> status, $row-> $row-> name, $row-> such, $row-> $row-> email, mobile, $row-> address, -> IR $row, $row-> place, $row-> payer);
    While (mysqli_stmt_fetch ($stmt)) {}
    $rows [] = $row;
    $row = new stdClass();
    mysqli_stmt_bind_result ($stmt, $row-> id, $row-> status, $row-> $row-> name, $row-> such, $row-> $row-> email, mobile, $row-> address, -> IR $row, $row-> place, $row-> payer);
    }
    mysqli_stmt_free_result ($stmt);
    mysqli_close ($this-> connection);
    return $rows;
    }
    /**
    * Returns the element corresponding to the value specified for the primary key.
    *
    * Add the authorization or the logical checks for secure access to your data
    *
    *
    * @return stdClass
    */
    public void getMoniteurByID ($itemID) {}
    $stmt = mysqli_prepare ($this-> connection, "SELECT * FROM $this-> tablename where id =")
    ?");
    $this-> throwExceptionOnError();
    mysqli_stmt_bind_param ($stmt, 'i', $itemID);
    $this-> throwExceptionOnError();
    mysqli_stmt_execute ($stmt);
    $this-> throwExceptionOnError();
    mysqli_stmt_bind_result ($stmt, $row-> id, $row-> status, $row-> $row-> name, $row-> such, $row-> $row-> email, mobile, $row-> address, -> IR $row, $row-> place, $row-> payer);
    {if (mysqli_stmt_fetch ($stmt))}
    return $row;
    } else {}
    Returns a null value.
    }
    }
    /**
    * Returns the element corresponding to the value specified for the primary key.
    *
    * Add the authorization or the logical checks for secure access to your data
    *
    *
    * @return stdClass
    */
    public void createMoniteur ($item) {}
    $stmt = mysqli_prepare ($this-> connection, "INSERT INTO $this-> tablename (id, status, name, surname, phone, mobile, e-mail, address, postcode, place, country) VALUES (?,?,?,?,?,?,?,?,?,?,?) ');
    $this-> throwExceptionOnError();
    mysqli_stmt_bind_param ($stmt, 'issssssssss', $item-> id, $item-> $item-> name, $item-> name, $item-> such, $item-> $item-> $item-> address, email, $item-> IR, $item-> place, $item-> payer, mobile, status);
    $this-> throwExceptionOnError();
    mysqli_stmt_execute ($stmt);
    $this-> throwExceptionOnError();
    $autoid = $item-> id;
    mysqli_stmt_free_result ($stmt);
    mysqli_close ($this-> connection);
    Return $autoid;
    }
    /**
    * Updates the item passed in the table.
    *
    * Add the authorization or the logical checks for secure access to your data
    *
    @param stdClass $item
    void * @return
    */
    public void updateMoniteur ($item) {}
    $stmt = mysqli_prepare ($this-> connection, "UPDATE $this-> tablename SET status =?, name =?, name =?, such =?, mobile =?, email =?, address =?, IR =?, place =?, payer =?") WHERE = id
    ?");
    $this-> throwExceptionOnError();
    mysqli_stmt_bind_param ($stmt, 'ssssssssssi', $item-> $item-> $item-> name, $item-> such, $item-> mobile, $item-> email, $item-> address, $item-> $item-> place IR, $item-> payer, $item-> id, name, status);
    $this-> throwExceptionOnError();
    mysqli_stmt_execute ($stmt);
    $this-> throwExceptionOnError();
    mysqli_stmt_free_result ($stmt);
    mysqli_close ($this-> connection);
    }
    /**
    * Removes the element corresponding to the value of the primary key from
    * the table.
    *
    * Add the authorization or the logical checks for secure access to your data
    *
    *
    void * @return
    */
    public void deleteMoniteur ($itemID) {}
    $stmt is mysqli_prepare ($this-> connection, "REMOVE FROM $this-> tablename WHERE id =?");.
    $this-> throwExceptionOnError();
    mysqli_stmt_bind_param ($stmt, 'i', $itemID);
    mysqli_stmt_execute ($stmt);
    $this-> throwExceptionOnError();
    mysqli_stmt_free_result ($stmt);
    mysqli_close ($this-> connection);
    }
    /**
    * Returns the number of rows in the table.
    *
    * Add the authorization or the logical checks for secure access to your data
    *
    *
    */
    public function count() {}
    $stmt is mysqli_prepare ($this-> connection, "SELECT COUNT (*) AS COUNT FROM $this-> tablename");.
    $this-> throwExceptionOnError();
    mysqli_stmt_execute ($stmt);
    $this-> throwExceptionOnError();
    mysqli_stmt_bind_result ($stmt, $rec_count);
    $this-> throwExceptionOnError();
    mysqli_stmt_fetch ($stmt);
    $this-> throwExceptionOnError();
    mysqli_stmt_free_result ($stmt);
    mysqli_close ($this-> connection);
    Return $rec_count;
    }
    /**
    * Returns $numItems lines from the $startIndex line of the
    * table.
    *
    * Add the authorization or the logical checks for secure access to your data
    *
    *
    *
    Table * @return
    */
    public void getMoniteur_paged ($startIndex, $numItems) {}
    $stmt = mysqli_prepare ($this-> connection, "SELECT * FROM $this-> tablename LIMIT?,")
    ?");
    $this-> throwExceptionOnError();
    mysqli_stmt_bind_param ($stmt, 'ii', $startIndex, $numItems);
    mysqli_stmt_execute ($stmt);
    $this-> throwExceptionOnError();
    $rows = array();
    mysqli_stmt_bind_result ($stmt, $row-> id, $row-> status, $row-> $row-> name, $row-> such, $row-> $row-> email, mobile, $row-> address, -> IR $row, $row-> place, $row-> payer);
    While (mysqli_stmt_fetch ($stmt)) {}
    $rows [] = $row;
    $row = new stdClass();
    mysqli_stmt_bind_result ($stmt, $row-> id, $row-> status, $row-> $row-> name, $row-> such, $row-> $row-> email, mobile, $row-> address, -> IR $row, $row-> place, $row-> payer);
    }
    mysqli_stmt_free_result ($stmt);
    mysqli_close ($this-> connection);
    return $rows;
    }
    /**
    * Utility function to throw an exception if an error occurs
    * in a mysql command.
    */
    private void throwExceptionOnError ($link = null) {}
    if($Link == null) {}
    $link = $this-> connection;
    }
    {if (mysqli_error ($Link))}
    $msg = mysqli_errno ($link). ": " . mysqli_error ($Link);
    throw new Exception ("MySQL error-'.") $msg);
    }
    }
    }
    ? >

    >

    > the method service.update (item) NOT to EXECUTE NOT (like create above)

    >

    I think that you do not use the "commit" on the service. Default data services are "managed".

    Data management features let you synchronize the adding, updating and deleting records in a database. Changes that you make in the client application are not written on the server until the method "commit" is called. You can call a revert method to undo the changes made in the client application.

    So whenever you update or create add "commit" to the service after adding/updating. for example.

    protected function addDbItem (agenda: dbItem:void)

    {

    createDbItemResult.token = dbItemService.createDbItem (item);

    dbItemService.commit ();

    }

    I think that this article could be of interest to you:

    http://help.Adobe.com/en_US/Flex/4.0/FlexTutorials/WSbde04e3d3e6474c4292a0331216558354b-80, 00.html #WSbde04e3d3e6474c4-10020e8112165e18e29-8000

  • I get this error with my login form, I did, but I'm not sure if this is a problem with my php code or

    I get this error with my login form when I try to log in, but I'm not sure if this is a problem with my php code or my flex code!

    ReferenceError: Error #1069: loginsuccess property not found on string and there is no default value.
    CBC::main/checkLogin()
    CBC::main/__login_user_result()
    to flash. events::EventDispatcher / dispatchEv...
    to flash. events::EventDispatcher / dispatchEv...
    to HTTPOperation / http://www.Adobe.com/2006/Flex/MX/internal:dispatchRpcEvent ()
    to mx.rpc::AbstractInvoker / http://www.Adobe.com/2006/Flex/MX/internal:resultHandler ()
    at mx.rpc::Responder/result()
    at mx.rpc::AsyncRequest/acknowledge()
    to the DirectHTTPMessageResponder/completeHandl...
    to flash. events::EventDispatcher / dispatchEv...
    to flash. events::EventDispatcher / dispatchEv...
    at flash.net::URLLoader/onComplete()


    my php code is:


    [php] <? PHP

    define ("DATABASE_SERVER", "localhost");

    define ('DATABASE_USERNAME","f4r");

    define ('DATABASE_PASSWORD', 'cool23');

    define ('database_name', 'bignixs1');

    connect to the database

    $mysql = mysql_connect (DATABASE_SERVER, DATABASE_USERNAME, DATABASE_PASSWORD) or die (mysql_error ());

    Select the database

    @mysql_select_db (DATABASE_NAME);

    re-branded the data passed from Flex to variables

    $username = mysql_real_escape_string ($_POST ["usernam...)

    $password = mysql_real_escape_string ($_POST ["passwor...)

    Ask the database to see if the combination of username/password given name is valid.

    $query = "SELECT * from users WHERE username = 'username' AND password = 'password" ";

    $result = mysql_fetch_array (mysql_query ($query));

    start generating XML

    $output = "< loginsuccess > ';

    If the query returned true, exit < loginsuccess > Yes < / loginsuccess > other output < loginsuccess > not < / loginsuccess >

    if(!$result)

    {

    $output. = « no » ;

    } else {}

    $output. = "yes";

    }

    $output. = "< / loginsuccess > ';

    all the XML for output

    print ($output);

    ? > [/php]

    $query = "SELECT * from users WHERE username = 'username' AND password = 'password" ";

    should be

    $query = "SELECT * FROM users WHERE username = '$username' AND password =  '$password'";
    

    example of a system of working with the correct connection code flex & php to ensure:

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

  • Files JDE generating several COD

    All of a sudden the JDE generates a COD that line when renamed. ZIP can be extracted in several files of COD...

    I was not able to properly install my application via OTA or Desktop Manager. I tried to leave such original COD file, I tried to extract the COD file, I have reviewed the JAD file and everything seems OK. The result was generated 100% by the JDE (I use v4.5).

    Why the JDE arouses my COD file this way and how I am doing on the deployment of it?

    I have added a few additional images for my project in the same way that I was going to a file of code... should I create resource files to store these images instead?

    Thank you

    Greg Smith

    case of theIn cod of the result file is larger than 64 KB, it will be divided many (so-called 'sibling') files of cod and encapsulated in a single file of large cod, what format is the format of the zip file.

    If you want to install this desktop application, you don't need to unzip the files of cod brother.

    Just use your signed file of cod and alx with BB Desktop Software file.

    If you want to install your application via OTA, rename your cod to zip file, extract all the content and delete the zip file.

    Place all files in cod brother and jad file in a folder.

    Make sure that you have set correct MIME types.

    JAD: text/vnd.sun.j2me.app-descriptor
    COD: application/vnd.rim.cod

    You can add image files to your project and compile them with your code in the cod file.

  • WC3 validation of html page with php code

    I am trying to validate a web page ( http://www.flamingobeachcrfishing.com ) which includes the php code to extract information from a database using Dreamweaver cc 2015. I'm in code view.  I get error w3c to php code.  The page works fine. Is there a way to w3c check flow online (direct control) on the page?

    Run http://validator.w3.org/nu

  • Strange generating grid in Photoshop

    I need help to remove a strange generator grid that keeps on my images. It is not the tool grille I already know that. Whenever I have erase, or fill a strange patternless grid will generate on my image. He recorded even with the grid on the image.

    This looks like a combination of the grid, as mentioned above and your graphics card does not refresh the image correctly. The same lines appear if you save the image and reopen? You might want to try a different setting for your GPU in the preferences.

  • PHP code takes the first record in the database regardless of the selected one

    I struggled for hours with this trying to see why no matter what file is selected, the record displayed is always the first. It must be a stupid mistake on my part, but I can't see it.

    I use DW CC 2015 with WebAssist server for server code additions. I looked at the database itself, and it's OK.

    Test data

    Capture.JPG

    Copy the following code enumerates the various documents in the database. (I removed my HTML that works well for brevity).

    <? php require_once('.. /.. /.. / Connections/Terrier.php');? >

    <? php require_once('.. /.. /.. / webassist/mysqli/rsobj.php');? >

    <? PHP

    $rsDocuments = new WA_MySQLi_RS ("rsDocuments", $Terrier, 1);

    $rsDocuments-> setQuery ("" SELECT * FROM documents ' ");

    $rsDocuments-> execute();

    ? >

    <! doctype html > < html >

    "' Snip...

    < p align = "left" > < a href = "add_terrier_document.php" > add new record of Documents < /a > < /p >

    < table width = "100%" border = "1" cellspacing = "2" cellpadding = "2" >

    < tbody >

    < b >

    < td width = "26%" align = "left" > < strong title > < / strong > < table >

    < td width = "52%" align = "left" > < strong text > < / strong > < table >

    < td width = "6%" align = "center" > < table >

    < td width = "6%" align = "center" > < table >

    < td width = "6%" align = "center" > < table >

    < /tr >

    <? PHP

    {While (! $rsDocuments-> {atEnd())}

    ? >

    < b >

    < td > <? PHP echo ($rsDocuments-> getColumnVal ("dc_title"));? > < table >

    < td > <? PHP echo ($rsDocuments-> getColumnVal ("dc_text"));? > < table >

    < td width = "6%" align = "center" > < a href = "view_terrier_document.php? dc_index = <?" PHP echo ($rsDocuments-> getColumnVal ("dc_index"));? > "> view < /a > < table >"

    < td width = "6%" align = "center" > < a href = "edit_terrier_document.php? dc_index = <?" PHP echo ($rsDocuments-> getColumnVal ("dc_index"));? > "> edit < /a > < table >"

    < td width = "6%" align = "center" > < a href = "confirm_terrier_document_delete.php? dc_index = <?" PHP echo ($rsDocuments-> getColumnVal ("dc_index"));? > "> delete < /a > < table >"

    < /tr >

    <? PHP

    $rsDocuments-> moveNext();

    }

    $rsDocuments-> moveFirst(); return the RS to the first record

    ? >

    < / tbody >

    < /table >

    < a href = "<?" PHP echo $rsDocuments-> getFirstPageLink();? > "> first < /a > - < a href =" <? PHP echo $rsDocuments-> getNextPageLink();? > "> Next < /a > - < a href =" <? PHP echo $rsDocuments-> getPrevPageLink();? > "> previous < /a > - < a href =" <? PHP echo $rsDocuments-> getLastPageLink();? > "> last < /a >"

    < p >

    .... SNIP

    The table shows the different records in the database. I can go through the files back and forth and pick any one to edit - say one-third.

    The PHP code creates the URL of http:// localhost/priory_database_2/gateway/Terrier/documentation/edit_terrier_document.php?dc_in dex = 3

    However, the record that is displayed is always record 1, regardless of the currently selected folder.

    The edition code (less HTML) is.

    <? php require_once('.. /.. /.. / Connections/Terrier.php');? >

    <? php require_once('.. /.. /.. / webassist/mysqli/rsobj.php');? >

    <? php require_once('.. /.. /.. / webassist/mysqli/queryobj.php');? >

    <? PHP

    $rsDocuments = new WA_MySQLi_RS ("rsDocuments", $Terrier, 1);

    $rsDocuments-> setQuery ("SELECT * FROM documents ORDER BY dc_index ASC");

    $rsDocuments-> execute();

    ? >

    <? PHP

    If (isset($_POST["submit"]): isset($_POST["submit_x"])) {}

    $UpdateQuery = new WA_MySQLi_Query ($Terrier);

    $UpdateQuery-> action = 'put up-to-date. "

    $UpdateQuery-> table = 'documents '.

    $UpdateQuery-> bindColumn ("dc_index", "s", "".) "((isset($_POST["dc_index"])))? $_POST ["dc_index"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> bindColumn ("dc_title", "s", "".) "((isset($_POST["dc_title"])))? $_POST ["dc_title"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> bindColumn ("dc_text", "s", "".) "((isset($_POST["dc_text"])))? $_POST ["dc_text"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> bindColumn ('date_recorded', "s", "".) "((isset($_POST["date_recorded"])))? $_POST ["date_recorded"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> bindColumn ("date_update", "s", "".) "((isset($_POST["date_update"])))? $_POST ["date_update"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> addFilter ('dc_index', '=', 'i', ' ".) () $_GET ['dc_index']). » ») ;

    $UpdateQuery-> execute();

    $UpdateGoTo = 'index.php ';

    "If (function_exists("rel2abs")) $UpdateGoTo = $UpdateGoTo? rel2abs ($UpdateGoTo, dirname (__FILE__)):" ";" "

    $UpdateQuery-> redirect ($UpdateGoTo);

    }

    ? >

    ..... Snip


    < /table >

    < h3 align = "center" > change the document details < / h3 >

    < form id = "AddDocumentRecord" name = "AddDocumentRecord" method = "post" >

    < label for = "dc_title" > title

    < name textarea = "dc_title" cols = "150" lines = "3" maxlength = "300" id = "title" > <? PHP echo ($rsDocuments-> getColumnVal ("dc_title"));? > < / textarea >

    < / label >

    < label for = "dc_text" > Description

    < name textarea = "dc_text" cols = "150" lines = "20" maxlength = "60000" id = "text" > <? PHP echo ($rsDocuments-> getColumnVal ("dc_text"));? > < / textarea >

    < label for 'date_recorded' = > registration Date:

    < name textarea = 'date_recorded' cols = "50" rows = "1" maxlength = "20" id = 'date' > <? PHP echo ($rsDocuments-> getColumnVal ("date_recorded"));? > < / textarea >

    < / label >

    < label for = "date_update" > Date of last update:

    < name textarea = "date_update" cols = "50" rows = "1" maxlength = "20" id = "Refresh" > <? PHP echo ($rsDocuments-> getColumnVal ("date_update"));? > < / textarea >

    < / label >

    < input type = "submit" name = "submit" id = "submit" value = "Submit" >

    < input name = "dc_index" type = "hidden" id = "dc_index" value = "<?" PHP echo ((isset($_POST["dc_index"]))? $_POST ["dc_index"] ":" "")? > ">"

    < / make >

    ... Snip

    The query for the edit page should look like

    $rsDocuments = new WA_MySQLi_RS ("rsDocuments", $Terrier, 1);

    $rsDocuments-> setQuery ("SELECT * FROM documents WHERE dc_index =?");

    $rsDocuments-> bindParam ('i', ' ".) "(isset($_GET['dc_index']))? $_GET ['dc_index']:" ")". "" », «-1 ») ;

    $rsDocuments-> execute();

    What this did that select a recording with a value of dc_index.

  • How I can add the php code in my Web site muse

    How I can add the php code in my site muse?

    Insert you user-defined html.

    Mylenium

  • Unable to generate a code to activate one or more of the texts that I am using... How can I fix it?

    Everytime I try to publish my Web site using the ftp host option, the download fails because it says that it cannot generate a code to activate one or more of the texts used. Below the message it says (error 0: not connected)...

    Is there a way to fix this?

    Is there something on your network connection (firewall, proxy server, ant-malware settings, etc.) which would prevent the Muse to contact typekit.com during loading to the FTP host process? The error means that muse is unable to contact typekit.com to save the fonts used in your site against the domain name you specified.

  • Looks great in mode live view, but not in Design view after adding php code

    Can anyone help with this?  I have a php with HTML5 page that looks much like the design view, live view and in the browser. I add php code above <! doctype html > and the page goes in all directions in design mode. If I switch to live view, the page looks a lot like new. The above code <! doctype html > is php with zero html completely. It's as if design mode try to read php despite start-up code and tags php in place.

    The only work around, I have found is to place <! doctype html > at the top of the page and view design looks great again, but this cannot be used in the browser as I have the php code that requires it to be the first items found.

    I use Dreamweaver CC 2014

    Any help greatly appreciated,

    Dave

    Nancy, just to update you I had a bit of success by changing my invisible elements preferences.

  • PHP-Code in Adobe Muse CC 2014 einfügen - Wie geht das?

    Hallo,

    ICH möchte like ein PHP-File in Adobe Muse CC 2014 einbinden, aber wie geht das? ICH habe are already uber das Menufeld 'Objekt' > "HTML einfügen" versucht, aber der Code wurde auch mit richtiger Schreibweise nicht erkannt. Auch wenn ich den Code über Adobe Dreamweaver einfuge works dies nicht users.

    Wie ich ein PHP-File bzw fuge. Richtig ein PHP code?

    PHP is not supported in Muse right now. Only HTML, CSS and JavaScript.

  • How to generate the code for the ZXP file signing certificate

    I'm developing a creative using FlashBuilder 4.6 Adobe extension. I released the extension of a file .zxp and wanted to generate the code for him signing certificate. I've checked all the supported providers Adobe, but not found that anyone can do. Only, they provide the certificate for *.exe * .cab, *.dll and *.ocx.


    Thanks in advance.

    Leon.

    It's all too confusing.

    We use the Comodo certificate. You can use all the others as long as you end up with a point p12 certificate.

    Signing certificate by using the Digital Signature of the code

    http://www.InstantSSL.com/code-signing/index.html

    (1) request you the certificate. I used Internet Explorer on a PC because Comodo says it's better for them.

    (2) they do a thorough credit check to make sure that you are who you claim to be.

    (3) they shall issue a certificate giving you a PIN that he pay back.

    (4) redeem you your PIN certificate and the certificate is in your browser certificate cache.

    (5) you go to the cache and add a personal password for your certificate.

    (6) what makes a dot P12 file file name you choose.

    (7) now you can use your file p12 point with the utilities Adobe XZPSignCmd or ucf.jar to sign your Panel. I use the Mac utilities to sign on a Mac. The point p12 file is good on the PC and Mac.

    Don't worry, the utilities they speak about to sign. Adobe has their own utilities ZXPSignCmd and ucf.jar to do the signature. You are forced to timestamp your signature.

  • PHP code

    I wish for the next generations of MUSE to easily paste PHP codes in the page and also be fantastic would manage (forms of conatct) for everyone. Not only for an Adobe Business catalyst members. It is not just as a Member of Adobe CC does not being able to use the forms to any Web site.

    I sent you PM from your site. Stan

  • How to see the generated sql code

    Hello

    With the help of obiee 10g, I would like to see the generated sql code.
    I logged in as administrator
    Following manage-> sessions-> view log

    But when I click on connect gives this error ii do me "no logs found.

    The RPD administrator is a user with the recording as a 2 level.

    Thank you

    BI_ORACLE_HOME/server/log/nqquery.log

    to learn more:

    http://gerardnico.com/wiki/dat/OBIEE/nqquery.log

    Another method

    http://varanasisaichand.blogspot.com/2010/04/how-to-set-logging-level-for-users-in.html

    Thank you

    Deva

    Published by: Devarasu on December 6, 2011 17:26

  • Generated html code does not open in firefox/safari when incorporated into an iframe

    Hello

    I was mingling with robohelp for a few weeks now. I can generate a html from a Framemaker book end site. It is integrated in an < iframe > integrate into our website. It works fine on chrome. "However I get on firefox/safari is all ' i ' '. View the source, it becomes obvious that this weird bunch of characters appears before the < html >. I looked into the real generated html code and I see this < feff > tag prefix before the < html > in each file. Naturally, I advanced and removed and the page will now load correctly on firefox/safari. However, the balls are all screwed up. I read a post somewhere that says < feff > contains information about the css classes.

    I use techniques Comm Suite - 3.5(full_version). The webhelp html code is generated using the framemaker publishing feature using a file of saved settings *.isf.

    So, how to fix this? Any suggestions are welcome.

    Thank you

    The "bunch of odd characters" is known as the BOM (Byte Order Mark). The problem is on the server.

    I saw the same thing when you first use RoboHelp 8 and this is what I have been told by the company that hosts my site.

    "I would therefore conclude that the solution to this problem (on Linux systems running Apache) is to add the directive AddDefaultCharset utf-8 on the site's .htaccess file or the Apache config. The advantage of the latter is that it affects only the individual sites. The Apache default character set comes from the file of locale on Linux and defaults to iso-8859-1. It is the conflict between the Apache header with iso-8859-1 and utf-8 character page, which obviously causes problems Firefox. »

    In a post on the chrissy_tissy forum added

    My machine is Windows, but this still worked correction - some notes on post-porn the fix:

    1. make the fix itself (httpd.conf: AddDefaultCharset utf-8).

    2. restart the box to apply the hotfix.

    3. once the box is restarted, clear your FireFox cache to ensure that you do not continue to see the cached file.

    Once all this is done, you will see the contents of output as expected.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

Maybe you are looking for