199,114 Archived Topics
Remove Filter ![]() | |
I'm having some difficulty trying to figure out how to write a certain query. The very basics are that I have two relevant tables: `containers` and `items`. `containers` have the fields: ContainerID, ContainerName, and ContentType. `items` have the fields: ItemID, ItemName, and ContainerID. The easy part of the query is … | |
Hi, I have been trying to use a struct to hold some const chars that represent a fixed date The idea is to select a date on a Month Calendar and compare it to the fixed date in the struct so that a MessageBox can show [code] typedef struct BASEFULL … | |
1.[CODE]SELECT pos_cashreceiptdetail.LocationCode,pos_cashreceiptpayment.TerminalCode,pos_cashreceiptpayment.ReceiptDate, pos_cashreceiptdetail.Description,pos_cashreceiptpayment.ReceiptNo,SUM(TotalCost) FROM pos_cashreceiptdetail,pos_cashreceiptpayment WHERE pos_cashreceiptdetail.Description LIKE 'Raw%' AND pos_cashreceiptdetail.LocationCode = pos_cashreceiptpayment.LocationCode AND pos_cashreceiptdetail.ReceiptDate = pos_cashreceiptpayment.ReceiptDate AND pos_cashreceiptdetail.ReceiptDate BETWEEN '2010-10-06' AND '2010-10-20' GROUP BY pos_cashreceiptpayment.ReceiptDate,pos_cashreceiptdetail.ReceiptNo[/CODE] 2.[CODE]SELECT pos_cashreceiptdetail.LocationCode,pos_cashreceiptpayment.TerminalCode,pos_cashreceiptpayment.ReceiptDate, pos_cashreceiptdetail.ShortDescription,pos_cashreceiptpayment.ReceiptNo,SUM(Totalprice) FROM pos_cashreceiptdetail,pos_cashreceiptpayment WHERE pos_cashreceiptdetail.ShortDescription LIKE 'Food Stall%' AND pos_cashreceiptdetail.ReceiptDate = pos_cashreceiptpayment.ReceiptDate AND pos_cashreceiptdetail.ReceiptNo = pos_cashreceiptpayment.ReceiptNo AND pos_cashreceiptdetail.ReceiptDate BETWEEN '2010-10-06' AND '2010-10-20' … | |
I just found this tough question in the last year Q Paper of this exam...I dont know how to take that type of input,leave alone the logic...Can any1 help me with this program, plz... : [B] Question 1 Vogon zoo On the icy planet Zorg, the Vogons are putting together … | |
Hi! I am having trouble with this program. I'm done with the creation of records. My problem is, I cant make it print a record using the Record Number inputted by the user. I used seekg() but it doesn't work. I have attached the files for reference. try.cpp and accounts.txt … | |
Does anyone know of any PHP and MySQL code that will help me out? I'm looking to translate my website but without the use of Google, Yahoo, Bing and so on, but would like to try drive the website through a database. The idea was to have friends from around … | |
I have a small website,I have created html page having form in it.the form contains 3 text boxes that is.. name,email,comment.I need an e-mail script that can submit this form fields to my gmail or yahoo account.I have tried lots of script on internet but they are not working.Can anyone … | |
[CODE]using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { string connectionString; connectionString =("Data Source=INTRANETSERVER1;User ID=sa;Initial Catalog=HrData"); SqlConnection myConnection = new SqlConnection(connectionString); SqlDataAdapter … | |
Hi. I have a calculate.js javascript file where all the function that execute the calculation is consist in this file. Now, I want to retrieve a data from the database for javascript calculation and be done in this calculate.js file. I have search a lot of methods to do this … | |
Coding as below havinf error, help me please; echo"<input type='submit' name='submit' value='DELETE' "onclick="return confirm('Are you sure you want to delete?')">; | |
Hey There all you clever people. Its Ruan here. I am using vb 2010, and i really would like to Just open, not modify a word document. Now i have browsed the internet, and this is what i have found.. in project menu>refferences> select .. microsoft word 9.0 object library … | |
Hello can you help me please... im making the program that will display the smallest number using function in array...please help me...thank you in advance...hoping for your positive responds.... [CODE] #include<stdio.h> void accept(); void findsmallest(int num[],int size); int a; int main(void) { accept(); getch(); return 0; } void accept() { … | |
I have a combo populated with: [code] With Me.cboOwner '// populate cboOwner .DataSource = dtMyCos .DisplayMember = "CoName" End With [/code] DtCos datatable contains: CoID int CoName string So far so good! Then I have a second combo cboIssuer that needs to contain all the items in cboOwner **PLUS** an … | |
How check that database record is not present in ASP page? i have two combo boxes, selecting both if the record is present in the database it is showing, but if the record is not present how to check that & how to show msg? | |
hi, everyone here, i meet some problem in the process of developing my software, who can help me to test this routing system software | |
What do the numbers tell me, in terms of frequency, amplitude and maybe time? Thank you muchly! drue | |
Hi there, Can anyone tell me how to change my win32 programs icon (top left). I'm running MSV C++ Express 2010, so i don't have MFC. Theres a few tutorials on how to do this but using resource files? Which apparently MSV doesn't support. I want to be able to … | |
Hi all, i don't know how to solve this problem...i want store all the data into database. help pls~ thanks~ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <link href="/style.css" rel="stylesheet" type="text/css" /> <title>Insert New Institution</title> <script type="text/javascript"> function addRowToTable() { var tbl = document.getElementById('tblAddress'); … | |
Okay here's what I'm trying to do use a for loop get 5 numbers from input ONE number at a time. Output the sum and average of the 5 numbers. I am only allowed to use a maximum of 2 variables to solve this problem. Heres my code so far, … | |
i have button add and the coding, but everytime 1 click the button, a messagebox said that syntax error INSERT INTO. all database column name and the textbox name is true. i checked many times. this is my code [CODE] Try 'add data inside the database con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data … | |
hi i m new to Haskell, i need help in the deposit money in this simple atm bank system the problem shown during enter amount on deposit" Program error: Prelude.read: no parse" below is the code.Please help.Thank you [CODE]import System.IO start :: IO () start = do putStrLn "------------------" putStrLn … | |
hi, how do i format the currency value. i have used [COLOR="Red"]Format(GrandTotal, "0.00") [/COLOR] but i still got output like this [COLOR="Red"]60917.3972[/COLOR]. How can i make it to 60917.40 | |
Im a college student this is my first computer science class and im having trouble with my code. it will not display the print statment. This is my code thus far. import random choice = raw_input("what die would you like to use: ") d4 = random.randrange(4)+1 d6 = random.randrange(6)+1 d10 … | |
I have a VS project which is compiled using the unicode character set. I load a dll using LoadLibrary and that dll is also built using the unicode character set. I use a method exposed by the dll which returns me a std::string. I am having some trouble with converting … | |
Dear All, I am opening the excel file to create the object of that excel file using 'Microsoft.Office.Interop.Excel'. It is working fine with file system and local iis server on windows xp operating system. But when running the same code on windows 2003 operating sytem on local iis pagerequest time … | |
Hello I'm having trouble solving the following error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '( )' at line 1 I have a php script which I've written in PHP6 which creates … | |
hello, i have to create a program that open a file, read the file, add the number form the files, and display the total sum. Here is what i have [CODE] numbersFile = open('numbers.dat', 'r') line = numbersFile.read() for line in open("numbers.dat"): nums = [int(x) for x in line.split()] #close … | |
is there any surce code to display an image in a dialog box in java pls solve this......... | |
I am stuck on a problem with no idea how to start. I need to create a program that creates a file witha index that tells you which line of the file each word appears on. i Have this so far but i may be way off.[CODE]Import t = open(""),"r") … | |
I'm currently having an issue with moving the camera around the z-axis (roll). For debugging purposes, I have an object with which I've tested with all 3-axis rotation and movement and it's working as expected; the object in question as well as the camera class superseed a positions class for … | |
1>------ Build started: Project: allegro, Configuration: Release Win32 ------ 1> allegro.cpp 1>MSVCRT.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main 1>c:\users\lenovo\documents\visual studio 2010\Projects\allegro\Release\allegro.exe : fatal error LNK1120: 1 unresolved externals ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== | |
Hi There, I'm new to C#. However, my task is 2 read a textfile and store the data in database. But, when reading, i only need 2 read the 1st 2 element of each line leaving the header. Reading the whole line and storing it in database is possible. Bt … | |
Hello, I started C++ and I have a trouble with this thing. I can't make it work. What I am trying to do is to get the value and calculate the area of a circle using a class type of coding style. Note that this does not even compile. "Where … | |
hi, how do i get latest transaction from sql database. All the records is saved in sql database and i use different application to grab the data from sql base on transaction. I use SELECT statement but i don't know how to make it unique variable/ID. 1st user might have … | |
Okay, so, here's the assignment that I have to complete: Write a program that will input two vectors of information. Each vector will contain exactly 8 floating point values. Your program will enter these values from standard input. Once the values have been read in, your program should call a … | |
The practical exercise for this session will be to create a cash register program that you input the cost of an item, the number purchased and if a sales tax applies to the item. If a tax does apply to the item, the tax value will be ten percent of … | |
Hi All, Is there a way to have a login system that needs a file that is stored on the users computer present, similar to online banking sites that use a locally stored certificate (file) for verification or redirect to another page? Thank you, Max | |
from this how do i make the data in the data file listed on my screen? assuming i have already created and implement function for adding updating deleting records. please help!! #include <stdio.h> struct videorecord { int rec_no; /* account number */ char f_name[ 20 ]; /* film name */ … | |
Hi, I have a listbox that is bound to a textblock as target and also has an xml file as source. My problem now is the correct syntax for inserting another listbox in between the listbox and the xml file. My code is shown below... <Window x:Class="newTestApp.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" … | |
hey guys. i am very new to programing and was wondering if anyone else had seen this little trick. this is a little java code to get a saved password prom a website. javascript:alert(document.forms[0].elements[1].value) the forms and values change from site to site but this code works for this site. … | |
I am trying to make a reference program that you can use to access any element of the periodic table based on its name, symbol, atomic number, or atomic mass. It is more than one file, and I need a way to return to main if the user wants to. … | |
Hi everyone, I wrote an INSERT for an insert form but for some reason it wont save the data tot he database. In phpMyadmin the rows are taken up with blank nothings. It seems to work but nothing is being stored. code as follows... [CODE]session_start(); $db_hostname = "localhost"; $db_password = … | |
In the MDI main form I am loading one child form (i.e Login Form)at the center of the MDI form. I want without closing the child form(Login form)no one can access the MDI main form.. After login only the login page should close and MDI form should enable true.. Before … | |
I have web project and window project.Web project reference from window project and I want to debug from web project to source code in window project. Where do I setup to look for debug source code in window project. I copied all source code from another computer. but on another … | |
Okay, I've just started learning C++ and I'm on the third chapter of my book which deals with control statements. Basically, I've learned how to create very basic text based games. [CODE] #include <iostream> #include <string> int main (void) { using std::cout; using std::cin; using std::string; string options = ""; … | |
I keep getting a T String parse error. I am not sure what I'm missing? Any help would be appreciated! <?php $filename = "http://www.empowergroupusa.com/cambiolabs/extension/catalog/files/inspection_886.pdf"; if (file_exists($filename)) { echo "<a\href="http://www.empowergroupusa.com/cambiolabs/extension/catalog/files/inspection_886.pdf </a>"; } else { echo "The file $filename does not exist"; } ?> | |
Hello all. I'm having a bit of trouble trying to figure out how to access data I input into a ctypes array object. This is used with a hardware SDK, so I can't really change the data format at all. Here's the code: [CODE] from ctypes import * MsgDataType = … | |
Hello, Few days ago I was searching online for a way to create a PHP forum though which the visitors can leave their messages and to automatically appear on the page. I found the a code and I used it to create the PHP form, but unfortunately I discovered the … | |
Say that you have a file and the list of numbers like 10 20 16 17 82 93 87 How could I add/subtract/ or multiply these individually? | |
I need to write a program that tells the user to input one fraction(numerator and denominator), along with two other fractions that are given. The program must +,-,/,*,reduce,reciprocate, and find if the given fractions are greater less than or equal to one another. I have no clue of even where … |
The End.