199,124 Archived Topics
Remove Filter ![]() | |
hi I am learning mysql and have created a table for auditing purposes with fields below , but my problems is I dont know how to go about inserting data into it whenever an event ocurs on my primary tables.especially getting the oldvalue,newvalue,column and table name fields after updates are … | |
how can i delete the record in my Sold To table if the quantity is = 0 heres my code in my command button [CODE]Set cn = New ADODB.Connection cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Administrator\Desktop\Inventory System\PharmacyInventory.mdb;Jet OLEDB:System Database=system.mdw;", "admin", "" Set rs = New ADODB.Recordset cn.Execute "INSERT INTO CustomerReturn (cno, pcode, … | |
Hi, i am in the process of trying to make a high scores table but i am failing miserably, i dont have a lot of experience in c++ and i was hoping i could get a bit of help trying to sort my code. [code]#include <iostream> #include <fstream> #include <string> … | |
emergent;help i a project in encryption any text of alphapets and numbers into a random characters(from A-Z and 0-9 numbers) using assembly if u please | |
I have a form with 4 different textboxes. Each box needs to have a certain number of characters entered in so I'm writing if/else statements. For example: [CODE] if ((dlg.nameText.Length > 5) || (dlg.nameText.Length < 8)) this.DialogResult = DialogResult.None; MessageBox.Show("Error message goes here"); else this.DialogResult = DialogResult.OK; [/CODE] It goes … | |
Hello all. This past semester I took assembly programming. The programs in class were done on windwos machines and now I am trying to write some assembly on my linux machine, which has an intel 64bit processor. I am having a problem converting integers to ascii for output. I am … | |
Friends, I am novice to Visual Basic Programme. I am using Visual Basic 2005 and I have TextBoxes, Lables and Buttons. I want to name these controls. I wish to superscript the Text. i.e., to denote Sq.mm - as mm^2. But if we type or cut & paste from Ms … | |
hi everyone, i need to know backgroundworker1_Dowork(-,) wil exe whenever im clicking the button or sinle click of button will exe more than times like timer.can share me info | |
hi all, I am new to C#.I am doing a project on C#. In my project I am using two combobox. In first i am giving the options. Depending upon the first combobox options (i.e which item i am selecting) , the second combox should show its options relating to … | |
i have 1 textbox in the keypress event this is my code if keyascii >= 48 and keyascii <= 75 then exit sub else keyascii = 0 end if how can i erase the last value that im inputted in my textbox using vbkeyback? god bless daniweb! | |
I design a database on Mysql , one of the tables is call 'account' which contains user related information like username, email address etc. Due to large amount of user data running in millions of record, I have decided to partition the account table. The first partition should contain username … | |
I've got quite a slow query, that I need to get a random record from, however this is proving painfully slow, can anyobdy suggest ways to speed up the following query. SELECT * FROM people WHERE names like "%bert%" or names like "%john smith%".......... or names like "%eric%" ORDER BY … | |
I already added the path of my installed java, but the problem is I cannot compile my codes. here is my path. . %SystemRoot%\system32;%SystemRoot%;C:\Program Files\Java\jdk1.6.0_10 and then this is what happens when I compile. . Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\Carlo>e: E:\>cd nerd's … | |
hi all, can some one help me how to display the fields which enter in current week,current month like that | |
HI I have a class className which is an abstract class. I am attaching the definition in the code snipet below. when I am writing the line I am getting an error error C2259: 'className' : cannot instantiate abstract class From this error I have understood that we cannot create … | |
Hi I have to make a program to parse html document and check for broken links. I did the first part and now wondering is there a method or class that checks if the link is valid?if not I assumed I can construst a method myself, like get the response … | |
I am trying to print out a dictionary result. The dictionary is made from a database search. I have tried to print it in every possible way here is the code [CODE]#!/usr/bin/python import elementtree.ElementTree as ET import urllib import MySQLdb print "Content-type: text/html\n" info={} def find_text(element): if element.text is None: … | |
Guys I have a dropdownlist control with categories so when I select something from ddlCategory I wana display all the products fall under that category in a datagrid but I dont seem to get that right... here is the bit I have done [CODE=C#] protected void Page_Load(object sender, EventArgs e) … | |
I have to build a card game war in a C++ card game. The program must randomize a set of cards for both the user and a computer player. the cards are 2-14 for one array then a parrallel array for suit 0-3. then organize each hand in descending order … | |
Hello all, I'm new to VB .Net, I found this open source file editor. Its can read unicode text fine, but its doesn't save unicode and its read only ITST01 and not QEST01. How to make its detect both and save as unicode? Here is the file format. [CODE] BSTR … | |
wasn't too sure my codes are correct could sum1 help me check?ty. [code=php]<?php session_start(); unset($_SESSION['email']); session_destroy(); ?>[/code] | |
Hi can someone shed some light on this problem I'm having please? 2 tables SHOWS_ARCHIVE (TABLE 1) ID SHOW_ID AUTHOR SHOWS (TABLE 2) ID When the member logs in they are a loud to see their shows because of the $author permissions; [code] if ($_SESSION['MEMBER_PERM'] == "2") { $author = … | |
I am having trouble getting output from this program. The objective of the program is to allow the user to enter 5 scores and then it is supposed to calculate the mean and rearrange the data set from highest to lowest. I am supposed to run it through the AverageDriver … | |
Hello, I am fairly new to PHP, having just started messing around with it, but I need to solve something and I would apreciate any help any of you could offer. Here is my problem: There's a hardware online store built using php/html and connected to a mysql database. It … | |
I have this method : public void ExecuteSQL(String SQL) { Koneksi getCn = new Koneksi(); Connection cnExecute = null; try { cnExecute = getCn.getConnection(); int rowNgefek = 0; Statement stExecute = cnExecute.createStatement(); cnExecute.setAutoCommit(true); stExecute.executeUpdate(SQL, rowNgefek); cnExecute.commit(); closingConnection (cnExecute,stExecute); } catch (SQLException e) { System.out.println(e.toString()); } } If insert/delete/update raise error, … | |
These are the specifications for the assignment: Write the following members functions: (a) Constructor that creates objects of the student class. (b) read that prompts the user to enter from the keyboard student name, age and gpa. To terminate reading the user should enter the EOF (ctrl-D in Unix and … | |
Alsalamu Alikum, So, It's my first time to study and work on recursion functions, and it was said in the lecture that it is better than the iterative function because [QUOTE]they are shorter, more elegant, more readable, naturally developing and it's code is easier to understand.It comes with more cost … | |
Hey folks, I am working on a getBalance method that retrieves a balance from a CSV file. I keep getting: [ICODE][COLOR="Red"]java.lang.NullPointerException at java.util.StringTokenizer.<init>(StringTokenizer.java:182) at java.util.StringTokenizer.<init>(StringTokenizer.java:204) at atmEngine.getBalance(atmEngine.java:100) at atmEngine.<init>(atmEngine.java:81) at Launcher.main(Launcher.java:12)[/COLOR] [/ICODE] I can't figure this one out! I threw in some console print outs to make sure it was … | |
Hello sir, I am using visual studio 2005. I want to split the form into 2 parts. On the left side i wil give the VB coding. On the right side i want output for that coding. Similar to this link [url]http://www.w3schools.com/html/tryit....ml_paragraphs1[/url] But the link is for HTML coding, But … | |
Hello, I'm writing a simple calculator in C. The main problem is I need to parse string to evaluate for example 1+2*(3-1)/2.5. However writing such parses is a very hard task. This is a trivial thing Python using this code: [code] s = raw_input('Please enter expression:') try: x = eval(s) … | |
[B]Can someone let me know how the date syntax work. example working with "greatest" 01-oct-02 and 20-may-2003, it accept 20-may-2003 to be the greatest instead of 01-oct-02 which the oldest (greatest) can someone explain this to me. please let me know the logic behind. I have alot of problems with … | |
| |
Hello All, Can anyone help me how to insert html code in mysql database coloumn and also how to change the var char to 1000, for now it is 100. Please help me out thanks 7 regards Raj | |
status teacher build exam (question and answer) and student take the exam form build_pre_exam add data into pre_exam table when form run , user(teacher ) have to insert question and four cooses then choose from list item which one i correct answer (to enable to check exam for student) ,after … | |
Hi, Can anyone help me how to retrieve data from table in the following manner. In my application I have five button namely First,last,next,previous,and Query. When I will press the query button, it should show me last data that I had feed to the table. When I press first button … | |
I'm trying to create an array that can be resized, and automatically renumbered, at the moment, what I have works for up to a 3x3 array, but anything larger than that doesn't work. I've tried doing this with int instead of char for the type or the array, but then … | |
alright. I have this file that lists about 3000 coordinates in this way. -90.0000 0.0000 220.7533 -90.0000 5.0000 220.7533 -90.0000 10.0000 220.7533 -90.0000 15.0000 220.7533 I'm trying to open this file in my program, but I'm having no luck at all. I've tried reading numerous threads on doing so, but … | |
hi all. the following is working fine for me char * hex = (..dynamically allocated memory with malloc..); *(hex+0) = 0x43; *(hex+1) = 0x2b; i now have to assign a string in the format 43 2b 1c to the char * array at runtime. anyone did it ? plz guide. | |
Hey guys, I am working on my final project, and I was wondering, I am designing the GUI and if you look at the buttons I want the green and red buttons to appear 3D like the rest of them but with a colour overlay is it possible to do … | |
Hi y'all! I'm kinda new to c++ so please excuse my inefficiencies. Anyways, here is the assignment: Write a C++ program to estimate the springtime count of deer in a park for 10 consecutive years. The population of any given year depends on the previous year's population according to the … | |
Hey I have to write a program that reads a text file that contains a list of words, 1 word per line. I have to store the unique words and count the occurrences of each unique word. When the file is completely read, I have to print the words and … | |
I'm working on a program that has a class Board, and two inherited classes that will implement different games, but I'm having problems with setting up the initial Board class. The problem is that I don't know how to make it so the board array in the protected section of … | |
I am trying to open a file after getting its path from the user. here is the code. [CODE]#include <iostream> #include <fstream> #include <string> #include <cstring> using namespace std; void main(){ const char* filepath; string input, input2; char lines[110]; ifstream infile; cout << "Enter filename (including path): "; getline (cin, … | |
[quote] My code asks a user for a password. To properly validate the user's entry, it must include the following requirements: 1)have a length of 5 2)have an uppercase character 3)have a lowercase character 4)have a digit My loop only works for the lowercase and length of 5 requirements. Can … | |
Hi everyone I've been looking at some code from the 'Ajax for Dummies' book (page 67). I'm running the code samples on an XAMPP installation with both files in the C:\xampp\htdocs folder which (appears) to have been set up as 'localhost'. However, there are 3 odd things about this code. … | |
Hay guys, I was looking at a few examples of how a Radix sort works, and writing up a document explaining it. I based my findings on one particular example I found, link follows. [URL="http://www.cubic.org/docs/radix.htm"]http://www.cubic.org/docs/radix.htm[/URL] Well the bit shifting here is giving my head a bit of a spin, and … | |
I'm currently working on implementing a small game in C++, but when trying to compile, I get this error: [CODE]..quadtree.h:125: error: no matching function for call to 'Fleet::Ship::overlaps(const Fleet::Ship*&)' ..ship.h:40: note: candidates are: bool Ship::overlaps(const Rectangle&) const ..ship.h:85: note: bool Ship::overlaps(const Ship&) const ..ship.h:32: note: bool Ship::overlaps(const Point&) const[/CODE] So … | |
Hi is there a way of getting a file creation Date for a file class object? I am trying to do so on a mac. Many thanks | |
Hello, I'm Still a python beginner. I've got this Assignment, and I think I've finished half of it. Can anyone help me out on this assignment. The codes I have done already are: [I]The assignment asks to: Make a program that prints a list of 5 items in your house … | |
How do I save a string? Say I type in "sfrider0." How do I store that then retrieve it later? I've been messing around with it for a while and the most I can get it to do is tell me how many characters are in it. Any help? |
The End.