Hi Friends, I have some dynamic text box in my screen, i have entered only one text field of the screen, after submitting the form all the values of the dynamic text box field is getting added in the database as 0 except the value i entered. i have used array method to add. But i want to add only the value i entered in the respective text box in my database [B]Note:-[/B] I have enclosed the screen for your reference Please help me to solve the issue [B]At present my output is[/B] 1. xxxx xxxx 1 60.00 2. xxxx …

Member Avatar
Member Avatar
+0 forum 6

Hello, I've just begun working with assembly so I'm sorry if this question is simplistic. I would like to implement an atomic add (for incrementing an array pointer). My code looks like this: int * ptr; int step; asm("lock add %1, %2;\n" :"=m"(ptr) :"m"(ptr),"r"(step) : ); But I'm getting an error "expecting lockable instruction after 'lock'", which doesn't make sense as I've read that `add` is a lockable instruction. If I place the `lock` as a separate instruction before the addition it compiles, but ultimate crashes as it claims it is an "illegal instruction." Perhaps I'm understanding the use of …

Member Avatar
Member Avatar
+0 forum 2

Hello Everyone, This time i am not asking for any help :-) I am showing anybody ,who wants to know how to add a $ sign into any item/subitem in Listview. Did try to add colour,BUT, there is a BUG in VS. you can code for differant colours in subitems,BUT the BUG will not show these colours. And now back to what I was talking about..hehehe For N As Integer = 0 To LV1.Items.Count - 1 LV1.Items(N).SubItems(7).Text = "$" & LV1.Items(N).SubItems(7).Text Next The above code, will insert the "$" symbol into the 7 column in your Listview. That is what …

Member Avatar
Member Avatar
+0 forum 2

I'm sure this is simple, but I'm having a time trying to figure out how to add two fields from two different tables together. <?php include_once('conn/db.php'); $query = "SELECT SUM(`sold`) AS total FROM veggies"; $stmt = $con->prepare( $query ); $stmt->execute(); while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ extract($row); echo "<small><u>Plants Sold</u>: {$total}</small>"; } ?> The above code is just the total for one table field called sold. I'm trying to add "sold" from the "veggie" table to another table with the same field name "sold", except it's from the "flower" table. Essentially I'm shooting for sum(sold) from veggies + sum(sold) from flowers. If …

Member Avatar
Member Avatar
+0 forum 5

I want a set of not the same numbers to be added to a listbox, if there are any numbers that are the same, then they won't be added. I tried: If (Number1 = Number2) Or (Number1 = Number3) Or (Number1 = Number4) Or (Number1 = Number5) = False Then ListBox1.Items.Add(Number1 & " " & Number2 & " " & Number3 & " " & Number4 & " " & Number5) End If However I still got ## 10 10 50 29 36 13 ## the first two numbers are of the same value, and yet they somehow managed to …

Member Avatar
Member Avatar
+0 forum 7

I need help adding new users to a table i have made for an admin that can add or delete users from said table freely. What i have so far is an entry that can add date and time but for some reason it doesnt add the username and password. I dont know if its skipping the username and password and simply adding them the second you go to that page but something is wrong and i can figure this out, i have been stuck for days and what makes little sense to me is that i have this same …

Member Avatar
Member Avatar
+0 forum 5

I have this code which ironically WORKS on another page i have but for some reason will not work with my new page even though LITERALLY its the exact same function and should work regardless but with my luck it wont so i need help, maybe i have a small error but i have compared and compared the code time and time again and theres literally no difference from what i can tell. here is the code: <?php $con = mysqli_connect("localhost", "root", "", "numbers") or die(mysqli_error($con)); //submission code, inserting data into mysql database $username = NULL; $password = NULL; $mySqlDate …

Member Avatar
Member Avatar
+0 forum 3

I just installed linux fedora 16. When i want to view my software packages in the "Add/Remove software" it doesnt show any packages. it give the following error when i click on the "Package Collection" tab: The group list was invalid The group list could not be loaded Refreshing your cache may help, although this is normally a software error. that was the error. I have already cleanes my cache and i did a system update. How can i fix this so that it shows my packages. note: i encrypted my disk at the instalation setup. Thanks...

Member Avatar
Member Avatar
+0 forum 4

I have a database with items which I want to populate to a listbox. The first image shows how its right now, and the second shows how I want the final result to look like. ![dd3aaa66fdb74cecb5cca11999b6b6dc](/attachments/small/3/dd3aaa66fdb74cecb5cca11999b6b6dc.png "align-left") ![2645978b29622fc539c0725c199c3e13](/attachments/small/3/2645978b29622fc539c0725c199c3e13.png "align-right")

Member Avatar
Member Avatar
+0 forum 2

Hi I need help with something, I really don't know how to do this, but how would I add these questions in to VBA? could somebody tell me for atleast one. The net take-home income and other values are calculated as follows: 1) Calculate CPP and EI If annual income is greater than $48,600, then EI = $913.68 Otherwise EI = annual income * 1.88% If annual income is greater than $49,000, then CPP = $2425.50 Otherwise CPP = annual income * 4.95% 2) Calculate Federal Tax on taxable income (taxable income = annual income – CPP – EI)  …

