Migrating php site at apex, need help

Hi all

I am quite new to oracle apex so please forgive me if this could be a noob question.

Request Express 4.2.2.00.11

I have these codes for example (in php and html)

partial php code:

$getSelectedHospital ="SELECT
  F.FACILITY_NAME,
  F.FACILITY_CODE,
  FD.FACILITY_STATUS,
  F.FACILITY_ABC,
  F.FACILITY_ACCRE_CODE,
  F.FACILITY_ACC_START,
  F.FACILITY_ACC_END,
  F.FACILITY_TYPE,
  F.FACILITY_ADDRESS,
  F.FACILITY_CONTACT,
  F.FACILITY_EMAIL,
  F.FACILITY_HEAD
  FROM FACILITY_DETAIL FD
  INNER JOIN FACILITY F ON FD.FACILITY_ID=F.FACILITY_ID
  WHERE FD.FACILITY_DETAIL_ID=:facilityID";


$queryGetHospitalGenInfo = $getSelectedHospital;
$hospitalGenInfoResult = oci_parse($conn, $queryGetHospitalGenInfo);
oci_bind_by_name($hospitalGenInfoResult, ":facilityID", $hospitalDetailID);
oci_define_by_name($hospitalGenInfoResult, 'FACILITY_NAME', $facility_name);
oci_define_by_name($hospitalGenInfoResult, 'FACILITY_STATUS', $facility_status);
oci_define_by_name($hospitalGenInfoResult, 'FACILITY_CODE', $facility_code);
oci_define_by_name($hospitalGenInfoResult, 'FACILITY_ABC', $facility_abc);
oci_define_by_name($hospitalGenInfoResult, 'FACILITY_ACCRE_CODE', $facility_accre_code);
oci_define_by_name($hospitalGenInfoResult, 'FACILITY_ACC_START', $facility_acc_start);
oci_define_by_name($hospitalGenInfoResult, 'FACILITY_ACC_END', $facility_acc_end);
oci_define_by_name($hospitalGenInfoResult, 'FACILITY_TYPE', $facility_type);
oci_define_by_name($hospitalGenInfoResult, 'FACILITY_ADDRESS', $facility_address);
oci_define_by_name($hospitalGenInfoResult, 'FACILITY_CONTACT', $facility_contact);
oci_define_by_name($hospitalGenInfoResult, 'FACILITY_EMAIL', $facility_email);
oci_define_by_name($hospitalGenInfoResult, 'FACILITY_HEAD', $facility_head);

oci_execute($hospitalGenInfoResult);
oci_fetch($hospitalGenInfoResult);


partial html code:

<td class="heading_td_top"><?php echo $facility_name;?></td>

It is quite easy to view the results of my query in my html code since I can just echo variables of my lines of oci_define_by_name.

How do I in the oracle apex? you have no need to spoon feed me, you can just point me to a tutorial or some keywords. Thank you!

PS

in my two months of game w / apex oracle, I really like it. I miss just the possibility to have codes php at my disposal when I ask things.

Post edited by: m.davide, typo

BillyVerreynne wrote:

Dynamic PL/SQL region.

Use the following pattern of PL/SQL code as the source for the region:

