How to make this work in php

Hello,
I am fairly new to php and am having problems working out the
best way to go about doing what i want to do.
I want users of my system to be able to choose from a
selection of images which they have earlier uploaded. I am using a
system where the picture show is the one with the number 1 in the
`use` colum of a mysql database, only i dont know how to make it so
a user can change that number.
Any help will be greatly appreicated weather that is how to
get the above to work , or ideas of a different system i could use
to have the same effect,
thank you,
James

From the problem you're describing, I would set it up like
this:
Db1_Table 1 (tbl_Images)
Columns
1) id
2) image_location
Db1_Table 2 (tbl_UserPrefs)
1) id
2) user_name
etc...
x) image_location
So, in your user preferences, use a dynamic drop down. The
values will come from Db1_Table 1.
When the user submits the changes to his preferences, the
value from the dynamic drop down will go into Db1_Table 2.
You'll need to have 2 Recordsets for this to work, of course.
edit: you can also have something else besides a drop down,
ex: autocomplete text field or option buttons.

Similar Messages

  • TS2634 I bought a composite AV cable with 30 pin connector at a proper apple store for my ipad 2 which no longer works now i have updated to ios7 - please advise how to make this work ?

    I bought a composite AV cable with 30 pin connector at a proper apple store for my ipad 2 which no longer works now i have updated to ios7 - please advise how to make this work ?

    I have the same problem.
    Two similar discussions:
    https://discussions.apple.com/message/23081658#23081658
    https://discussions.apple.com/message/23281391#23281391
    I have not yet seen any official response to the question: "Is the Apple AV Composite cable fully supported with 30pin connector devices upgraded with iOS7 - specifically ? - eg. iPad 2, iPhone 4, iPhone 4s"
    If it is not currently supported is that then due to a bug / oversight and in that case is it something that will be fixed in the near future?
    Please let us know what feedback you got from asking Apple support.

  • How to make this work with Firefox, HELP!

    Downloading for Real-player, after watching the full movie, I click download and it has to reread the movie from the internet. When using explorer, after downloading the movie, it reads it from memory, which makes it a fast download. How to make this work with Firefox, I like not to use Microsoft products, and I really like Firefox 7.0.1!!!! HELP!

    -> click '''Firefox''' button and click '''Options''' (OR File Menu -> Options)
    * Advanced panel -> Network tab
    * place Checkmark on '''Override Automatic Cache Management''' -> under '''Limit Cache''' specify a large size of space
    * Remove Checkmark from '''Tell me when websites asks to store data for offline use'''
    * click OK on Options window
    * Restart Firefox
    Check and tell if ts working.

  • How to make this work flow?

    Hi,
    In a target database such like MySQl, I define a colum role to store the roels in SIM. Then, I want to make a post-workflow that set the account with related role which is defined in the DB after reconciliation and move those accounts from this DB to a specified organzation.
    How to make this workflow?
    If anyone know about this, kindly help me...
    thanks..

    Just a thought... Are you able to run this as activesync? If you use activesync you could just use a form or metaview to merge (or replace) your role value with waveset.roles and set the org for accounts that correlate.
    -Rob

  • How to make this work with Firefox, I like not to use microsoft products! HELP!

    Downloading for Realplayer, after watching the full movie, I click download and it has to reread the movie from the internet. When using explorer, after downloading the movie, it reads it from memory, which makes it a fast download. Hoow to make this work with Firefox, I like not to use microsoft products, and I really like Firefox 7.0.1!!!! HELP!

    -> click '''Firefox''' button and click '''Options''' (OR File Menu -> Options)
    * Advanced panel -> Network tab
    * place Checkmark on '''Override Automatic Cache Management''' -> under '''Limit Cache''' specify a large size of space
    * Remove Checkmark from '''Tell me when websites asks to store data for offline use'''
    * click OK on Options window
    * Restart Firefox
    Check and tell if ts working.

  • How to make this work in IE?

    Hello,
    I'm trying to make my new website and it works well in all browsers except IE...
    what should I change to make links work?
    I use
    <li id="bgcolor_grafico"><a href="#grafico">Graphic design</a></li>
    <ul id="grafico">
            <li id="bgcolor_grafico">
                        <div class="portfolio">
                            <img src="pics/<?php if(!$row['icone']) { echo "indisponivel.jpg"; } else {echo $row['icone']; } ?>" width="293" height="284" />
                        </div>
            </li>
        </ul>
    the hand cursor appears, but the link doesn't do nothing...
    Thanks for help
    Pluda

    It works in IE7 as far as the link goes.
    The page does not render properly otherwise though. Not sure if it's because of the Javascript or the CSS.
    IE8:
    The page looks right but the links are not working, as you said.
    Not sure why but susspect that it's because you have the same ID and name on two different tags.
    Use only one, not the same thing on both the <ul> and the <a>.
    For IE8 this could be breaking either the Javascript, the Link, or both. See the example again for a way to separate the tags. I did not know you were using a javascript on the link. That will make a difference. Not sure the anchor tag will work. Depends on the script, but try it first before trying to figure out another way.
    I notice that the links do not work in FireFox if Javascript is turned off. That may be something to know while you are troubleshooting.

  • How to make this works. it's about Runtime.exec().

    hi' i really need help about this.
    i have 2 class file. one named GoodWindowsExec that used to execute another file named maintest. (i post my code below). When i run GoodWindowsExec there's no problem but not working correctly.
    What i need is i can write something directly from my keyboard not via GoodWindowsExec file. So maintest can run normally just like when i execute it manual (java maintest from commandprompt) and display the output. If you look at the maintest file, this file need input from user. But why i can't doing this directly? How to implement this?
    This is java code that i need to execute (maintest) just for sample :
    public class maintest
         public static void main(String[] args)
              try
                   BufferedReader bfr = new BufferedReader(new InputStreamReader(System.in));
                   System.out.print("Try input word : ");
                   String readInput = bfr.readLine();
                   /* String readInput = bfr.readLine(); i think this is the problem.
                    * If i remove this, GoodWindowsExec works fine.
                    * But i cannot remove it. This is my point.
                    * i want try to solve this */
                   System.out.println(readInput);
              catch(Exception e)
                   System.out.println(e);
    }This is my code (GoodWindowsExec) which used to execute maintest :
    public class GoodWindowsExec
         public GoodWindowsExec()
              try
                   String[] cmd = new String[]{"cmd.exe","/C","java","maintest"};
                Runtime rt = Runtime.getRuntime();
                   Process proc = rt.exec(cmd);
                   InputStream inStream = proc.getInputStream();
                   BufferedReader bfr = new BufferedReader(new InputStreamReader(inStream));
                   response res_in = new response(bfr);
                   InputStream errorStream = proc.getErrorStream();
                   BufferedReader errorBfr = new BufferedReader(new InputStreamReader(errorStream));
                   response res_err = new response(errorBfr);
                   res_in.start();
                   res_err.start();
                   OutputStream otStream = proc.getOutputStream();
                   DataOutputStream write = new DataOutputStream(otStream);
                   write.writeUTF("something");
                   /* write.writeUTF("something");
                    * i really don't know about this.
                    * if i declare this, the input not come from maintest / user directly.
                    * if i create some java editor application and want to execute some java code
                    * this is not right. cos input comes from this class not the execute class (maintest).
                    * How to make the input comes from user / execute class?
                   write.flush();
                   write.close();
                int exitVal = proc.waitFor();
                System.out.println("ExitValue: " + exitVal);       
              catch (Throwable t)
                 t.printStackTrace();
        public static void main(String args[])
              new GoodWindowsExec();
    class response extends Thread
         BufferedReader bfr;
         public response(BufferedReader bfr)
              this.bfr = bfr;
         public void run()
              try
                   String line = null;
                   while ( (line = bfr.readLine()) != null)
                             System.out.println(line);   
              catch (IOException ioe)
               ioe.printStackTrace(); 
    }Thank you very much...

    Hi' i think i have same problems with you. but now i think i got it after read this article. Thanks for both of you. specially sabre150.
    But i want to ask about this to sabre150. What if maintest try to request more than one input? How to handle it? and why Try input word : display at the second line? not the first line?
    i'm sorry if i modify this, but i change it like this :
    class outputer :
    public void run()
         try
              bfr = new BufferedReader(new InputStreamReader(System.in));
              String input = null;
              while ((input = bfr.readLine()) != null)
                   write.writeBytes(input);     
                   write.flush();
                   write.close();
         catch(Exception e)
              e.printStackTrace();
    }maintest :
    public class maintest
         public static void main(String[] args)
              try
                   BufferedReader bfr = new BufferedReader(new InputStreamReader(System.in));
                   System.out.print("Try input word : ");
                   String readInput = bfr.readLine();
                   System.out.println(readInput);
                   System.out.print("Try input word again : ");
                   String readInput2 = bfr.readLine();
                   System.out.println(readInput2);
              catch(Exception e)
                   System.out.println(e);
    }When i execute i got this :
    test //request for first input
    Try input word : test
    Try input word again : null
    ExitValue: 0
    halo //request for second input
    java.io.IOException: The handle is invalid
         at java.io.FileOutputStream.writeBytes(Native Method)
         at java.io.FileOutputStream.write(Unknown Source)
         at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
         at java.io.BufferedOutputStream.flush(Unknown Source)
         at java.io.DataOutputStream.flush(Unknown Source)
         at outputer.run(GoodWindowsExec.java:78)Maybe you know the answer sabre150?
    Thanks...
    Message was edited by:
    2Puluh11Lapan3

  • IOS 6 updated on my 3GS phone. The maps works well but does not give spoken turn by turn directions. Any ideas on how to make this work?

    Installed iOS6 on my 3GS phone. The maps app works well, but does not give spoken turn by turn directions.
    Any ideas on how to fix this?

    Go to http://www.apple.com/ios/maps/ and look at the bottom: Turn-by-turn navigation is available only on iPhone 4S, iPhone 5, and iPad 2 or later with cellular data capability. Flyover is available only on iPhone 4S, iPhone 5, iPad 2 or later, and iPod touch (5th generation). Cellular data charges may apply.
    You can always use the WAZE app like I do.

  • CRM 2013: Iframe does not display the url set in onform load event with setSrc. How to make this work?

    I have a situation we need to display a url in Iframe when a form is loading. the url is set in code with setSrc, or updated the query string value. this worked in crm 2004 not any more in 2013.  MSDN states the below to avoid in OnLoad event. what
    is the best way to handle this situation?  Searched web people recommend using setInterval which i dont want to use.
    Any help on this issue is appreciated. 
    https://msdn.microsoft.com/en-us/library/gg328034(v=crm.6).aspx
    Avoid using the OnLoad Event. IFRAMES and web resources load asynchronously and the frame may not have finished loading before the Onload event script finishes. This can cause the src property of the IFRAME or web resource
    you have changed to be overwritten by the default value of the IFRAME or web resource URL property.

    Thank you for you reply.  this URL you send uses window.setInterval which i am not comfortable using it. we need to call clearInterval(),
    if not the IFrame refresh every second. 
    function SetURL()
    if(Xrm.Page.ui.controls.get("IFRAME_ActivitySmmary")!=null)
    Xrm.Page.ui.controls.get("IFRAME_ActivitySmmary").setSrc(reportUrl + "&id="+ customerId);
                    Xrm.Page.ui.controls.get("IFRAME_ActivitySmmary").setVisible(true);
    else
    { window.setInterval("SetURL()",1000);}

  • How to make this work?

    I hope you'all experienced users can help.
    I come from a background of having worked for a County Govt. where we as the IT staff had Blackberrys. I am guessing they had a BES. I got used to that function! Now, I just bought an 8830 through Verizon, and I am somewhat frustrated. I was led to believe that I could make my new BB function with my POP3 accounts similarly to the way my old one did with Exch/Outlook email. That is:
    -When an email comes in, it is in both my inbox on my desktop AND on my Blackberry.
    -If I reply to an email on my BB, the reply will also show up on my desktop, and vice versa.
    For the record, I use Thunderbird.
    Can it work this way, or is that not possible w/o the BES? Can I get close? If so, how close and how do I do it?
    Thanks for the help.
    Eric Lorenz

    Your thunderbird email will come into BB and Outlook, but when you reply from BB, the sent message from BB will not show up on your outlook.
    Workaround is that you can set up autobcc email address in BIS, this will make your sent items from BB go to your email address as well.
    Now also you will set up a filter in BIS for not to receive messages from your thunderbird address ( as autobcc will go from your address). this will eliminate the autobcc sent email from coming back to device.
    Also in your outlook auto bcc messages will show as coming from your thunderbird address, you can set up  another filter in outlook to put all message received from your address in sent items on outlook.
    Click on KUDOS to appreciate our efforts and mark the thread RESOLVED if your issue is resolved.

  • How to make this content in PHP?

    create or replace package body VV_OM110_PKG is
    procedure main(errbuf out varchar2,
    retcode out varchar2,
    p_org_id in number,
    p_organization_id in number,
    p_segment1 in varchar2,
    p_company in varchar2,
    p_segment3 in varchar2,
    p_cust_id in number,
    p_category in varchar2,
    p_beg_date in varchar2,
    p_end_date in varchar2) is
    v_line VARCHAR2(3000);
    v_sub_title varchar2(100);
    begdate varchar2(20);
    enddate varchar2(20);
    v_company varchar2(50);
    v_item_count number:=0;--&#20135;&#21697;&#21697;&#31181;&#25968;
    v_rowsumqty number;--&#34892;&#25968;&#37327;&#27719;&#24635;
    v_rowsumamt number;--&#34892;&#37329;&#39069;&#27719;&#24635;
    v_total_qty number:=0;
    v_total_amt number:=0;
    i_counter number := 0;
    v_subinventory_name varchar2(80);
    v_label1 varchar2(20);
    v_column1 varchar2(60);
    v_phone_number varchar2(30);
    type rec_qty is record(
    id number,
    qty number,
    amt number);
    type number_array is table of number index by binary_integer;
    v_sumqty_per_com number_array;--&#27599;&#20844;&#21496;&#25968;&#37327;&#21512;&#35745;
    v_sumqty_all_com number_array;--&#25152;&#26377;&#20844;&#21496;&#25968;&#37327;&#21512;&#35745;
    v_sumamt_per_com number_array;--&#27599;&#20844;&#21496;&#37329;&#39069;&#21512;&#35745;
    v_sumamt_all_com number_array;--&#25152;&#26377;&#20844;&#21496;&#37329;&#39069;&#21512;&#35745;
    arr_item_id number_array;--&#20135;&#21697;&#28216;&#26631;&#30340;ITEM_ID
    type qty_array is table of rec_qty index by binary_integer;
    arr_qty qty_array;--qty&#28216;&#26631;&#35760;&#24405;&#25968;&#32452;
    cursor main is
    select distinct
    a.sales_branch,
    a.carrier,
    a.customer_name,
    a.trx_date,
    a.order_number,
    a.delivery_id
    from vv_wsh_temp_tl a,mtl_secondary_inventories b
    where to_char(a.subinventory_code) = b.secondary_inventory_name
    and b.organization_id = decode(p_organization_id,p_org_id,b.organization_id,p_organization_id)
    and nvl(b.attribute1,'~~$') = decode(p_org_id,81,'&#20869;&#22320;&#21378;',nvl(b.attribute1,'~~$'))
    and a.qty<>0
    and not exists (select 'X' from org_organization_definitions t
    where t.ORGANIZATION_ID in(86,87,89,90,91,92,93,94,95,96,97,98,99,100,110)
    and t.OPERATING_UNIT = 85
    and t.organization_id = a.organization_id);
    rec_main main%rowtype;
    cursor qty(l_delivery_id number,l_order_number number,l_trx_date varchar2) is
    select inventory_item_id,sum(qty) qty,sum(amt) amt
    from vv_wsh_temp_tl
    where delivery_id = l_delivery_id
    and order_number = l_order_number
    and trx_date = l_trx_date
    group by inventory_item_id;
    CURSOR ITEM IS
    select distinct g.segment1,h.segment1 seg1,a.inventory_item_id id,h.description des
    from vv_wsh_temp_tl a,
    MTL_ITEM_CATEGORIES_V g,
    mtl_system_items_b h
    where a.inventory_item_id=h.inventory_item_id
    and g.inventory_item_id=h.inventory_item_id
    and g.organization_id=h.organization_id
    --and a.sales_branch = nvl(p_company,a.sales_branch)
    --and a.customer_number = nvl(p_cust_number,a.customer_number)
    and h.organization_id = a.organization_id
    and h.organization_id = decode(p_organization_id,p_org_id,h.organization_id,p_organization_id)
    and not exists (select 'X' from org_organization_definitions t
    where t.ORGANIZATION_ID in(86,87,89,90,91,92,93,94,95,96,97,98,99,100,110)
    and t.OPERATING_UNIT = 85
    and t.organization_id = a.organization_id)
    order by g.segment1,h.segment1,a.inventory_item_id;
    Cursor subinventory_name(l_delivery_id number,l_order_number number,l_trx_date varchar2) Is
    Select Distinct substr(b.description,decode(p_org_id,81,8,82,7,5)) subinventory
    From vv_wsh_temp_tl a,mtl_secondary_inventories b
    Where to_char(a.subinventory_code) = b.secondary_inventory_name
    and b.organization_id = a.organization_id
    --and b.organization_id = decode(p_organization_id,p_org_id,b.organization_id,p_organization_id)
    and a.delivery_id = l_delivery_id
    and a.order_number = l_order_number
    And a.trx_date = l_trx_date
    And a.qty <> 0;
    Cursor phone_number(l_phone_number varchar2) is
    select a.phone_number
    from wsh_carriers w,
    wsh_carrier_contact_info_v a,
    wsh_carrier_contacts_v b
    where w.carrier_id = b.carrier_id
    and a.relation_party_id = b.relation_party_id
    and w.freight_code = l_phone_number;
    begin
    commit;
    vv_wsh_pkg.retrieval_data(
    p_org_id => p_org_id,
    p_organization_id => p_organization_id,
    p_subinventory_code => null,
    p_area => p_segment1,
    p_company => p_company,
    p_market => p_segment3,
    p_cust_id => p_cust_id,
    p_category => p_category,
    p_item_number => null,
    p_beg_date => p_beg_date,
    p_end_date => p_end_date);
    /*&#20135;&#21697;&#30340;&#31181;&#31867;&#25968;&#37327;*/
    select count(distinct a.inventory_item_id) into v_item_count
    from vv_wsh_temp_tl a,
    MTL_ITEM_CATEGORIES_V g,
    mtl_system_items_b h
    where a.inventory_item_id=h.inventory_item_id
    and g.inventory_item_id=h.inventory_item_id
    and g.organization_id=h.organization_id
    and h.organization_id = a.organization_id
    --and a.subinventory_code=nvl(p_subinventory_code,a.subinventory_code)
    and h.organization_id= decode(p_organization_id,p_org_id,h.organization_id,p_organization_id)
    and not exists (select 'X' from org_organization_definitions t
    where t.ORGANIZATION_ID in(86,87,89,90,91,92,93,94,95,96,97,98,99,100,110)
    and t.OPERATING_UNIT = 85
    and t.organization_id = a.organization_id);
    for i in item loop
    v_item_count := item%rowcount;
    end loop;
    for i in 1..v_item_count loop
    v_sumqty_per_com(i):=0;
    v_sumqty_all_com(i):=0;
    v_sumamt_per_com(i):=0;
    v_sumamt_all_com(i):=0;
    arr_item_id(i) := 0;
    end loop;
    --&#32452;&#21512;&#26597;&#35810;&#35828;&#26126;
    --v_sub_title := '';
    if p_company is not null then
    v_sub_title := p_company||'/';
    end if;
    if p_category is not null then
    v_sub_title := v_sub_title||p_category;
    end if;
    if p_beg_date is not null then
    Begdate := substr(p_beg_date,1,4)||'&#24180;'||substr(p_beg_date,5,2)||'&#26376;'||substr(p_beg_date,7,2)||'&#26085;'||substr(p_beg_date,9);
    v_sub_title := v_sub_title || Begdate ||' -' ;
    if p_end_date is null then
    v_sub_title := v_sub_title ||'&#33267;&#20170;';
    end if;
    end if;
    if p_end_date is not null then
    Enddate := substr(p_end_date,1,4)||'&#24180;'||substr(p_end_date,5,2)||'&#26376;'||substr(p_end_date,7,2)||'&#26085;'||substr(p_end_date,9);
    v_sub_title := v_sub_title || Enddate ||' -' ;
    if p_beg_date is null then
    v_sub_title := v_sub_title ||'&#33267;&#20170;';
    end if;
    end if;
    if substr(v_sub_title,-1,1) = '/' or substr(v_sub_title,-1,1) = '-' then
    v_sub_title := substr(v_sub_title,1,length(v_sub_title)-1);
    end if ;
    -----------------------&#26631;&#39064;-----------------
    v_line := '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">'||
    '<html><head><title>&#36135;&#29289;&#27969;&#21521;&#34920;</title></head><body>';
    fnd_file.put_line(fnd_file.output,v_line);
    v_line:='<table border="0" cellpadding="1" cellspacing="0" width="100%">
    <tr height="50" align="center">
    <td align="center" nowrap valign="middle" colspan ="2" ><B><p align="center">
    <font face="&#23435;&#20307;" color="red" size="3">&#36135;&#29289;&#27969;&#21521;&#34920;</font></B></p></td>
    </tr>';
    fnd_file.put_line(fnd_file.output,v_line);
    v_line:='<tr>
    <td align="left"><font face="&#23435;&#20307;" color="black" size="2">'||v_sub_title||'</font></td>
    <td align="right"><font face="&#23435;&#20307;" color="black" size="2"> </font></td>
    </tr>';
    fnd_file.put_line(fnd_file.output,v_line);
    --&#20083;&#19994;&#38656;&#35201;&#21333;&#25454;&#21495;&#65292;&#32780;&#32929;&#20221;&#38656;&#35201;&#20132;&#36135;&#21495;
    select decode(p_organization_id,82,'&#21333;&#25454;&#21495;','&#20132;&#36135;&#21495;') into v_label1 from dual;
    v_line :='<tr><td colspan="2"><table border="1" cellspacing="0" cellpadding ="4" width ="100%">
    <tr style = "font-size=12px" bgcolor="#cccccc">
    <td nowrap rowspan="2" valign="middle" align="center"> <b>' || v_label1 || '</b></td>';
    fnd_file.put_line(fnd_file.output,v_line);
    if p_org_id = 84 then
    v_line :='<td nowrap rowspan="2" valign="middle" align="center"> <b> &#21333;&#25454;&#21495;</b></td>';
    fnd_file.put_line(fnd_file.output,v_line);
    end if;
    v_line :=' <td nowrap rowspan="2" valign="middle" align="center"> <b> &#20998;&#20844;&#21496;</b></td>
    <td nowrap rowspan="2" valign="middle" align="center"> <b> &#38656;&#36135;&#21333;&#20301;</b></td>
    <td nowrap colspan="'||to_char(v_item_count)||'" valign="middle" align="center"><b>&#21697;&#31181;&#21450;&#25968;&#37327;&#65288;&#21333;&#20301;&#65306;&#20214;&#65289;</b></td>
    <td nowrap rowspan="2" valign="middle" align="center"> <b> &#21512;&#35745;</b></td>
    <td nowrap rowspan="2" valign="middle" align="center"> <b> &#21551;&#36816;&#26085;&#26399;</b></td>
    <td nowrap rowspan="2" valign="middle" align="center"> <b> &#25215;&#36816;&#20154;</b></td>
    <td nowrap rowspan="2" valign="middle" align="center"> <b> &#25215;&#36816;&#20154;&#30005;&#35805;&#21495;&#30721;</b></td>
    <td nowrap rowspan="2" valign="middle" align="center"> <b> &#35746;&#21333;&#21495;</b></td>
    <td nowrap rowspan="2" valign="middle" align="center"> <b> &#29983;&#20135;&#21378;</b></td>
    </tr><tr bgColor="#cccccc" style = "font-size=12px">';
    fnd_file.put_line(fnd_file.output,v_line);
    for rec_item in item loop
    v_line := '<td valign="middle" align="center"><b>' || rec_item.des || '</b></font></td>';
    fnd_file.put_line(fnd_file.output,v_line);
    arr_item_id(item%rowcount) := rec_item.id;
    end loop;
    v_line := '</tr>';
    fnd_file.put_line(fnd_file.output,v_line);
    ------------------&#20027;&#20307;-------------------------------
    open main;
    loop
    fetch main into rec_main;
    ---------------------&#20844;&#21496;&#27719;&#24635;--------------------------------------
    If (v_company Is Not Null And v_company <> rec_main.sales_branch) Or main%Notfound Then
    if p_org_id = 84 then
    v_line := '<tr bgcolor="#ccffff" style = "font-size=12px">
    <td nowrap colspan="4" valign="middle" align="center"><b>' || v_company || '&#23567;&#35745;</b></td>';
    fnd_file.put_line(fnd_file.output,v_line);
    else
    v_line := '<tr bgcolor="#ccffff" style = "font-size=12px">
    <td nowrap colspan="3" valign="middle" align="center"><b>' || v_company || '&#23567;&#35745;</b></td>';
    fnd_file.put_line(fnd_file.output,v_line);
    end if;
    for i in 1..v_item_count loop
    v_line :='<td nowrap valign="middle" align="right"><b>' || v_sumqty_per_com(i) || '</b></td>';
    fnd_file.put_line(fnd_file.output,v_line);
    v_sumqty_per_com(i) := 0;
    v_sumamt_per_com(i) := 0;
    end loop;
    v_line :='<td nowrap valign="middle" align="right"><b>' || v_total_qty || '</b></td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>';
    fnd_file.put_line(fnd_file.output,v_line);
    v_total_qty := 0;
    v_total_amt := 0;
    end if;
    exit when main%notfound;
    v_rowsumqty := 0;
    v_rowsumamt := 0;
    v_company := rec_main.sales_branch;
    --&#21462;&#24471;&#20083;&#19994;&#21333;&#25454;&#21495;
    if p_organization_id = 82 then
    v_column1 := vv_wsh_pkg.get_bill_of_doc_number(rec_main.delivery_id);
    else
    v_column1 := rec_main.delivery_id;
    end if;
    v_line := '<tr style = "font-size=12px">
    <td nowrap valign="middle">' || v_column1 || ' </td>';
    fnd_file.put_line(fnd_file.output,v_line);
    if p_org_id = 84 then
    v_line := '<td nowrap valign="middle">' || vv_wsh_pkg.get_bill_of_doc_number(rec_main.delivery_id) ||' </td>';
    fnd_file.put_line(fnd_file.output,v_line);
    end if;
    v_line := '<td nowrap valign="middle">' || rec_main.sales_branch || '</td>
    <td nowrap valign="middle">' || rec_main.customer_name || '</td>';
    fnd_file.put_line(fnd_file.output,v_line);
    for rec_qty in qty(rec_main.delivery_id,rec_main.order_number,rec_main.trx_date) loop
    arr_qty(qty%rowcount).id := rec_qty.inventory_item_id;
    arr_qty(qty%rowcount).qty := rec_qty.qty;
    arr_qty(qty%rowcount).amt := rec_qty.amt;
    v_rowsumqty := v_rowsumqty+arr_qty(qty%rowcount).qty;
    v_rowsumamt := v_rowsumamt+arr_qty(qty%rowcount).amt;
    i_counter := qty%rowcount;
    end loop;
    for i in 1..arr_item_id.count loop
    for j in 1..i_counter loop
    if arr_qty(j).id = arr_item_id(i) then
    v_line := '<td nowrap valign="middle" align="right">' || to_char(arr_qty(j).qty) || '</td>';
    v_sumqty_per_com(i) := v_sumqty_per_com(i)+arr_qty(j).qty;
    v_sumqty_all_com(i) := v_sumqty_all_com(i)+arr_qty(j).qty;
    v_sumamt_per_com(i) := v_sumamt_per_com(i)+arr_qty(j).amt;
    v_sumamt_all_com(i) := v_sumamt_all_com(i)+arr_qty(j).amt;
    exit;
    else
    v_line := '<td nowrap valign="middle"> </td>';
    end if;
    end loop;
    fnd_file.put_line(fnd_file.output,v_line);
    end loop;
    --&#29983;&#20135;&#21378;&#21517;&#31216;
    for rec_subinventory in subinventory_name(rec_main.delivery_id,rec_main.order_number,rec_main.trx_date) loop
    If subinventory_name%Rowcount = 1 Then
    v_subinventory_name := rec_subinventory.subinventory;
    else
    v_subinventory_name := v_subinventory_name || ',' || rec_subinventory.subinventory;
    End If;
    end loop;
    --&#25215;&#36816;&#20154;&#30005;&#35805;
    for rec_phone_number in phone_number(rec_main.carrier) loop
    If phone_number%Rowcount = 1 Then
    v_phone_number := rec_phone_number.phone_number;
    else
    v_phone_number := v_phone_number || ',' || rec_phone_number.phone_number;
    End If;
    end loop;
    /* begin
    select a.phone_number into phone_number
    from wsh_carriers w,
    wsh_carrier_contact_info_v a,
    wsh_carrier_contacts_v b
    where w.carrier_id = b.carrier_id
    and a.relation_party_id = b.relation_party_id
    and w.freight_code = rec_main.carrier;
    exception when others then
    phone_number := '';
    end; */
    v_line := '<td nowrap valign="middle" align="right"> <font color="#0000FF">'||v_rowsumqty||'</td>
    <td nowrap valign="middle">' || rec_main.trx_date ||'</td>
    <td nowrap valign="middle">' || rec_main.carrier ||' </td>
    <td nowrap valign="middle">' || v_phone_number ||' </td>
    <td nowrap valign="middle">' || rec_main.order_number ||'</td>
    <td nowrap valign="middle">' || v_subinventory_name ||'</td>
    </tr>';
    fnd_file.put_line(fnd_file.output,v_line);
    v_total_qty := v_total_qty+v_rowsumqty;
    v_total_amt := v_total_amt+v_rowsumamt;
    v_phone_number := '';
    end loop;
    close main;
    commit;
    --------------------&#25968;&#37327;&#27719;&#24635;------------------------------------
    if p_org_id = 84 then
    v_line := '<tr bgcolor="#cccccc" style = "font-size=12px">
    <td nowrap colspan="4" valign="middle" align="center"><b>&#24635;&#35745;</b></td>';
    fnd_file.put_line(fnd_file.output,v_line);
    else
    v_line := '<tr bgcolor="#cccccc" style = "font-size=12px">
    <td nowrap colspan="3" valign="middle" align="center"><b>&#24635;&#35745;</b></td>';
    fnd_file.put_line(fnd_file.output,v_line);
    end if;
    for i in 1..v_item_count loop
    v_line :='<td nowrap valign="middle" align="right"><b>' || v_sumqty_all_com(i) || '</b></td>';
    fnd_file.put_line(fnd_file.output,v_line);
    v_total_qty := v_total_qty+v_sumqty_all_com(i);
    v_total_amt := v_total_amt+v_sumamt_all_com(i);
    end loop;
    v_line :='<td nowrap valign="middle" align="right" ><b>' || v_total_qty || '</b></td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>';
    fnd_file.put_line(fnd_file.output,v_line);
    v_line := '</table></td></tr></table></body></html>';
    fnd_file.put_line(fnd_file.output,v_line);
    end main;
    end VV_OM110_PKG;
    how to use php write this ?
    can who help me?

    Perhaps a shorter example would be more appropriate to ask about.
    Use bbcode code tag http://www.phpbb.com/phpBB/faq.php?mode=bbcode#5 to enclose code.
    -- cj

  • How to make this work selecting advanced record set dreamweaver complains and crashes all the time

    Hi There
    I have met a person who does php and sql work but not with dreamweaver. The code I have works but dreamweaver shows me an error with my record sets and it crash all the time.
    <?php require_once('../Connections/datexdatabase.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (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 "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    if($_GET['pageID']==''){
        $pageId = 1;
    }else{
        $pageId = $_GET['pageID'];
    mysql_select_db($database_datexdatabase, $datexdatabase);
    $query_rsIndex = "SELECT pages.title, pages.meta_keywords, pages.meta_description, content.header, content.`description`
    FROM pages INNER JOIN content ON pages.id = content.page_id WHERE pages.id = ".$pageId." ORDER BY content.order";
    $rsIndex = mysql_query($query_rsIndex, $datexdatabase) or die(mysql_error());
    $row_rsIndex = mysql_fetch_assoc($rsIndex);
    $totalRows_rsIndex = mysql_num_rows($rsIndex);
    ?>
    <?php do { ?>
            <?php if($row_rsIndex['header'] != 'Introduction'){ ?>
            <b><?php echo $row_rsIndex['header']; ?></b>
            <?php } ?>
            <p><?php echo$row_rsIndex['description']; ?></p>
            <?php } while ($row_rsIndex = mysql_fetch_assoc($rsIndex)); ?>
    <?php
    mysql_free_result($rsIndex);
    ?>
    I am able to join the tables in the advanced recordset but i am getting confused with "" FROM pages INNER JOIN content ON pages.id = content.page_id WHERE pages.id = ".$pageId." ORDER BY content.order";"
    mysql_select_db($database_datexdatabase, $datexdatabase);
    $query_rsIndex = "SELECT pages.title, pages.meta_keywords, pages.meta_description, content.header, content.`description`
    FROM pages INNER JOIN content ON pages.id = content.page_id WHERE pages.id = ".$pageId." ORDER BY content.order";
    My question is how can I use dreamweaver with the advanced recordset with the pageID without dreamweaver crashing 20 times a day
    Regards

    My question is how can I use dreamweaver with the advanced recordset with the pageID without dreamweaver crashing 20 times a day
    Do you get any errors in Dreamweaver when it crashes?
    What version?
    What OS?
    Have you tried trashing recreating the user config folder ( http://kb2.adobe.com/cps/405/kb405604.html#main_user_config )?
    Have you tried trashing the preferences ( http://kb2.adobe.com/cps/839/cpsid_83912.html )?
    Has anything changed on the system recently (from program installs, to system / OS updates)?
    Have you tried creating a new user account on the system to verify there is no corruption in the current user's system data?

  • Restore-SBFarm - How to make this work?

    Hi, I've read through some docs on the restore-sbfarm cmdlet, which according to Microsoft does the same as new-sbfarm except with existing databases (full of data one would assume). Restore-SBFarm
    I have tried to do this, but I keep running into an existing database error. If you try to use new-sbfarm against an existing set of databases you will get a 'database...is already configured' error. Fair enough, but I am getting this with the restore-sbfarm
    command.
    Restore-SBFarm -GatewayDBConnectionString "Data Source=10.xx.xx.22;Initial Catalog=SbGatewayDatabase;User ID=servicebusfarm;Password=xxxx"
    -SBFarmDBConnectionString "Data Source=10.xx.xx.22;Initial Catalog=SbManagementDB;User ID=servicebusfarm;Password=xxxx"
    -FarmCertificateThumbprint '35B05CA7404141FD82142C0l9815456537' -RunAsAccount Administrator -CertificateAutoGenerationKey $CertKey
    It then throws this:
    Restore-SBFarm : Cannot validate argument on parameter
    'SBFarmDBConnectionString'. The database (SbManagementDB) located at SQL
    Server (10.xx.xx.22) is already configured.
    At line:1 char:172
    + Restore-SBFarm -GatewayDBConnectionString "Data Source=10.xx.xx.22;Initial
    Catal ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
        + CategoryInfo          : InvalidData: (:) [Restore-SBFarm], ParameterBind
       ingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Servi
       ceBus.Commands.RestoreSBFarm
    I have tried a different certkey password, which I believe is used to encrypt the contents? All of the other parameters should be OK.
    Thanks

    -> click '''Firefox''' button and click '''Options''' (OR File Menu -> Options)
    * Advanced panel -> Network tab
    * place Checkmark on '''Override Automatic Cache Management''' -> under '''Limit Cache''' specify a large size of space
    * Remove Checkmark from '''Tell me when websites asks to store data for offline use'''
    * click OK on Options window
    * Restart Firefox
    Check and tell if ts working.

  • I need to sync my laptop and iphone to my bosses laptop and iphone.  Can two apple users share the same icloud?  If not, any suggestions on how to make this work?  We need to be able to pull files, etc

    I need to sync my laptop and iphone with my bosses laptop and iphone.  We need to be able to have access to the same files. 
    Any suggestions?

    Yes you can both use the same iCloud account.

  • I just got the new Ipad. When I try to send a message to my friends Iphone the blue send icon wont work.  Anybody have any advice on how to make this work.

    The blue icon is there, its just isnt bolded and doesnt do anything when i press it.  Please help!

    First, try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. When the screen goes blank then power ON again in the normal way.] It is 'appsolutely' safe!
    Then, see here http://support.apple.com/kb/HT3529

Maybe you are looking for

  • Performance Problems with MS IE 6.0 and EP 7.0 (2004s)

    Hello, we have a problem with ie 6.0 webbrowser and EP 7.0 (2004s). When we open for example the theme editor in the ep-system-administration site we must wait with MS ie 6.0 webbrowser ~ 18s for the site opening. With firefox 2.0 we can open the the

  • Aspect Ratio changes after relocating files

    When I put my video files on a mybook for backup and after reconnecting the media something strange happened. I lost a part of my picture, as if the image has been zoomed in. How can I get my original image back? All this using Final Cut Express 4.0.

  • Lost Playlist info

    I recently had to replace the logic board on my Powerbook G4 and have been reinstalling my iTunes library from my external harddrive. Everything has reinstalled except my Beatles music. The individual songs show up but not as separate albums. Any ide

  • CRM 7.0 Material Search and MDM

    How could MDM be used in CRM 70 , in order to have a better/quicker material search functionality ? can the same be done for ECC ( pre-requisite, having all the characteristic defined in MDM) . Any presentation on the topic will help . Thank you.

  • Blurry zoom on my iPad

    Just recently when i try to zoom in on a PDF file in my email on my iPad, the file will zoom but is all blurry. It never comes into focus. Not sure if the is is an issue after update with some settings changes. Works fine on my iPhone 5s, but not on