Multiple a single variable

I have a set rental amount with some variable making an equation. The final variable is the TOTAL of all the equations, i need the total of this variable
<?php //option 1 52 weeks
$weeklyToStudent = $row_rsTenProp['rental_price'];
$fourWeeksSecurityDep = 4 * $weeklyToStudent;
$fivetwoWeeksPayable = $weeklyToStudent * 52;
$fee = 184.80;
$resFee = 250;
$fivetwoPayIncFeedSecDep = $fourWeeksSecurityDep + $fivetwoWeeksPayable + $fee;
$initPay15Wks = $weeklyToStudent*15;
$initPay15WksFeeSecDep = $initPay15Wks + $fee + $fourWeeksSecurityDep;
$balanceB4MovingIn = $initPay15WksFeeSecDep - $resFee;
$second14Wks = $weeklyToStudent * 14;
$third14Wks = $weeklyToStudent * 14;
$fourth9Wks = $weeklyToStudent * 9;
$totalPayment = $initPay15WksFeeSecDep + $second14Wks + $third14Wks + $fourth9Wks;
?>
            <?php do { ?>
              <tr>
                <td class="table-text"><a href="customer-info.php?recordID=<?php echo $row_rsTenProp['userid']; ?>"><?php echo $row_rsTenProp['userid']; ?></a></td>
                <td class="table-text"><?php echo $row_rsTenProp['weeks'] / 7; ?> weeks</td>
                <td class="table-text"><?php echo $row_rsTenProp['payment_option']; ?></td>
                <td class="table-text"><?php echo $row_rsTenProp['rental_price']; ?></td>
                <td class="table-text"><?php echo $row_rsTenProp['prop_id']; ?></td>
                <td class="table-text"><?php echo DoFormatCurrency($totalPayment, 2, ',', '.', '£ '); ?></td>
                <td> </td>
                <td> </td>
              </tr>
              <?php
                                } while ($row_rsTenProp = mysql_fetch_assoc($rsTenProp)); ?>
i need to multiple the $totalPayment to get the TOTAL of this variable
i have done this
  <?php
  $utilTotal = 0;
  $utilTotal =+$totalPayment ;
?>
            <p><?php
echo $utilTotal ?></p><
this is just giving me the first total, i know i need to add a loop in here somewhere but dont know where.
thanks in advance

Global VB variable is one option

