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.

Tags: Coding Corner

Similar Questions

  • Display settings S920 missing page, need help

    Hello

    I have a strange problem with my phone S920 and need help.

    First I describe that I made:

    I bought two phone weeks and first install update "by air" (from the settings menu, "System Update"). The current version number is S920_ROW_S117_130815. After that, I set the settings on the phone, insert the SIM and SD card and started to install applications. When I found that photos from my SD card are not visible in the gallery. He won't get the images in the external SD card. I can see all the files on this map in the file browser and open, but the Gallery shows only a few files from SD internal tried to force to re-scan of the media files. Finally, Gallery shows all the photos, but I found some files on my SD card had size = 0 bytes. SD card was probably not properly disassembled during a new analysis. I've wiped the SD card in settings of the phone and coppied all data to the SD card in my PC. And re-scan again. Now all the files was correct and all images is vissible in the gallery. But a few days later, I found that I can't run page display settings. I tried to access to this-> all the settings, fron-> display settings but received a message "Unfortunately stopped Control Panel:

    OK, I noticed that my problem disappeared after I disabled my live wallpaper. Let me tinker some more...

  • 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

  • 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.

  • Security at the level of the ADF Page - need help

    Hello

    Currently, I am looking to secure my adf application. The taskflow Unbounded (adfc-config. XML) in my application is as follows

    security_tf.png

    Application is shared with several customers. The homepage of a customer's A.jsp and other D.jsp. The reason is that there are several pages are shared by them. for example. B.JSP and C.jsp

    The distinication between two clients's context path. Context path is different to one another. Context for client 1 path is ctx_path1 and for client 2 is ctx_path2.

    Since all the page mapping is adfc-config.xml file, when client 2 is being access to the application context path ctx_path2 help and the D.jsp homepage, after if there change the url to A.jsp (ctx_path2/A.jsp), it could reach A.jsp and then B.jsp so on. Client 2 is then able to access the application customer1 and vice versa by changing the URL.

    Note: There is correspondence of the page between either B.jsp and F.jsp C.jsp to E.jsp or C.jsp to G.jsp E.jsp to B.jsp so on.


    Now, I want to add security to the level of the page Let's say A.jsp, when a customer access request 2 using context path (say ctx_path2)... / ctx_path2/D.jsp, although if he change the URL in... / ctx_path2/A.jsp, the safety of the adf must block access to A.jsp (client application 1.)


    Please let me know the solution for the problem above mentioned above.

    Version Note: ADF - 11.1.1.6.0

    Thank you

    ASIS

    If you enable ADF security and have Customer1 and Customer2 associated with different Application roles, you can set a level for each page role permission, provided that each page has a definition of page each. This will automatically solve your problem of "access if URL.

    In addition, when you need to show/hide the navigation links based on the permissions of the user, you can use the visible property:

     

  • Flash intro (any flv) as the intro page (need help for the link)

    I have a clip that I imported into flash, used a skin and have a nice little player for this Web site intro. I want to go to the home page of sites at the end of the film. Looking but the best I could come up with a;

    player.addEventListener ("complete", function (item: event) {trace ("doneVideo"); new URLRequest ("my link") ;});})

    does not can not... someone help?

    If the name of your flvplayback component instance is flv, use:

    flv.addEventListener (Event.COMPLETE, f);

    function f (e: Event) {}

    navigateToURL (new URLRequest ("http://www.adobe.com"));

    }

  • flashing icon hits when I click on the Web pages, need help!

    When I click on a text or a web page the flashing icon you get when you type in a text box appears. I've been on other browsers firefox and they do not have it. How can I get rid of him?

    This has happened

    Each time Firefox opened

    Is a long time ago

    It seems that you have enabled the keyboard navigation - press F7 to turn it off.
    http://KB.mozillazine.org/accessibility.browsewithcaret

  • Need help with understanding PowerCli scripting by LucD

    Hello

    I'll give you the standard statement that I am a noob powercli and don't really know what I'm doing here.  Here's a script that works because it runs without error and gives a report but I need help to understand this under his weight.

    Connect-VIServer '< our vcenter >' - user < user > admin-password < admin-user-pwd >

    $allvms = @)

    $vms = get - Vm | where {$_.} PowerState - eq "Receptor"}

    $start = (get-Date). AddDays(-1)

    $metrics = "mem.usage.average".

    $stats = get-Stat-entity $vms - start $start - Stat $metrics

    $stats | Group-object - property {$_.} Timestamp.Day}, {$_.} @entity.name} | %{

    $vmstat = "" | Select the day, MemAlloc, MemMin, MemMax, MemAvg, VmName

    $vmstat. VmName = $_. Values [1]

    $vmstat. Day = $_. Group [0]. Timestamp.Date

    $mem = $_. Group | where {$_.} MetricId - eq "mem.usage.average"} | Measure-object-property value - average - Maximum - Minimum

    $vmstat. MemMax = [int] $mem. Maximum ##dfsdf

    $vmstat. MemAvg = [int] $mem. Average

    $vmstat. MemMin = [int] $mem. Minimum

    $vmstat. MemAlloc = $_. Group [0]. Entity.MemoryMB

    $allvms += $vmstat

    }

    $allvms |

    Export-Csv "c:\ < folder > \ <>.csv file Destination"-noTypeInformation

    It connects to our server vcenter server and offers two days of data.  Today and yesterday, all with a timestamp of 0:00.  See below for an example of a virtual machine.

    VmNameDayMemAllocMemMaxMemAvgMemMin
    < name VM1 >07/05/2016 0:004096181818
    < name VM1 >06/05/2016 0:0040963612

    8

    The MemMax, the MemAvg and the MemMin are for this day?  Just the max of this period of sampling time 0:00?

    What I'm looking for, it is to find that the use of the maximum memory of virtual machines are for the whole day.  So I hope that I can remove memory of VMs that do not use it.  I was listed on the change $start = (Get-Date). The value of AddDays(-1) to $start = (Get-Date). AddDays(-30) and see what things alike.  I want to be sure however that the value for MemMax is the highest value for a period of 24 hours.  That is to say for the 07/05/2016 the given virtual machine never used a maximum of 18% of his memory attributed the 06/05/2016 the maximum amount of memory used was 36%, and so on that I extend on the date range.

    Kind regards

    Michael

    It then becomes a rather simple Get-Stat script.

    $vms = get - Vm | where {$_.} PowerState - eq "Receptor"}

    $start = (get-Date). AddDays(-1)

    $metrics = "mem.usage.average".

    Get-Stat - entity $vms - start $start - Stat $metrics |

    Select Timestamp,@{N='VM'; E={$_. @entity.name}}, Value |

    Tri-objet-VM property |

    Export-Csv "c:\------.csv '-noTypeInformation

  • Need help with setting up in checkbox in interactive reports

    I need help with setting up in checkbox in interactive reports, I use this statement a query

    SELECT apex_item.checkbox

    (

    1, ROLEID,

    'onchange = "spCheckChange (this);". ',

    : F_ROLEID_LIST,.

    ':'

    ), del.

    ROLEID, ROLEDESCRIPTION

    OF EBA_ROLES

    When I run it I get the following

    < input type = "checkbox" name = "f01" value = "1" onchange = "spCheckChange (this); ' / > instead of the checkbox

    Do I need to configure anything else

    Aditya Gupta wrote:

    I need help with setting up in checkbox in interactive reports, I use this statement a query

    SELECT apex_item.checkbox

    (

    1, ROLEID,

    'onchange = "spCheckChange (this);". ',

    : F_ROLEID_LIST,.

    ':'

    ), del.

    ROLEID, ROLEDESCRIPTION

    OF EBA_ROLES

    When I run it I get the following

    instead of the checkbox

    Do I need to configure anything else

    This is one of the most frequently asked questions in this forum. Set the column attribute the text to display as Standard report column and not display text (special escape characters).


    Always include the information referred to in these guidelines when you ask a question and if you use APEX 5.0, State, if you develop using the pages or the view of the component designer.

  • Need help call a modal window of an interactive report

    Version 4.1.1.00.23

    Hello

    I have an interactive report I need to have a column in the report as a link to call a modal window that allows to display a report containing details of the clicked column.

    I have a page created with the report to view the details. I need help with the appeal of the page and display it as a modal window.

    I tried the modal Skillbuilders plugin, but it does not work because of an error that a.colorbox is not a function, and I don't know what to do about this.

    Can someone help me?

    Can what information I provide?

    Thank you

    Joe

    Greg,

    I felt that it was a separate subject than this thread.

    The thread was about a question I had with the plugin not show and this thread is more a general question.

    I referred to the plug-in here to avoid time wasting people telling me to this topic.

    I'm closing this thread.

    Thank you

    Joe

  • I need help on creating reports on the intranet.

    I need help on creating reports on the intranet.
    My level: Beginner cf.
    Y at - it a book for report design? And structures for reports?
    ------------------------------------------------requirements
    my form needs one

    · Date of the box you want. (from and to).
    · Option button to choose the csv and html
    · Run and throw out the results in a tabular format. (grids, cell)


    How many cfm pages do need me for this? E.g. display, action.
    What called what?
    What else do I need?

    I suggest that you put your project on hold for a little everything and get and read the chapters appropriate Web Application Construction Kit of Ben Forta. You can learn more about it here - http://www.forta.com/books/0321223675/. Once you have the concepts down, you will have a much more concentrated idea on what to do.

  • In fact, I need help but can't find the answer. Please... Lately when it is open a new tab it does not open with a blank page. I don't want to put my home page as

    In fact, I need help but can't find the answer.
    Please... Lately when it is open a new tab it does not open with a blank page. I don't want to put my home page as empty as when I open Firefox, it automatically load my hotmail page. But then if I open other pages I don't get a blank page. Help, please?
    Thank you.

    [Personal information deleted by the moderator. Please read the guidelines and rules of the Forum, thank you.]

    Hello, please refer to customize the page new tab to turn off the function.

  • Need help in the development of different customized reports for SCCM 2012 using the Report Builder version 3.0

    Members of the Group of respected

    I need your urgent assistance to solve my problem, if someone who at least somewhat or large information please help me.
    My problem is related to SCCM 2012 and SQL server 2008.
    : - I have to develop a custom reports for SCCM 2012 for one of my clients. I have configured all the settings required for preparing the report, and I have examples of reports provided with sccm 2012.
    I get the problem while developing new relationships, if I have examples of reports that I have studied the corresponding reports. I don't get detailed information from the database to create query and get the desired result. As I have not idea of detail of this database structure in it.
    So I need help to create the query as I am new on this database.
    If anyone understand please give me help or link where I can build the report
    Thanks in advance.

    Forums for this product are here: http://social.technet.microsoft.com/forums/en-US/category/configurationmanager/

  • How do we install a page active desktop, my windows vista, my xp and windows 7, as all three, I need help please

    I really need to insall a active wallpaper but don't know how to do in this regard, I have a XP, Vista and Windows7 computer, can someone tell me how to on this subject, I really want to put on one of my creations, but need help.

    I really need to insall a active wallpaper but don't know how to do in this regard, I have a XP, Vista and Windows7 computer, can someone tell me how to on this subject, I really want to put on one of my creations, but need help.

    Hey jennyanderson99

    as you ask specifically about active desktop, here's what it is, or in your case what she was before vista released

    Active Desktop is a feature of Microsoft Internet Explorer 4.0 Windows Desktop Update that allows the user to add optional contentHTML on the Office, as well as a few other features. This feature was designed to be installed on theWindows 95 operating system then in force. It was also included inWindows 98 and later Windows operating systems up toWindows Vista, where the feature wasdiscontinued. This corresponds to the version ofInternet Explorer 4.0 to 6.x, but not Internet Explorer 7.

    HTML users can add in place of the ordinary wallpaper as independent resizable desktop items. Items available online can be regularly updated and synchronized so that users can stay up-to-date without visiting the site in their browser.

    Active Desktop works as the technology of desktop widget that allows users to add customized their desktop information.

    Here is information for active desktop for xp

    http://www.ehow.com/how_6366085_make-XP-Active-Desktop.html

    information from wikipedia about active desktop are less than

    http://en.Wikipedia.org/wiki/Active_Desktop

    The introduction of the Active Desktop brand attempt by Microsoft to take advantage of the ephemeral trendtechnology push led by PointCast. Active Desktop has imposed a number of "channels" ofdesktop computers that provided information updated continuously, such as headlines and stock quotes, without the user to open aWeb browser of the user.

    Active Desktop debuted during the publication of 1997 of Internet Explorer 4.0 for Windows 95 and Windows NT 4.0, install it as a feature of theWindows Desktop Update offered to users during the upgrade option. The Windows desktop update is commonly referred to as (bad) Active Desktop itself, but it is actually a whole Windows shell to level v4.0 to v4.71, or v4.72, with many changes in the Windows interface, resulting in a level look and features almost indistinguishable from the Windows 98, then again to-be-released. Features include the ability to allow uppercase filenames (the old v4.0 Desktop would forcibly filenames in title case uppercase), the dynamic tracking file selection click configurable, customizable by HTML, QuickLaunch folder display settings mini buttons on the taskbar next to the Start button, improved to Start Menu drag and drop re-organization of the elements and menus contextual click right to rename point etc. With the update, Windows Explorer now has an address bar in Internet addresses that can be entered and driven seamlessly.

    Active Desktop was widely regarded as a failure, with one of the main problems being its use high system and reduction of the stability of the system resources. Although not used[citation needed], the availability of Active Desktop was decisive for the legal argument Microsoft in antitrust case of United States v. Microsoft , that Internet Explorer has a feature of Windows, not a separate product.

    Later use

    Windows Vista has replaced the Active Desktop withWindows Sidebar (now called Gadgets Windows Desktop fromWindows 7), which also allows the components to add to the desktop. Windows XP is the newest operating system from Microsoft to support Active Desktop. It seems that the 64 bit version of Windows XP supports is no longer Active Desktop. It provides always the option to display Web pages and channels built with MicrosoftChannel Definition Format (CDF) on the desktop.

    Display HTML features are now mainly used for creating wallpapers originals and adding the fields of desktop search. For example, a user can copy the following code to display the search box of Wikipedia on the desktop:

    Walter, the time zone traveller

  • After you configure the new printer Hp Officejet Pro 8625 on Windows 7, it will not print the page of 'test' I need help!

    After setting up my new printer Hp Officejet Pro 8625 on Windows 7, it will not print the Page of 'Test '.  I need help!

    Also, when I roll over the image of the printer in the task bar, he says '0' of documents, so that it does not print.

    After setting up my new printer Hp Officejet Pro 8625 on Windows 7, it will not print the Page of 'Test '.  I need help!

    Also, when I roll over the image of the printer in the task bar, he says '0' of documents, so that it does not print.

    Thanks to everyone who responded to my help regarding my Hp OJ Pro 8625.  After all, I ended up doing a clean reinstall of my MS Windows 7, and reinstalling the Hp JO 8625 Pro software and that's all working now.  Some hoe there is a glitch in my Windows 7 that did not leave the Hp software to install correctly.  Once again thank YOU ALL!

Maybe you are looking for