24 Topics

Member Avatar for
Member Avatar for rpv_sen

Hi Friends. i am working on my internal work. i am having n dynamic rows, Each and every row contain total. i want to sum all the rows total. i have attached the screen shot for the reference

Member Avatar for diafol
0
2K
Member Avatar for dlmagers

I am trying to display scores by what the user is requesting either 'Average','Total',or 'Both'. The following is my code for the loop_tester.php and below that is the code for my index.php. I am trying to add a switch statement to the index.php file that will sets values for only …

Member Avatar for cereal
0
355
Member Avatar for jjones0150

Create a form that accepts scores from the user, displays the total, count, and average of the scores, and displays a dialog box that lists the scores.This application should check the number entered by the user to make sure it is a valid integer from 0 to 100. If a …

Member Avatar for jjones0150
0
3K
Member Avatar for GingerDontCare

I have a cart that shows product selected and the quantity and the price for each. What I am wondering is how to display the price for each as well as the total for all? Here is my code...Is there a way to do this in the public string Display()...what …

Member Avatar for GingerDontCare
0
338
Member Avatar for rajendher

hello sir, i have php code to display the following details. Total size : 1.9 MB No. of files : 15 No. of directories : 2 but i need to do this by database because i am displaying links from database. so how it is possible. any suggestions please......... thank …

Member Avatar for diafol
0
256
Member Avatar for mokushirokuxen

![7d2f0b828b7075213b3cc4ce79ce21d1](/attachments/large/4/7d2f0b828b7075213b3cc4ce79ce21d1.png "7d2f0b828b7075213b3cc4ce79ce21d1") i have 2 database listview1(from tbl_storage) listview2(fromsales) so i want my listview items and subitems to be increment or be loop correct me if im wrong with that. sellingprice and Qty.(Quantity) ex. itemno | name | qty| price | total | 1 | a | 1 | 100 …

Member Avatar for mokushirokuxen
0
446
Member Avatar for mavtcr

Friends, Please help me I have a form having 3 text boxes of data type number one text box for display- also number type one command button I want to add the figures of the three text boxes my code is as below Private Sub Command1_Click() Dim Total As Long …

Member Avatar for rishif2
0
209
Member Avatar for ragnacrap

Does anybody know how to make a program that calculates your work hours? I tried this code, but it's going all wrong. #include<stdio.h> #include<stdlib.h> #include<conio.h> #include<ctype.h> #include<string.h> #include<time.h> char* timein[5], timeout[5], p; int totaltime, ticktock, hour, minute, rate; FILE* f; int main(){ clrscr(); CreateTimeFile(); GetTimes(); DisplayFinalInfo(); getch(); } CreateTimeFile(){ f …

Member Avatar for Banfa
0
328
Member Avatar for sanbhu2105

hello guys i have created the below codes. the first one is the mysql select statement which works fine when i echo. the second one is an html/css table i created. i am stuck to the point where i can merge both of them so that i get a nice …

Member Avatar for broj1
0
949
Member Avatar for macphill

how do add the total of items in listview column and display the result in a text box

Member Avatar for Reverend Jim
0
238
Member Avatar for rexmatthew

I've been getting problems with my formula to total the deposit and price. I'm getting and error on this line $total += $total + $deposit['deposit'] * $pamount['price_status']; Here's more but only an error with the total. $prod_refid=$_REQUEST['refid']; $productsql="select * from products where prod_refid='$prod_refid'"; $resquery = @mysql_query($productsql); $resproduct_fetch=mysql_fetch_array($resquery); $image_path="products/"; $thumb_path="products/thumb/"; $product_id=$resproduct_fetch['product_id']; $prod_refid=$resproduct_fetch['prod_refid']; $product_image=$resproduct_fetch['product_image']; $product_name=$resproduct_fetch['product_name']; $prod_country=$resproduct_fetch['prod_country']; $price_range=$resproduct_fetch['price_range']; $pamount …

Member Avatar for AARTI SHRIVAS
0
243
Member Avatar for devianleong

Hi, I'm facing a problem which is can't total up all the subtotal amount. Everytime I add a new product to cart, the total only show the last product that I added into cart. Not only that, when I update the quantity of other product, the total still remain the …

Member Avatar for Szabi Zsoldos
0
206
Member Avatar for devianleong

Hi, I'm facing a problem which is can't total up all the subtotal amount. Everytime I add a new product to cart, the total only show the last product that I added into cart. Not only that, when I update the quantity of other product, the total still remain the …

Member Avatar for devianleong
0
1K
Member Avatar for jonny93