HTP. PRN (')

' );

for loop c in (select...)

HTP. PRN (')'|| c.Col1 |');

end loop;

HTP. PRN (»)

Develop/substitute HTML table set in the shape as needed.

I would use regions standard report with custom report templates to keep things as declarative as possible. This approach has much better separation of concerns as a dynamic region of PL/SQL. SQL, HTML, and CSS are all treaties in layers separate and are so much easier to understand, debug and modify as PL/SQL with sliders. FOR loops; loads of very tedious HTP. P, string concatenations, '<'s and="" '="">of.

With a lateral thinking and creative models of the line, expressions and logical query usage, standard APEX reports are able to produce complex structures and layouts:

m.Davide wrote:

90% of my php site has been implemented in my new site of apex. My only complaint are the profiles (which resembles typical profiles, as a profile facebook but for hospitals). I want to just recreate the look of my php site since my boss wants a look almost identical.

What I intend to do, is create an HTML region where I have my own layout code. My problem is how to fill my custom html table.

Create the layout using custom of APEX (page/region/State) templates. As Billy says forget the procedural approach of PHP and use the declarative features that provides the APEX.

Tags: Database

Similar Questions

  • PHP - report summary Page need help

    Hi all

    PHP - report summary Page need help... For example, I have a page where the user can select a small number of products, then I have a database PHP MySQL query that selects recent purchases of these products and where they were purchased at also like:

    -query... Select widget1 - widget2 and widget3

    RESULT...

    Widget1, 51, sold the store 1 the invoice

    Widget1, Bill 72, sold the store 2

    Widget1, Bill 59, sold the store 1

    widget2, invoice 2, sold in stores 2

    widget2, Bill 81, sold the store 1

    Widget3, Bill 201, sold the store 1

    Widget3, 151, sold the 2 store the invoice

    Widget3, Bill 17, sold the store 2

    Widget3, Bill 3, sold the store 1

    -I would like to report that may make certain features of synthesis, as well as the report output looks something like:

    'PRODUCTS to SHOW with SHOP SUMMARY'

    STORE 1

    Widget1, 51, more fields here the invoice

    Widget1, 59, more fields here the invoice

    widget2, 81, more fields here the invoice

    Widget3, 201, more fields here the invoice

    Widget3, Bill-3, more fields here

    STORE 2

    Widget1, Bill 72, more fields here

    widget2, invoice 2, more fields here

    Widget3, 151, more fields here the invoice

    Widget3, 17, more fields here the invoice

    -> I'm curious to know how to build php in order to simulate this STORE 'SUMMARY' on the page of the report. All ideas are welcome.

    THANKS in ADVANCE - Dave

    Dave, your question is quite broad, but may help the following:

    MySQL has functions of aggregation such as COUNT and SUM. It would probably be useful for you in your solution. I always try to do as well in the database as possible rather than dumping a lot of data in the php script to process. Also look at the MySQL GROUP BY WITH ROLLUP as a way to return altogether.

  • Modify Web site template flash - need help

    Hello! I'm about to buy a flash Web site template. Before buying the model I want assure you, that I am good enough to change it to my needs.

    I downloaded a free flash template and I tried to change it in my Flash CS5.

    I had a lot of trouble to change and I can't figure out yet how to change images or text.

    Can someone help me and maybe give me a little tutorial on how to change the model.

    Link to the model: http://www.flashmo.com/preview/flashmo_247_3d_touch_ring

    Thank you!

    The photos are taken from a XML file. Open the XML file flashmo_247_photo_list"in dreamweaver and look at the code, it will be easy to figure out if you've never done any kind of HTML codes.

    Just in case you have'nt look for example below taken from the xml file that was supplied with the .fla file

    "
      s_photo_003.jpg Change image name for a thumbnail here i.e. directoryname/imagename.png etc.
    photo_003.jpg Change the name of the image for a large picture here i.e. directoryname/imagename.png etc.

    Title photo 03

    Insert here the title photo 03

    In urna total, convallis id, pharetra in, sold sit amet mi Praesent 195kgs mauris imperdiet. Suspendisse pulvinar laoreet lorem vel faggot. Etiam and neque. Donec dapibus viverra EST.

    This text is dynamically loaded from the external XML file. This textfield supports HTML and CSS.

    []] > Here you have the possibility of having a discription on the image, I usually just the name of the image.
    "

  • Application Express (APEX) (need help!)

    Hello, everyone!
    Several days ago, I posted a question on the creation of a small project.
    Here are the details:

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Let's say we have a server (server 'A', for example), it will connect via browser. When connected, we see a simple menu:
    a "textbox".
    an ok"" button.

    Then, when we type something like a 'personID' in a 'text box' and press 'ok' (or we don't have any other buttons... we just type in this)
    ('personID' and press Enter..), Server "A" sends the request to the servers 'B', 'C', 'D',..., 'Z',... the main goal is to check whether this 'person' exists in databases on
    These servers.

    After this procedure, data for this 'person' are in XML format and is sent to our server "A" (ONLY if there is something to go back).

    And finally, we see the 'answer' to our 'request' to right below our "textbox".

    Example:

    All of our servers 'are some faculties '. Send us a request to other servers, namely that a student is enrolled in more than one faculty. We do NOT check the Faculty server 'A' (suppose that this student is already enrolled in this school, so there is no need to check). So, we "ask" and get the answer to this, for example:

    "name: John Smith.
    "id: xxxxxx".

    "Option B".
    «Years: 2009-2010»

    "School C".
    "Years: 2007-2010.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    The main problem for me was the understanding from where I should go. I was given a Council:
    Use APEX as a tool to create GUIS, a plsql db, to create tables, triggers, scripts and so forth... and XMLElement, XMLForest, XMLAgg to collect data of
    database and put it into XML for later use with APEX.

    I managed to install and configure the APEX. I myself in tons of manuals. On everything in my work.
    And now I'm stuck with few questions in my mind.

    (1) how to create a simple interface to work with APEX? Where should I start?
    (2) I have already created a database, with tables and data (in 11 g "Developer Oracle sql"), but I have not found how to APEX 'See' everything... not to mention how to get the data in tables as XML, then with APEX...

    Can someone help me with these questions? Maybe some tricks, tips, examples... ?

    Time is short for me now, so...
    I would be very grateful for any kind help...

    I agree with Acadet's comments... You must understand the features of Oracle technology... In your case, "user9x", your main goal is to be able to access data from different data sources for 'Oracle '... With or without Apex, today Oracle already supports this notion of access to data distributed via the 'data links' approach... First of all, you have access to all your data on a single system (your goal of the main activity), then you choose the tool to present these data - Apex 3.x, Cloud-9 tomorrow! :)

    good luck trying to make by using XML as the whole point of the Apex is RAPID application development without leaving the architect/developer care about the nuts and bolts of the presentation layer (I think, but I can be challenged on this notion).

    Best,

    Shra1

  • Overhaul of the site of reagent need help

    I have a complete site that my boss wants to be mobile friendly.  I read as much as I could without having overwhelmed (or so I thought) and I watched the tutorial of 45 minutes a couple of times here at Adobe "Doing a sensitive Site" or something like that.  But I'm still not 100% which is my best avenue.

    In my research, I have visited several sites on PCs and mobile devices to compare them and for the most part, those I've seen, mobile unlike anything the full site.  Images, links, content on the pages.  It "seems" that many are two different sites with the redirects at the top of the pages.  HOWEVER what I don't understand is if I am on a mobile site and select their "complete site view" this redirect not getting overridden again send me back to the mobile?

    The consensus I've read here and elsewhere seem to be a sensitive site to fit all screens display.  But that doesn't seem to be what I feel when you surf autour.  And our full site is that "colorful" so to speak and do it sensible that I fear will end is really annoying in full version, or 'cheap' in a mobile version.

    Any thoughts, reactions, suggestions, directions, etc. is greatly appreciated!

    My site is here: http://www.amerimedems.com

    Thank you!

    Karen

    Browse these tutorials.

    Bootstrap in DW CC tutorials

    https://helpx.Adobe.com/Dreamweaver/how-to/make-style-Web-page.html

    Make your existing site adapted

    http://blogs.Adobe.com/Dreamweaver/2015/08/making-an-existing-site-responsive-with-new-CAP capacity-dreamweaver - cc.html

    Nancy O.

  • Can't click on a Web site and images don't load, need help!

    I need to fill out a survey online, but I can't check the small boxes next to the images or the options. First of all, I noticed that on this site;
    http://www.Buzzfeed.com/Peggy/Bohemian-homes-Youd-love-to-chill-out-in#.liMj9b8pqw
    Images has not been loaded, but I thought it was due to the slow internet connection. When I clicked on the links that were given as the source of all the images loaded. Then on the test I noticed that I can not click on options. To make sure that I had a problem, I tried some lame games such as:
    http://www.Buzzfeed.com/tomphillips/true-or-false-or-what#.eaOjqW6kJ2
    I tried some of the options on the support page as disabling add ons, restart firefox on SafeMode etc. I even updated my shockwave, java, etc. Later, because of the risks, I uninstalled java. Still nothing and need help!

    Thank you.

    Thank you guys for your interest. I solved the problem by removing mozilla file from my computer and reinstall. Now, everything is perfect. For the survey I have to fill out, well it turns which includes soundcloud.com which cannot be opened with mozilla and chrome files. I could open it with my phone and noticed that the questions were all files to soundcloud.

    Thanks again.

  • Need help! Driver audio Compaq V3500 not available in the Web site

    Need help Compaq V3510TU P/N GG201PA #AKL Windows XP Professional 32-bit, after I re installed the new OS...

    Windows not the audio driver.  I have tried everything many of Conexant HD download version much much...

    they don't work at all.

    Please tell me what to do next

    PS Last year, I fell on hp site, it has provided several windows xp driver but now nothing... where had they chosen?

    I tried these, but didn't work

    sp36509

    sp35682

    and lots and lots of them

    Hello:

    Please read the XP downgrade guide at the link below:

    http://h30434.www3.HP.com/T5/notebook-operating-systems-and/General-XP-downgrade-Guide-for-HP-laptops/TD-p/83267

    Instructions to install the audio for your model can be found under the section titled 1. E Modelisation asy

    Most probably you have not installed the MS UAA driver required before you install your audio driver.

    You must uninstall all audio drivers you tried before you install the MS. UAA driver

    Paul

  • Need help Urgent, a Site on the 2 areas, edge of animation works only for a single domain (not the domain clients)

    Hello

    need help with something really strange.

    I create a Restaurant website: www.arkadasch.de

    I test on my server the Site: www.bbaur.com/arkadasch

    As you can see I got the top of the page an element Ede animated.

    When I look at the site on my server www.bbaur.com/arkadasch, you see the element works correctly. You see on the two sites of the 'face' of the apearing name.

    I have download the site now the clients site and the edge of animation is showning only half? Only the name of the left site is apearing and not that of the right?

    I downloaded the same site two areas and it is always the same. My only he is on the right.

    I have delate my cache also.

    Someone has an idea?

    WOW-found the error.

    The name is written 'o'. and the psd file is named «Özden»

    I have change the name of "ozden" to "zden', delate the German symbol 'o'.

    Modify the edge of animation, save again, insert into Adobe Muse and now it works

  • cannot reactivate the CS2 after the hard disk crash - site says I need to talk with adobe (activation can be done online) but the customer support page loop all around - help/activate also not going anywhere - it's a pc - thank you!

    cannot reactivate the CS2 after the hard disk crash - site says I need to talk with adobe (activation can be done online) but the customer support page loop all around - help/activate (since the opening page of CS2) also not going anywhere... it is a pc - thank you!

    message says 'unavailable activation server this time... error code 24:24.

    Error: "Activation Server is not available. CS2, Acrobat 7, pass a hearing 3

  • Desperately need help from chat session - site keeps browsing me page "need help, we need more information.

    I want to deactivate CS3 via chat, because it has been installed on a PC that has crashed and cannot be turned off as usual.  When I try to get from adobe to give me a "Start chat" button, it doesn't make me go through the product screens you have - what you're doing with it.  I tried eight different ways to get a chat session going, and no matter where I start, it keeps me taking back on it tell us what you have and what you want with this page.  If someone has a link "start chat", I would be grateful to have.  Thank you

    You're not likely to find staff chat service, until the long weekend passes.

    To the link below, click on the still need help? the option in the blue box below and choose the option to chat...
    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Serial number and activation support (non - CC) chat
    https://helpx.Adobe.com/contact.html?step=PHSP-PHXS_downloading-installing-setting-up_lice nsing-activation_stillNeedHelp

  • get a new computer.  I need to reinstall my creative suite adobe 6 web design and premium.  My drive is not helping and is nor the web site.  Please, please help.

    get a new computer.  I need to reinstall my creative suite adobe 6 web design and premium.  My drive is not helping and is nor the web site.  Please, please help.

    P.S. If you don't like our help, you can always contact customer service.

  • Need help: vSphere 4.1 old cluster to a migration 5.1 new cluster

    Need help!

    Well, we need to replace the old vmware 4.1 (3 former hosts in cluster) with the most recent output 5.1 (3 new hosts in cluster).

    We have 3 DAS old_hosts connected to the SAN HP P2000 G3 FC (we have only a single SAN who has 2 active FC ctrl with FC port 2 each - if only one FC port is free).

    As the new material is very different (1 Xeon E5335 2 GHz for every former host) and 2 Xeon E5 - 2630 2.30 GHz for each new host I'm not so sure be allowed to add new_host to the old cluster, not you?

    If this is the case, that is the best strategy to run a migration as possible interruption less?

    Anyone can suggest me what logical steps, we need to achieve our goal?

    (b) create new cluster with EVC mode enable (based on the old family)

    so, I don't do any CVS operation on the old cluster?    Y/N

    Nothing changes in the old cluster and other Word is YES! operation of EVC.

    (d) to migrate all your virtual machines in esx old new host esx (with sufficient resources)

    When I see in my inventory vcenter the old and the new cluster in order to migrate a virtual machine between them that I have to drag and drop the virtual machine on the label of the new cluster name? It is enough, or there is another way to do this?

    Yes, you can drag and drop again cluster or you may use the Migration Wizard to migrate the virtual machines. Both way can be works.

    When I have all the virtual machines in the new cluster, the situation is:

    -cluster hosts are running in VCA mode

    -VMs are run in EVC mode

    so if I now turn off the CVS mode on the cluster hosts automatically will work with all the features of the CPU or they should be stop/start?

    VCA mode cannot be disabled for virtual machines operating in EVC mode. If you want to disable, you must stop your virtual machines before first VCA mode off.

    FYI, the VCA mode is for mixed with different hosts of the family of processors, but in your case, the VCA mode is you help to minimize downtime and the planning of your downtime for virtual machines. If you don't want to use the old family processor, then you must turn off your VM and migrate to new hosts. So in this case, you have no need to allow the VCA. This CVS is you help migrate live Webcam virtual machine to the new family of processor host without downtime. Because virtual machines live runs on the cpuID of processor mode the lowest.

    If you want to disable the VCA mode on the cluster, you need to do that there is no VMs is under tension. Because to the VCA ID CPU mode will change.

    Just my cents

  • need help with insert sitemap in the footer with the adobe site map muse

    Hi I need help, to know how to insert a site map link in the footer of a page Web in muse Adobe.

    a quick google search just shows how to create a site map, but no mention of how to get a clickable link to a sitemap on a Web footer.

    any help would be appreciated.

    Hello

    You can try to front page of the site hyperlink to any text that would open the sitemap on the mouse action.

    For example, domain.com/sitemap.xml, enter in this format in hyperlink with any text or image that you can place on the page footer area.

    Thank you

    Sanjit

  • need help on how to make my roll of Web site!

    I'm really stuck on how to create a scroll effect in Flash CS4 for a simple site. I need the screen for movw up and down to view all the content. What is the best way to proceed and where can I get the script, any help will be much appreciated.

    Thank you!

    If the that represents the dimensions of your swf file and the bowser does not scroll bars then look for and delete the following, since the HTML file or css file that supports (probably related to the tag bpdy styling)...

    overflow: hidden;

  • Need help with apex listener administration username and passwd

    Hello
    I downloaded apex ODD and tried lunch listener admin http://localhost: 8888/apex/listenerAdmin
    Help me please the username and password.
    Thank you very much.

    Hailt wrote:
    Hello
    I downloaded apex ODD and tried to lunch listener admin http://localhost: 8888/apex/listenerAdmin
    Help me please the username and password.
    Thank you very much.

    (1) do not not eating a listener. It is not good for you.
    (2) you are sure that you are in the right forum for this? (You may be... but you may very well not be)... If ODD is open developer day information about passwords are usually in the installation instructions.

    .. I don't remember having to worry of the Auditors of the apex, but I havant used the latest versions...

    The main objective of how to post to fix your possible eating disorder.

Maybe you are looking for

  • M1522nf freezes at startup with &gt; &gt; &gt; &gt; &gt;

    Hello for a week, my m1522nf printer does not work. When I start it up, I'm getting > and then he stuck. Anyone know what I can do? Thank you.

  • Satellite A200 - keyboard problem - E button stucks

    From one of the windows, updated a few months ago, my Sat A200 began to have problems with the keyboard. After using it for a few hours, the key than the keyboard e seems stuck upwards, i.e. I can't key in anything like the e key is displayed permane

  • Pavilion dv6: failure of hard drive test

    my system does not work and I tried to go to safe mode but is not wor and I trried to do system test and there all tests except the short DST hard drive, it failed with the following information Failure ID: OLKQ0F-5SW7JD-QFPH5A-60XE03 PRODUCT ID: A7M

  • Configure windows update stalls

    When I hit the windows icon in the lower left to stop the computer, it has the text 'install updates and shutdown computer'. I think that its stuck or. It installs and stops well but when I restart the computer it stalls on the configuration screen.

  • eFax: not connected to the internet error

    I have a Photosmart 7510, running on Windows 8 (which shouldn't matter, since my question).  All internet connections are fine, except eFax custody claiming that I am not connected to the internet.  I have tried to change the DNS by hand, reset the c