Member Avatar
Member Avatar
+0 forum 2

HI, so im trying to add new rows to my table using the codes that were given but the row doesnt stick, as in it disappears just after clicking a button. Am i doing something wrong? <script type="text/javascript" charset="utf-8"> var giCount = 1; $(document).ready(function() { //initialise the table $("#tables").dataTable( ); }); function fnClickAddRow() { $('#tables').dataTable().fnAddData( [ "Table "+ giCount, "Table "+ giCount] ); giCount++; } </script> <div style="float:right;height:0;width:500px"> <form method="" action=""> <div style="float:right;height:0;"> <input type="submit" name="addT" value="Add Table" onclick="fnClickAddRow();" /> </div> <table id="tables" border="2" rules="all" cellspacing="5px" cellpadding="5px" width="500px"> <thead> <tr> <th>Table</th> </tr> </thead> <tbody> </tbody> </table> </form> </div>

Member Avatar
Member Avatar
+0 forum 2

I have 10 field that I want to calculate the total. some of the fields take null value. I tried the codes below but the result was empty. select id, (c1+c2+c3+c4+c5+c6+c7+c8+c9+c10) as total from items order by id; the result show was null. In dreamweaver the result was blank. please kindly help me out. By Franz

Member Avatar
Member Avatar
+0 forum 1

Hi All, I am a new user to ASP and would like to add a to an accumalted value. The value stored in QTYALLOC can be a 1 or a 2 but currently the code will only add increment by 1, but what I am trying to do is increment by the value of QTYALLOC. I had placed order in the increment counter (StockAllocate + 1) like so (StockAllocate + 1) but this did not seem to work. My syntax mak not be correct. What I have tried is not working. Any assistance would be appriciated. if rowStock("QTYALLOC") <> "0" …

Member Avatar
Member Avatar
+0 forum 4

I need help with a program for school. I am a very novice pascal programmer. I need to allow the person using the program to add a record and then search for it and view it. Currently, whenever I add a record via the program and try to search for it and view it, the same record shows up. This first program is the program I used to create the file. PROGRAM SpellingBeeFile; USES CRT, SYSUTILS; TYPE TestRec = RECORD TestNo : LONGINT; Word : ARRAY[1..10] OF STRING[15]; Definition : ARRAY[1..10] OF STRING[40]; END; TestFileRqd = FILE OF TestRec; VAR …

Member Avatar
Member Avatar
+0 forum 3

I have a list box, with an item "Math". When I click on the Math item, I want a new collection of items to be added to the listbox after removing the current Math item, and make a back button to appear to return Math item back in case I need to go back. I was able to do that, but after I click on the back button and click on the Math item again, the previous collection of items is added to the previously added collection, so I get repeats. I can't figure out how to clear the "MathDep" …

Member Avatar
Member Avatar
+0 forum 2

how can i add chat option in my website?

Member Avatar
Member Avatar
+0 forum 5

#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int menu,i; char ulang; FILE *pf; char karakter; int data[5]; char nama[30],alamat[40]; char buffer[1024]; do { printf("Menu Utama Data Kendaraan\n"); printf("--------------------------\n"); printf("1. Show Data \n"); printf("2. Add Data \n"); printf("3. Edit Data \n"); printf("4. Remove Data \n"); printf("3. Search Data \n"); printf("--------------------------\n"); printf("Insert your selection : "); scanf("%d",&menu); printf("\n----------------------------\n"); switch(menu) { case 1: { pf = fopen("D:/tugas/file/tugas/data.txt","r"); if (pf != NULL) { while ((karakter = getc(pf)) != EOF) { printf("%c",karakter); } } else { printf("Fatal erorr : File coba.txt cannot be opened"); exit(EXIT_FAILURE); } break; } case 2: { pf …

Member Avatar
Member Avatar
+0 forum 3

I'm trying to fill a listview with the code shown bellow, but when the listview is populated, each item is shown as: ListViewItem: {The information to display1} ListViewItem: {The information to display2} ListViewItem: {The information to display3} ListViewItem: {The information to display4} My question is, how can I display only what is inside braces? Here is my code: ListViewItem lvi = new ListViewItem(); lvi.Text = tang2.Name; lvi.SubItems.Add(tang2.Name.ToString()); lsvUsedAnalysis.Items.Add(lvi); My thanks in advanced

Member Avatar
Member Avatar
+0 forum 3

Hello dear codegurus! I've been working on a pet project of mine for 3 weeks now, and I think it is ready to be released into the open! However, just for cosmetic purposes, I would **LOVE** to add an icon (both for the application and in the upper left corner while running). Is there a way to add the icon INTO the .jar file? My whole application is one single .jar file and it would be stupid if people had to copy 2 files just to see an icon. If yes, could I trouble you for a push in the …

Member Avatar
Member Avatar
+0 forum 10

So this is what i dit. Declared three classes: Main Term Polynom So in Polynom i try to call a "plus" method: i tried this: public Polynom add(Polynom pol){ Polynom res = new Polynom("",0); Term tox = new Term(0,0); for(Term p : Polynom){ for(Term other : pol.Polynom ){ if(p.getDeg()==other.getDeg()){ tox.setCoef(p.getCoef()+ other.getCoef()); tox.setDeg(p.getDeg()); } res.addTerm(tox); } } return res; } And I am facing a problem : I reffer to an object this and iam getting into an other object which is a this too. So when i try to add two polynoms I have wrong results. Is there a good …

Member Avatar
Member Avatar
+0 forum 1

<?php require_once('recaptchalib.php'); $privatekey = "your_private_key"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")"); } else { $username = $_POST['username']; $activation_code = $_POST['activation_code']; $db_host = "localhost"; $db_name = "databasename"; $db_use = "root"; $db_pass = "password"; $link = mysql_connect($db_host, $db_use, $db_pass); mysql_select_db($db_name, $link); $command = "UPDATE email_activation SET check_activation='$activation_code' WHERE username='$username' and activation='$activation_code'"; $result = mysql_query($command); if ($result) { echo "Congratulations. Your membership has been activated …"; }else{ echo ("You've entered …

Member Avatar
Member Avatar
+0 forum 4

I'm creating a table with PHP/MySql to enter local election results from my newspaper, I'm not a professional developer, more of just a hobbiest hack (who hasn't worked with PHP for a few years either), so feel free to correct existing code if you so please. What I want to do is to list vote totals for each precinct, and then have PHP total those totals. So, the way the data base would be set up is Race ID, Candidate Name, and each available precinct's totals. This is my current code to return one of the tables. What I would …

Member Avatar
Member Avatar
+0 forum 20

I am trying to write a method that accepts the array of houses and a price, priceLimit. The method will return an array of houses for the houses whose price is less than or equal to priceLimit. I want to make a pass over the data to determine how big to make the return array. The problem is that I can not figure out how to add House objects from one House array to the other. private static House[] getLowPriced(House[] houses, double priceLimit) { House[] lowPriceHouses = null; for (int i = 0; i <= houses.length; i++) { double prices …

Member Avatar
Member Avatar
+0 forum 3

im trying to do this : alter table project_info change column number proj_id int not null auto_increment, add primary key (proj_id); but mysql tells iv got an error. any help with whats wrong here ? i followed this from head first sql book (page 210 if anyone's interested ) .

Member Avatar
Member Avatar
+0 forum 2

the jsp cmlode and html <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>This must be paste in head <a href="#" id="toggle-example2" class="button"></a> <div class="example2"> <p>Una novità nei prodotti speciali! La nostra IP Plus aumenta il numero di ottano, passando da 98 a 100 e dando così vita ad un nuovo prodotto altamente performante: plus 100. L’aumento del numero di ottano permette un funzionamento più dolce e regolare del motore, abbinando un maggior rendimento ad un minor consumo. Viaggiare con una benzina a 100 ottani significa avere accelerazioni immediate, molto più fluide e senza quel leggero ritardo tra la pressione sul pedale e l’effettiva risposta del …

Member Avatar
Member Avatar
+0 forum 7

hi guys, Do you guys have any php code where i could add a new class to a div element in a page? using my code am planning to read the file contents of an html page. I wanted to add a class "modify" to all DIVs which has a class and those DIV without a class element will have 'class="modify" ' added to it. Thanks in advance

Member Avatar
Member Avatar
+0 forum 7

hi all i am making a tabbed notepad and i have added RichTextBox At runtime.now i want to add it's sub procedural but i don't know how to add sub procedural at run time. i want to addd sub procedural with handle textchanged event. i had added follwig code for sub procedural but it's shows me error. my rutime richtexbox name is Nrt(10000). Private Sub Nrt_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) handles Nrt.TextChanged .... ....logic code.... ... End Sub **pls help me how to add sub procedural with handle textchanged **

Member Avatar
Member Avatar
+0 forum 1

Okay so I have couple of questions about lists in vb.. Please be aware that it's all related to integers only no strings or others 1. How to sum values of a list? 2. How to sort values of list from highest to lowest? Also how would I display list values in a message box vertically? Example: ...........Message Box............ .1 .2 .3 .4 .5 .6 .................................. I appreciate any answers.. And please let me know if you need further information.

Member Avatar
Member Avatar
+0 forum 1

Hi, I want to add element after an element with loop. For example, I have 10 paragraph elements and I want to add div element after each paragraph element. How can I do it?

Member Avatar
Member Avatar
+0 forum 4

trying to search by the file name keep getting a "expects parameter 1 to be resource, boolean" error what am i missing? $pagename = basename($_SERVER['PHP_SELF'], ".php"); mysql_select_db("tagpoint", $con); $sql="SELECT * FROM tagpoint WHERE title = '".$pagename."'"; $result=@mysql_query($sql); $row = mysql_fetch_array($result);

Member Avatar
Member Avatar
+0 forum 3

The End.