Hello again. I am trying to create a simple code that can compute the average of a set of numbers read in using a scanner. import java.util.Scanner; public class Average { public static void main(String[] args) { double number = 0; double total = 0; int count = 0; Scanner …

Member Avatar for delta_frost
0
260
Member Avatar for dushtu.bor

Please tell me why it gives me always zero value? [CODE]<?php $total =0; $memid = $_POST['username']; $leg = $_POST['leg']; mysql_connect ("host", "usr", "paswd") or die ('Error: ' .mysql_error()); mysql_select_db ("dbname"); function getTotalLeg($memid,$leg){ $sql="select $leg from `users` where `username`='$memid' "; $res=mysql_query($sql); $row=mysql_fetch_array($res); global $total; $total = $total+mysql_num_rows($res); if($row['$leg']!=''){ getTotalLeg ($row['$leg'],'lname'); getTotalLeg …

Member Avatar for dushtu.bor
0
168
Member Avatar for chasadjee

I am writing an application which calculates profit from 3 column values. The SQL is as follows in vb dataset designer; [CODE]SELECT ID, Sale - (Weight * 20) * (Rate -5) AS Profit From AgencyRegister WHERE (DatePart('yyyy', ArrivalDate) = ?) ORDER BY ArrivalDate[/CODE] I want to add another column of …

Member Avatar for chasadjee
0
522
Member Avatar for JavaPrograms

The issues with this program are: 1. File: D:\Unit 3 Data Type, Objects, Assignments\CreditCardBill.java [line: 20] Error: Type mismatch: cannot convert from double to int 2. File: D:\Unit 3 Data Type, Objects, Assignments\CreditCardBill.java [line: 21] Error: Type mismatch: cannot convert from double to int EDIT: I have tried type casting, …

Member Avatar for zeroliken
0
4K
Member Avatar for Otter992

the question asked me make a program that would find opens an read a txt file and calculate or display the following. - the number of numbers - sum of all the numbers in the file (running total) -average of numbers in file the .txt file just has 100,200,300,400,500,600,700 each …

Member Avatar for gevorg1808
0
210
Member Avatar for abc_123abc

hh.. how can i get the value accumulated from the date i select from datetimepicker1 to datetimepicker2 in vb.net and mysql? the value here refers to the daily sales and i need to find the total sales between the range dates that i choose.. please help me..as im beginner and …

Member Avatar for gd740
0
3K
Member Avatar for rpv_sen

HI Sorry for opening the thread, i have some issue please help me in solving the below one [B]Javascript[/B] [CODE]<script language="javascript"> function line(elem,amt,res_elem) { var qty=document.getElementById(elem).value; var tot_amt=qty*amt; //document.getElementById(res_elem).value = tot_amt; document.getElementById(res_elem).value = Math.round(tot_amt*100)/100; } </script>[/CODE] PHP [CODE] <?php $cate_code=$_GET['ct']; $civrform=$_GET['vrform']; $site=$_GET['site_name']; $desr="select * from site_rate where category_code='$cate_code' AND sitename='$site' …

0
175
Member Avatar for Mayank23

im having this problem when i try to add [CODE] m + 1 = k;[/CODE] it says this- *lvalue required as left operand of assignment* in my compiler, please help. dont mind the unfinished code. [CODE]#include <iostream> using namespace std; int main() { double b, m, k; string x; b …

Member Avatar for Mayank23
0
153
Member Avatar for pgmarco

My JavaScript code works in all browsers except ie, I am not sure why. Any help is appreciated, Thank you. Website is [URL="http://illcomputers.comyr.com/custom.php"]http://illcomputers.comyr.com/custom.php[/URL] Javascript File[URL="http://illcomputers.comyr.com/scripts/lowendcost.js"]http://illcomputers.comyr.com/scripts/lowendcost.js[/URL] JavaScript Code [CODE] function updatecost1() { const keymouse = 40; const Case = 55; var data = document.getElementById("data"); var seldata = data.selectedIndex; var cpu = …

Member Avatar for Airshow
0
1K
Member Avatar for jeremy62

Im attempting to write a program that will accept seperate sales amounts from the user and then will total the sales and display both the total sales and the sales tax from the sales at the programs end, if you can provide any help or insight i would greatly appreciate …

Member Avatar for Ancient Dragon
0
216
Member Avatar for jvill

I'm trying to write a program that will accept input from the user as sales, then it will total the sales and display both the total and the sales tax (total multiplied by .0825 [CODE] #include <stdio.h> #include <stdlib.h> #define SIZE 9 int main(void) { /*initialize */ int a[SIZE]= {0}; …

Member Avatar for erroldo
0
189

The End.