Similar Messages

  • Can I use a single variable over multiple Scripts?

    Hi ,
    I wanted to create a single variable and then intend to use in multiple scripts(using maping that variable).
    Is it possible??
    I had tried it by adding that variable to the Library,but I am not able access it .
    any suggesions??
    Thanks
    Usoni

    Global VB variable is one option

  • Multiple ViewObjects with single variables

    Hi
    I am using jdev10g.
    Is it possible to search by single variable on 3 ViewObjects.
    I posted by issues as Problem with ViewObjects but I am not cleared.
    Please any one help me.
    Thanks

    Hi
    This is The Applicaton Moduleclass Where i have to add above code, And where vo method are generated. Please give some steps from scrach
    package sales;
    import oracle.jbo.server.ApplicationModuleImpl;
    import oracle.jbo.server.ViewLinkImpl;
    // ---    File generated by Oracle ADF Business Components Design Time.
    // ---    Custom code may be added to this class.
    // ---    Warning: Do not modify method signatures of generated methods.
    public class AppModuleImpl extends ApplicationModuleImpl {
        /**This is the default constructor (do not remove)
        public AppModuleImpl() {
        /**Sample main for debugging Business Components code using the tester.
        public static void main(String[] args) {
            launchTester("sales", /* package name */
          "AppModuleLocal" /* Configuration Name */);
        /**Container's getter for SalesForecastView1
        public SalesForecastViewImpl getSalesForecastView1() {
            return (SalesForecastViewImpl)findViewObject("SalesForecastView1");
        /**Container's getter for RevenueForecastView1
        public RevenueForecastViewImpl getRevenueForecastView1() {
            return (RevenueForecastViewImpl)findViewObject("RevenueForecastView1");
        /**Container's getter for ActualSales1
        public ActualSalesImpl getActualSales1() {
            return (ActualSalesImpl)findViewObject("ActualSales1");
        /**Container's getter for TargetSales1
        public TargetSalesImpl getTargetSales1() {
            return (TargetSalesImpl)findViewObject("TargetSales1");
        /**Container's getter for SalesComponents1
        public SalesComponentsImpl getSalesComponents1() {
            return (SalesComponentsImpl)findViewObject("SalesComponents1");
        /**Container's getter for Dept1
        public DeptImpl getDept1() {
            return (DeptImpl)findViewObject("Dept1");
        /**Container's getter for Emp1
        public EmpImpl getEmp1() {
            return (EmpImpl)findViewObject("Emp1");
    }Thanks
    NR

  • Adding Multiple Task Sequence Variables to Devices using C#

    Hello,
    I am hoping someone can help me with a small program I am writing for our company.  We are writing a small program in C# to import computers to a particular imaging collection and we need 2 variables set.  We have been able to create a single variable
    using this guide: http://msdn.microsoft.com/en-us/library/jj218235.aspx
    The problem is that when we write the 2nd variable, the first one is overwritten.  It looks like that property is an array.  I've been trying to find a way, either using the SCCM 2012 R2 SDK or just adding it via the standard System.Management
    functionality.
    I'm sure there is a way to do it, the Powershell CMDLets will add variables rather than overwrite.  We are trying to avoid that due to some PowerShell restrictions.
    Any help would be much appreciate, I'm sure the answer is not as difficult as I'm making it but I'm stuck as I am not really a programmer, but, like many of us, have to function as one at times.
    Thanks!

    Certainly, here you are (I've removed some company-specific info and replaced it with generic info). I'll note - this code does work to add a variable to a device in SCCM. When adding multiple variables though, the first one is replaced. This code only seems
    to work for adding 1 variable which is what is causing me the headache.
    privatevoidAddVariable()
    SmsNamedValuesDictionarynamedValues
    =newSmsNamedValuesDictionary();
    WqlConnectionManagerconnection
    =newWqlConnectionManager(namedValues);
    connection.Connect("SCCMSITESERVER");
    try
    // Get the computer settings.
    // strResourceID is obtained via separate method “GETRESOURCEID()”
    IResultObjectcomputerSettings
    =null;
    IResultObjectcomputerSettingsQuery
    = connection.QueryProcessor.ExecuteQuery(
    "Select * from SMS_MachineSettings where ResourceId = '"+strResourceID
    +"'");
    foreach(IResultObjectsettings
    incomputerSettingsQuery)
    computerSettings = settings;
    if(computerSettings
    == null) // It doesn't exist, so create it.
    computerSettings = connection.CreateInstance(@"SMS_MachineSettings");
    computerSettings["ResourceID"].StringValue
    = strResourceID;
    computerSettings["SourceSite"].StringValue
    = "SITECODE";
          computerSettings["LocaleID"].IntegerValue
    = 1033;
    computerSettings.Put();
    computerSettings.Get();
    // Create the computer variable.
    List<IResultObject>computerVariables
    = computerSettings.GetArrayItems("MachineVariables");
    IResultObjectcomputerVariable
    =  connection.CreateEmbeddedObjectInstance("SMS_MachineVariable");
    computerVariable["Name"].StringValue
    = strVariableName;
    computerVariable["Value"].StringValue
    = strVariableValue;
    computerVariable["IsMasked"].BooleanValue
    = false;
    // Add the computer variable to the computer settings.
            computerVariables.Add(computerVariable);
    computerSettings.SetArrayItems("MachineVariables",
    computerVariables);
    computerSettings.Put();
    catch(SmsExceptione)
    MessageBox.Show("Failed
    to create computer variable: "+ e.Message);
    connection.Close();
    Thank you for your help

  • Is there a way to restrict two infoproviders of different characterisitcs by creating single variables

    Hi Experts,
    I am new to BEx. I am facing some issues in variable creation. I have two infoproviders(composite provider in my case). One infoprovider is loaded with ECC data and another infoprovider is loaded with transaction data. In reporting layer, our requirement is to show 3 dashboards all together by using tabs and filter panel should be same for all the 3 dashboards.
    For example, one of the filter panel variable is "date range", our requirement is to use one "date range" variable to restrict all 3 dashboards. Since the characteristics of these two infoproviders are different like 0calday for transaction data and 0ship_date for ECC date. So I couldnt create a single variable for these two infoproviders(since the characteristics are different).
    But I want to know, is there any other way to meet our requirement in BEx.
    Thanks in Advance.
    Regards
    Saranya S

    Hi Saranya,
    i think you need to post this question in Business objects forum.
    but since you are usign composite provider, you can map the0calday with 0ship_date right?
    so that it will be one object for filters working on this composite provider?
    Regards,
    Sakthi

  • Use a single variable value to compare with 2 characteristics

    Hi guys
        I need some advice on how to use a single variable value to compare with 2 characteristics in a Infocube.
    eg : I hv 2 characteristics in Infocube
           Launch date  &  Closing Date
       Now I want to display report where the variable date (inputted by user) is equal to Launch Date and Closing Date.
        with regards

    Bobby,
    if I right understood your situation, you have an input variable ZINPUT (related to a date 'A') and 2 others dates (yours Launch and Closing dates, 'B' and 'C').
    You want to display only the rows where A(user input)=B=C.
    Now you have to create 2 new variables (called ZB and ZC, related to B and C dates) NOT marked as 'ready for input' and set to 'mandatory variable entry'.
    Call Transaction CMOD for the definition of the customer exit (if not already existing!).
    Create a new project, maintain the short text, and assign a development class.
    Goto Enhancements Assignments and assign RSR00001. Press the button components to continue.
    Double-click on EXIT_SAPLRRS0_001. For documentation place the cursor on RSR00001 and use the menu Goto -> Display documentation. 
    Then double-click on ZXRSRU01. If the include doesn’t exist you have to create it; assign a development class and a transport request.
    Enter the coding:
    DATA: L_S_RANGE TYPE RSR_S_RANGESID.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    CASE I_VNAM.
    WHEN 'ZB'.
    (and you have to repeate the same code also for the variable 'ZC' !)
    IF I_STEP = 2.
    READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WITH KEY vnam = 'ZINPUT'.
    if sy-subrc = 0.
    L_S_RANGE-LOW  = LOC_VAR_RANGE-LOW.
    endif.
    L_S_RANGE-sign = 'I'.
    L_S_RANGE-opt = 'EQ'.
    append L_S_RANGE to e_t_range.
    ENDIF.
    ENDCASE.
    Save and activate the coding and the project.
    Now go to your query and use these two new variables to restrict B and C....et voilà !!!
    Let me know if you need more help (and please assign points !!! be generous !!!)
    Bye,
    Roberto

  • How to store internal table value in single variable

    hi gurus,
    i have 3 value in int table , so want to store the value of int table into single variable of type string.
    how it is possible

    hmmm, your requirement is kinda weird and you could have given us a bit more info, but well lets start.
    Why is your requirement weird?
    Well an internal table kinda is a variable itself, or rather a set of variables which together make up for a line type of your table.
    So you have a value you already have in a variable and now want to store it in anotherone? Seems weird.
    What type is your internal table?
    Do you have those three values in one record or in  three records which only hold one value each?
    Which of your values do you want to store in another variable?
    Anyway, make a F1 on the "READ TABLE" statement, this should definiteley help you.
    The "LOOP AT WHERE" statement could as well help if there should occur probrlem using READ TABLE.
    /edit DAMn i was posting this while you gave us more info.
    So still the question stays if you got your three values in one record or in three records.
    DATA: lv_variabl_containing_all      type char100.
    loop at itab into wa.
      concatenate lv_variabl_containing_all wa-value into lv_variabl_containing_all seperated by space.
    endloop.
    after the loop you now got all your values in lv_variabl_containing_all.
    That is for the case you got three records.
    other case would be
    Read table itab into wa index 1.
    concatenate wa-value1 wa-value2 wa-value3 into lv_variabl_containing_all.
    Edited by: Florian Kemmer on Apr 16, 2010 12:59 PM

  • Is there a way to import a choice list in multiple (or single) selection fields?

    Is there a way to import a previously created choice list in multiple (or single) selection fields in forms central? 

    Hello Dr. Ryan,
    Unfortunately there is no way to move this data into FormsCentral.
    As far as your question about using PDFs with FormsCentral, 'soon' is actually 'now'! You have two options:
    1) Author a new form with FormsCentral. From the distribute tab, save a submission-enabled PDF form. You can send this form out to your recipients and their responses will be collected on FormsCentral.
    2) Import an exsiting PDF form into FormsCentral from the dashboard, and then submission-enable it. Distribute the submission-enabled version and responses will be collected on FormsCentral.
    Thanks!
    Shannon

  • Vb6 - How do I Pass a single variable - CR XI

    I have a vb6 application that retrieves data from an ACCESS DB.  I would like to pass a single variable programatically to an .rpt file loaded into form containing a crviewer object.  The ultimate goal is to generate a report based on a single record identified by the variable.
    This has been killing me for days.  Any help is appreciated.

    Not sure I understand the query, but you can pass any value to an already existing formula, empty or not. Would that work?
    Ludek

  • Concatenation of list of values in a single variable.

    My query returns list of transactions. I want store all these transactions in a single variable and are comma separated. We are achieving this functionality by FOR loop. Is there any simple method to achieve this? Please let me know if you have any ideas.
    Thanks and regards
    Nagaraja Akkivalli.

    If you are using 11gR2 database you can use LISTAGG see
    http://download.oracle.com/docs/cd/E14072_01/server.112/e10592/functions087.htm
    There is a post here with various other alternatives;
    http://www.oracle-base.com/articles/misc/StringAggregationTechniques.php
    Cheers
    David

  • Report Question - Multiple CSQ - Single Avg Queue Time?

    Multiple CSQ - Single Avg Queue Time?
    I haave multiple CSQs, and I'm able to get certain data like Service Level averaged for all of them becuase I can get the data from reports, but not so for Average QueueTime (time to answer) - anyone have ideas on how to do this? 
    Note, averaging the CSQ averages won't be accurate because of significant differences in number of calls for each.
    Hope this makes sense.
    Thanks!
    Cisco CRS Historical Reports Release 6.0(1)

    HI
    I think Best Practice is Multiple reports with single query
    Any way If LO connections refresh 5 time the query will refresh 5 timesRegards
    Venkat

  • Reg: Multiple Ranges for Variables

    Hello Gurus,
    We have a requirement to have Multiple Ranges for Variables and I have gone through the document below which is applicable to 2004s SP 07.
    We are on CE 7.1 SP 3 I was looking for a similar document which can guide me to create Multiple Value ranges in CE.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/07134c67-0b01-0010-0493-b89287cf330f?quicklink=index&overridelayout=true
    If this is not available in SP 3 is there a Workaround to have the same kind of functionality.
    Thanks & Regards,
    Pramod

    Hi Pramod,
    If I understand correctly, u want to send a range of values to the variable of a query.
    This can be done using " ; ". syntax is [value 1];[value 2];[value 3]
    If you want to send two dates to a query date variable... take two date fields then pass to the variable date1;date2 (while creating query you took variable of type range)
    Thanks,
    Pradeep

  • VariableView ActiveX Control for a single variable

    This may be an odd request, but is it possible to limit the scope for the VariablesView ActiveX control to a single variable? 
    I was thinking of adding a pseudo-watch window and the VariablesView control is perfect if I could just limit its scope.  Building my own hybrid treeview/gridview is my other option.
    Any language will work; I am working in C#. 

    I wonder what would happen if you called NewEditContext, used the PropertyObject API to delete all the subproperties, and then called context.AsPropertyObject.SetPropertyObject("MyVariableName", PropOption_InsertIfMissing | PropOption_NotOwning, myVariable)?
    The context would probably be completely broken as a context, but it might work in the variables view..... well, probably not, but maybe worth a quick try if you've already got your control and variable ready to go....

  • Multiple GR single credit in STO

    Dear ALL,
    Is is possible to have Multiple GR single credit in case of STO?
    That means i should not be able to take post excise invoice unless i received all the materials against STO or qty posted in Excise Invoice.
    If it is possible, then how to get it done?
    Reply awaited.............
    Edited by: akshay sonurkar on Nov 18, 2009 9:05 AM
    Edited by: akshay sonurkar on Nov 18, 2009 9:19 AM

    ok

  • 30 day rolling average of a single variable based on 1 hour averages?

    Can anyone recommend the best way to keep a 30 day rolling average of a single variable based on 1 hour averages?  I am thinking about using Citadel with and SQL query to update the average.  If there's a better way, I would appreaciate any ideas.

    I think you are on the right path, use the existing Citadel information with ODBC & SQL to get the data.  
    Saves archiving "duplicate" data.
    Forshock - Consult.Develop.Solve.

Maybe you are looking for