64,152 Solved Topics
Remove Filter ![]() | |
Hi, I have one page session-bom.php, in which computer parts are availlable for shopping. e.g. mouse , keyboard ect. with the checkbox. and textboxes to enter quantity and label of prices. When user hits 'submit' button, only selected parts goes to the bill.php page and showing their price multiplied by … | |
i'm having problem in executing this statement.... error expression syntax switch(col) { case 1:text[]={"0x00000000"}; break; case 2:text[]={"0x00FFFFFF"}; break; case 3:text[]={"0x0000FF00"}; break; case 4:text[]={"0x00FF0000"}; break; case 5:text[]={"0x00C000C0"}; break; case 6:text[]={"0x000000FF"}; break; case 7:text[]={"0x0000FFFF"}; break; case 8: text[]={"0x00FFFF00"}; break; } char text[10] is global. please help me out............. | |
[CODE]public class Employee { private String name; private String SSN; private Employee e = new Employee("ME","MYSSN"); Driver x = new Driver(32); public Employee(){ } public Employee(Employee e){ this(e.name,e.SSN); } public Employee(String name, String SSN){ this.name = name; this.SSN = SSN; } public static void main(String [] args){ Employee e = … | |
Hello to all..plz help me in this plzzzzzzzzzzzzz i want to view/download a files from production server and after downloading i want to delete the same file from 2 places i.e from (database and one Uploaded folder in server). i have 2 quries: 1: View Only ? i have this … | |
Hi to all, I have 4 pages. page1.php, page2.php, page3.php and last.php. page 1, 2 and 3 pages have one text and submit button. The values enter by user in page1.php store in session var. and clicking on 'Submit' button. page2 shuold be open. In this page same procedure should … | |
Hello, I have a strange annoing situation with a C# software i made. The software is made by me, it uses : - usual C# libraries - visual studio 2008 - MySql DB with .net connector - Crystal reports Problem : - the problem is that on a specific system … | |
Hi I need some help with sizers. I just can not get my head around it and i cant find much on the net about what i am trying to achieve. I am not even sure if i need a grid sizer or two box sizers. This is what i … | |
i've embeded google maps on my site with a marker setup were i wanted, but i cannot use "Get directions" to open in the same div that i use. Is it possible to do that, or my only options are _blank, _self etc. [CODE]<script src="http://maps.google.com/maps?file=api&v=2&sensor=true&key=ABQIAAAAsoAP0MDLt21HBpoCAZ0DLBQD344IlC21WoKHBucdD45AbVnqaxQoNHNKFtJHrVaqBr2Dwfh1G1O2-g" type="text/javascript"></script> <script type="text/javascript"> function initialize() … | |
Hi, I am wondering if i am able to insert 2 entries from a form to mysql. for example: [CODE]</tr> <tr> <td bgcolor="#eeeeff"> Is it a shared devices?<br> <font color='#F62817'>** If yes, please indicate the shared device num. </font> </td> <td bgcolor="#eeeeff"> <SELECT name="shared"> <option value="No"SELECTED>No</option> <option value="Yes">Yes</option> <INPUT type … | |
I have some code that works. However, when I try to make it not work (i.e. try to execute a non-existent program), I don't see any indication that it hasn't worked. Here's the code snippet. [code=C] pid_t pid; // char *const paramList[] = {"/usr/threshold/bin/preconfig.sh", options[indexSelected].optionName, NULL}; const char* paramList[] = … | |
Hi. I've been browsing this forum for answers for some time now and i guess it's about time to post a question myself. Here's the deal: I have a dll file in which i define a method that sets SE_DEBUG_NAME to enabled. Here's the code: [CODE] // tema4dll.cpp : Defines … | |
here are the instructions for my assignment Write a program that counts the number of words, lines and total characters (not including whitespace) in a paper, assuming that consecutive words are separated either by white space or end-of-line characters. Your output from this particular file should say: line count: 58 … ![]() | |
Good day guys. I want want a little help of my query. The tbl_ entity: tbl_1(UserId(AutoNum ber - set as primary key),Validity(Date/Time)) [code=vb] dim logonid as long rs.open "SELECT * FROM tbl_1 WHERE UserId='" & logonid & "'",conn, adopenkeyset,adlockoptimistic [/code] It returns an error invalid data type expression. But when … | |
Hi, I have this problem which I do not know how to solve in VB. I have to read from a text file, but only write selective lines to a new txt file. E.g. (original text file) ============================================ SINNWSQ .SINFMSQ 230606 SSM LT 23MAR00323C108 NEW SQ 3328 01NOV04 31DEC20 2 … | |
I start a new WindowsApp with Form1 with a Button. Added a form Form2 to my project. In the click event handler of my button I do the following: [CODE=csharp] private void button1_Click(object sender, EventArgs e) { Form2 F = new Form2(); Point P = new Point(500, 500); F.Location = … | |
I'm using python for a project and was curious if anyone knew whether it was possible to open up jpg files in a GraphWin window. Also, the image software I'm using with it is PIL, if that helps. | |
Hiya Guys, Been working on the w3schools livesearch example but you can only select the option via a link. I'm trying to do it so i can submit a value to return database results. The external php code is below if anyone wants a look: I got it returning the … | |
EDIT: Nevermind, I already found what was wrong; But I can't draw a card properly when I run it still. [CODE]import java.util.Scanner; import java.util.InputMismatchException; public class CardDealer //Main Class { public static void main(String[] args) { Scanner keybd = new Scanner(System.in); Deck deck1 = new Deck(true); int count = 0; … | |
I can usually figure out problems like this with some testing or google searches, but nothing is working for me this time. I've installed a comments page on a website for a friend of mine, I got the code for the page from phpjabbers.com (and they aren't very much help!) … | |
Hello, I am having some trouble debugging a simple windows forms application. I have four textboxes, two being readonly that display the calculated answers, and then a "calculate" button. here is the code for the calculate button: [code] private void btnCalculate_Click(object sender, EventArgs e) { decimal obj_height = Convert.ToDecimal(txtHeight.Text); decimal … | |
I have a form named:"RegistrationForm.php". when i click the "submit button", there's a data inserted in the database (the prove is, there a new row in the database), but there's no value from user textfield(ic_no,name,email...) that have been inserted. It means like there's a row of data inserted but without … ![]() | |
Hey Guys and Gals, I have an array: Array ( [Small] => Array ( [0] => 4 [1] => 5 [2] => 3 ) [Butters] => Array ( [0] => 5 [1] => 2 [2] => 5 ) [black] => Array ( [0] => 3 [1] => 5 [2] => … | |
I'm writing a program that requires the user to select a file when the program starts. If he cancel this the program exits. Currently I'm creating an OpenFileDialog in the main form's constructor, but it's not working very well due to the following issues: * If the user cancels I … | |
I have a problem with inheritance. I have the class A with functions x and y Class B is a subclass of A and should override y. y should call y in A and add extra functionality. Class C is a subclass of B and should override y. y should … | |
During a university project, I had to print some int arrays to the screen, and I wanted to do it with printf. So I decided to include a function that converts an integer array into a string type, and passes the string out to the calling function. But the function … | |
This isn't entirely a programming problem, but it may be at its base, which is why I'm bringing it to you guys. For my assignment, I have download a .txt file from my prof's webpage, and then have my program open it. The file, when opened in a web browser, … | |
Hi experts, I have confusion about the point I read in my book: I. In a source file you can define number of classes, but only one of them can be a public class. In this case, the name of source file must match the name of public class. II. … | |
I wonder if at least according to ECMA-334, section 15.9.5, the behaviour of following is undefined: [code] using System; class FindingCountry { public static void Main(String[] args) { int a=0; try { throw new ArgumentNullException((5 / a).ToString()); } catch (DivideByZeroException) { } } } [/code] Running it with the VS … | |
Hi all. I have the following form: [CODE=html]<form id="registrationForm"> <input id="forename" type="text"></input> <input id="surname" type="text"></input> <input id="emailAddress" type="text"></input> <input id="password" type="password"></input> <input id="confirmPassword" type="password"></input> <input id="agreeToTerms" type="checkbox"></input> <input id="clickToRegister" type="button" onClick="javascript:SpeakAtServer(FormToJson('registrationForm'))" value="Register"></input> </form>[/CODE] ...with the following JavaScript... [CODE=javascript]FormToJson = function(sourceElement) { var JsonToServer = new Object(); if (document.getElementById(sourceElement).childNodes) { var … | |
Hey gang, I have a string array containing 10 words,I would like to randomly pick one of these words, how do I go about it,cant find any tutorials???? Thanks Buzz | |
Hi i want implement a windows services scheduled task. I already created windows service. In a service i have implemented a timer.The timer is initialized at class interval. The timers interval is set in the start method of service and also it is enabled in the start method of the … | |
This program is a GUI shopping menu with text fileds next to item descriptions. My question is about the add method in ShippingCart class. It is called every time an action occurse in a text field, from a GUI class not shown here, where quantity requests are entered. So when … | |
Hey I hope someone can help me here because I am pretty stumped on this one... All I'm trying to do is to update my user_usr table with the submitted form data. It was working perfectly the other day so I must have changed something somewhere. The code and the … | |
Hi guys, i want to find something out that will help me out a great deal. I am including a menu from a separate .php file using [CODE]<?php include("menu.php"); ?>[/CODE] but something that i really need to find out before i can continue with this. When I'm at eg 'Home' … | |
hey i am new in javascript, i was having problem in including jquery in this file in Visual Studio but i resolved it by using ResolveUrl but after that its giving error "; expected" in the line1 i-e [CODE]<[COLOR="Red"]%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2"%>[/COLOR] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 … | |
I'm working on my poker clock again now that I found the source, and I need some help with loops. I have a label that has the round number on it, and labels for the small and large blinds for the current round, and for the next round. I have … | |
[CODE]#include<stdio.h> void squeez(char s[],char z[]); int main() { char s[100] = "Hey wassup !!!!!!"; char z[100] = "Wow cool!!!!!"; squeez(s,z); return(0); } void squeez(char s[] , char z[]) { int j,dummy = 0,i=0; char x[100]; for(j = 0 ; s[j] != '\0';j++)/* the starting loop */ { while(z[i] != '\0') … | |
Just a quick one- I'm writing code that asks the user for a filename and checks that it exists. If it does it has to print the file's contents, if not print a message. [CODE]import os fileName = raw_input("Enter the name of the file: ") if os.path.exists(fileName) == True: fileName.read() … | |
Hi I really need help figuring this one out I have been working at it forever. I am trying to pass an array of 3 pointers, which are themselves arrays, and get the sum of the last two pointers and store it in the first pointer. The pointerarrays are filled … | |
Why do I have do use the Seekg()-function two times in a row to make it work? Code: [CODE] fbin.seekg(0); //jump to record at start of file fbin.seekg(0); //jump to record a second time (else it won't work) fbin.read(name, sizeof(name)); //read from data field 1 fbin.read(reinterpret_cast<char*>(&age), sizeof(int)); //read from data … | |
I had a hard drive crash and lost all my source code for my poker clock program, but still have the program. Are there any programs I can use to reverse engineer my program so I can get the code back? | |
error: default argument for `int&ns1' has type `int'. i cant figure out why this error is popping up it says the error is on line 3, anyone know how to help? [CODE]#include<iostream> using namespace std; void score_num(int &ns1=0,int &ns2=2,int &ns3=3, int &ns4=4, int &ns5=5, int &n6=6, char gam_answ); void display_score(int … | |
Hi, Is there a way to set a default query string if query string is null? Something like: [CODE] if (Request.QueryString["ID"] == null) { //set default here } [/CODE] Many Thanks Grant | |
Dear Friends, im receiving a XML file which contain a HTML code in the value of a node.. i have fetched the html code, but now i have to show that on my ASP .NET page. please tell me how can i do that... is it possible to assign that … | |
![]() | I have this code: [CODE]class Member: def __init__(self, name, typeOM, fee, yearJoin): self.name = name self.typeOM = typeOM self.fee = float(fee) self.yearJoin = yearJoin # Reader Methods def getName(self): return self.name def getTypeOM(self): return self.typeOM def getFee(self): return self.fee def getYearJoin(self): return self.yearJoin def getMemberTypeString(self): if self.typeOM == 'P' or … ![]() |
Good day guys. Im just new in c++. I just want a little help/guide/sample code or steps on how to get files from a certain txt files(notepad) and display it on screen. Vice Versa. Thank you for giving time. God bless. | |
<?xml version="1.0" encoding="ISO-8859-1"?> <catalog> <cd country="USA"> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <price>10.90</price> </cd> <cd country="UK"> <title>Hide your heart</title> <artist>Bonnie Tyler</artist> <price>9.90</price> </cd> <cd country="USA"> <title>Greatest Hits</title> <artist>Dolly Parton</artist> <price>12.90</price> </cd> </catalog> Hi, I'm sure it's very simple, but I'm new at ASP and XML. I just want to know how I … | |
Good evening everyone. I have a php based site which was designed a few years ago. I have done very little with the site since I purchased it because I was not very familiar with PHP. Well I still am not very familiar with PHP, but I am more familiar … | |
I'm trying to figure out how to change the edit box colour when I click on the button. Btw, i'm using VC++ 6.0 (MFC). One way I can do is assign a colour variable. When I click the button, the colour variable changes. When the program call the OnDraw function, … | |
Hi, I have serial data that can come in at irregular intervals from a hand held barcode scanner. The scanner continuously looks for a barcode (no button or trigger is ever pressed) and when the scanner captures a valid barcode it sends the code to the PC over serial. What … |
The End.