ID:               48160
 Updated by:       j...@php.net
 Reported By:      aminay1986 at hotmail dot com
-Status:           Open
+Status:           Bogus
-Bug Type:         Dynamic loading
+Bug Type:         *General Issues
 Operating System: windows 7/xp/vista
 PHP Version:      5.2.9
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




Previous Comments:
------------------------------------------------------------------------

[2009-05-06 08:48:11] aminay1986 at hotmail dot com

Description:
------------
the code is Ajax Country/Area Drop-down List Example but on oracle not
on mysql , the code must appear the area or on my code subcategory drop
down list in Arabic but it is appear as stars ,you make encode as
windows 1256 and utf-8 and does not appear what the solution,if there is
a solution for populate drop down list from another on oracle send to
me,thanks for interest

Reproduce code:
---------------
 <?php

    // This is a very simple data provider for the cascading dropdown
    // example. A *real* data provider would most likely connect to
    // a database, use xslt and implement some level of security.
    Header("Content-type: text/xml");
    // get query string params
        //$filter = $_GET['filter'];
    $filter  = 1;
        $xml = '';
    $iscountry = 1;
//   // build xml content for client JavaScript
    $conn =
oci_connect("mohammadabed","0599397083","172.16.209.23:1521/XE") or
die("couldnot conncet to database");

        $query = "SELECT * from DOC_categories where ID_PERANT_DOC_CATEGORIES
= '$filter'";

    $stmt = oci_parse($conn ,$query);
    oci_execute($stmt);
    while ($row = oci_fetch_array ($stmt, OCI_BOTH))
    {
                if ($iscountry == 1)
                {
                $xml = $xml . '<continent name="' . $filter . '">';
                }
        $xml  = $xml . '<country id="' . $iscountry . '">' .   $row[1]
. '</country>';
      // $xml= convert_uuencode($xml);
        //echo "the value is ".$row[1];
                $iscountry = $iscountry + 1;
        }
        $xml = $xml . '</continent>';

        if ($iscountry == 1)
        {
        $xml = $xml . '<continent name="none">';
        $xml = $xml . '<country id="0">no element found</country>';
        $xml = $xml . '</continent>';
        }
    // send xml to client
        echo ($xml);

    ?>



Expected result:
----------------
the second drop down list appear in Arabic as in database

Actual result:
--------------
the second drop down list appear in stars or asterisks not as in
database


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


-- 
Edit this bug report at http://bugs.php.net/?id=48160&edit=1

Reply via email to