199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Mirfath

Hi! I am designing a form which contains a datagridview which can display all customer orders. I also have a button inside the datagridview so that if a user clicks the button it will open another form which contains the items which the customer ordered in a datagridview. I am …

Member Avatar for pritesh2010
0
1K
Member Avatar for Tko_1

hello again, Im tring to stop this redirect with a button. this is the orginal script. <script language="JavaScript" type="text/javascript"> var count =16 var redirect="example.php" function countDown(){ if (count <=0){ window.location = redirect; }else{ count--; document.getElementById("timer").innerHTML = ""+count+" seconds." setTimeout("countDown()", 3000) } } </script> Browser refresh in <span id="timer"> <script> countDown(); …

Member Avatar for Tko_1
0
539
Member Avatar for eyeda

Anybody can help me with this?I would like to update the status of the user in the mysql database whether its disabled/enabled by inserting 0 or 1 through the edit page.

Member Avatar for eyeda
0
1K
Member Avatar for gelaisg18

Hi guys can you please help me with this. All I need to do is input a number and display the corresponding alphabet.For example 2 then the output should be A B.. I am working on a code but my problem is the output is displaying together with a special …

Member Avatar for gelaisg18
0
526
Member Avatar for NardCake

Hello! On my registration form I ask for a username and I only want a letters,numbers and underscores(_) in the username. How would I go about checking that? Thanks for any help!

Member Avatar for phorce
0
169
Member Avatar for rotten69

Hey folks, I am running into a really good function in JavaScript but I wonder how it is used. I've done a bit of search on how it is used and have seen examples but none of the examples seem to work for me anyway. it throws an error at …

Member Avatar for rotten69
0
228
Member Avatar for Lethugs

Hi, I have 3 tables Description, Item, Transaction Description Item Transaction DeID Name IID Name DeID TranNo Type IID Date 1 Printer 1 Styl T10 1 1 Repair 1 2 Monitor 2 MPS 1 2 Repair 3 3 ImpSonic 2 I need to count how many printers, Monitors etc. are …

Member Avatar for Lethugs
0
316
Member Avatar for DEAD TERMINATOR

I am trying to write a program in which the user will type a word into a search bar, submit it, and the program will search the contents of an array of files for that word and echo the contents of the files that contain the word into a text …

Member Avatar for coreyavis
0
261
Member Avatar for dean.ong.14

i want to make sure that people can quit in the middle of the game and the question is random not in order... please help me.. # make input equal to Python3 style input even in Python2 import random try: input = raw_input except: pass question =" " print("Welcome to …

Member Avatar for dean.ong.14
0
456
Member Avatar for code739

Hi guys, im kind of curious, is there a query or some way to fuse two colums like `select a.col1,b.col1 from table1 a left join table2 b on a.id=b.table_a_id` then as a result i want to display only one column containing a.col1,b.col1 thanks =)

Member Avatar for code739
0
294
Member Avatar for TheMrPatrick

Hi, I am currently making an assigment for JAVA but I am stuck. I have to make a birthdate from the three parameters: day, month and year, which are numbers = int. With this I have to put in some checks for valid dates. That part I think is done, …

Member Avatar for TheMrPatrick
0
304
Member Avatar for tokick4

I have a question of dynamic elements in php loaded through mysql. The PHP code is as follow <?php $query = "SELECT * FROM `fee_table` WHERE fee_class_id = 6 "; $result = mysql_query($query) or die(mysql_error()); // Print out the contents of the entry echo "<table width='400'>"; echo "<th width='10' scope='col'>Qty</th>"; …

Member Avatar for tokick4
0
186
Member Avatar for Cosmo_Kramer

Hello all, I was just wondering if anyone has code snippet for a function that is a multi-queue.....this is for python 2.3 or 2.4 I think so it has to be a bit primitive. The program is simulating people at a store arriving at the checkout, the input from a …

Member Avatar for Cosmo_Kramer
0
217
Member Avatar for new_developer

Hi everyone, I writing a program in which two methods I want to count when it is called. I don't know how to do this. //parent class void BankAccount::deposit(double dep) { if(dep > 0) balance += dep; } void BankAccount::withdraw(double wd) { if(wd > 0 && wd <= balance) balance …

Member Avatar for L7Sqr
0
96
Member Avatar for KE50

When formatted text is pasted from MSWord to a TRichEdit control, the bullets are well formatted (on the display) but after; Fetching the rtf data from the TRichEdit control using TStringStream, Saving the stream's DataString to a database and then Loading the saved rtf string back to the TRichEdit control …

Member Avatar for pritaeas
0
285
Member Avatar for hwoarang69

i want to create repository on github so that more than one people can work on same project. i already create a organiztion, team and repository. https://github.com/Socialwebsite/socal_website.git there is one dir on my computer, one on other peoson computer. and we are uploading on github. so "xammpp>htdocs>socal_website" but its remove …

Member Avatar for pritaeas
0
123
Member Avatar for Cosmo_Kramer

def random(fileName) setup = open(fileName, "r" ) z = setup.readline() waiting = stack() for line in setup: customerNum, arrivalTime, serviceTime = line.split() plane = Customer(customerNum, arrivalTime, serviceTime) push(waiting, plane) setup.close() print "The data file specifies a", z, "-server simulation." print "There are", len(waiting) , "arrival events in the data file." …

Member Avatar for Cosmo_Kramer
0
191
Member Avatar for Violet_82

Hi there I am reading some java tutorial and a have a question about these 2 classes java.util.Scanner; javax.swing.JOptionPane; In the tutorial I am looking at the 2 classes are used in separate programs to get the input from a user With the first class http://www.homeandlearn.co.uk/java/user_input.html after importing the class …

Member Avatar for Violet_82
0
2K
Member Avatar for Umairuddinahmed

How to write a calculator program in c language using command line arguments??? The calculator only needs to perform basic functions of addition, subtraction, multiplication and division of 2 integers only.

Member Avatar for Lucaci Andrew
0
205
Member Avatar for algrandjean1

I am having some trouble with a gcd program that I have created. My problem is that my output is not formatted correctly, and I believe that I need to use arrays to print it out correctly. THe format for the output is: Num1 Num2 GCD Num1 Num2 GCD for …

Member Avatar for Taywin
0
166
Member Avatar for GraficRegret

I am trying to get my code working so that I can store the path of an uploaded picture onto a table so that I can call upon the uploaded file whenever I need it. So what happens on the web page is, a person enters information on a vehicle …

Member Avatar for diafol
0
182
Member Avatar for phphelp123

<?php session_start(); # start up the session $host="localhost"; // Host name $db_username="root"; // Mysql username $db_password=""; // Mysql password $db_name="shop"; // Database name $tbl_name="users"; // Table name // Connect to server and select databse. mysql_connect("$host", "$db_username", "$db_password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // username and password sent from form …

Member Avatar for Zagga
0
105
Member Avatar for matusekm

I am new to PHP and I'd like the following form to require all fields. I am unsure whether or not this is possible since I am so new to this language. Here is the code. Any help would be useful! <?php $name = $_POST['name']; $email = $_POST['email']; $message = …

Member Avatar for GliderPilot
0
177
Member Avatar for Neethaa

Dim Cname As String Dim CID As Integer Dim Rmaterial As String con = New OleDbConnection("Provider=Microsoft.ace.Oledb.12.0;Data Source= C:\Users\Lenovo\Documents\Visual Studio 2010\Soft\Database\Login.accdb") con.Open() cmd = New OleDbCommand("select * from Purchase where CompanyID='" & txtnum.Text & "'", con) dr = cmd.ExecuteReader() If txtname.Text = "" And txtnum.Text = "" And txtraw.Text = "" …

Member Avatar for Reverend Jim
0
599
Member Avatar for ncis_sg1

I am trying to understand how packages work. I think I have finished steps 1-7 but I am not sure. Now I am trying to start step 8 however I am confused as to how I can get the Test class to use the squar and cube classes. How does …

Member Avatar for ncis_sg1
0
144
Member Avatar for McLaren

To register at http://www.box2d.org/forum/index.php there are difficult and annoying questions. But I solved one of them which was easiest for me, so I share in case someone else will want to register there: A ball of mass 3 kilograms begins falling with gravity of 10 meters per second squared. How …

Member Avatar for McLaren
0
125
Member Avatar for LadyQuietB

I need help doing this assignment. Here are the instructions: **5.06 Assignment Instructions – Bottle Cap Prize** **Instructions:** Write a program that uses the Monte Carlo sampling method to estimate the average number of bottles of e-Boost someone would have to drink to win a prize. There is a 1 …

Member Avatar for Taywin
0
1K
Member Avatar for TIM_M_91

OK so I have two classes in the first class is where the database is handled, in the second class is where I want the output from my database select statment in be displayed on a label. How do I get the result to a label on Invoice.aspx? DBdatabase.cs public …

Member Avatar for TIM_M_91
0
184
Member Avatar for bprosic

Hi, I have a simple program with datagrid view bounded to MsAccess DB in Visual Basic 2010. When user changes the width of datagridview columns and restarts the program, width of the columns have been reseted to original state. Now, what code can I use and how can I save …

Member Avatar for bprosic
0
549
Member Avatar for new_developer

I want to write a simple program to check class and inheritance in Code Blocks but i don't know how to write. I have make new project and add new class named "Car". This is main class. #include <iostream> #include "Car.h" using namespace std; int main() { Car c; return …

Member Avatar for new_developer
0
386
Member Avatar for AndreRet

I have 3 select boxes, each one returns a different field from database i.e., in database - 2010 BMW 320i, record 2 2008 Aston Martin DB9 and so on. What I do is to first get user to select a year, then submit form so I can return all vehicles …

Member Avatar for AndreRet
0
187
Member Avatar for murali1

Hello everybody , Im created an Application in vb6.0 . In that application i have to store data in a web Mysql database.How can i connect tht

Member Avatar for AndreRet
0
2K
Member Avatar for choeychoco

i am trying to execute an exe file on a remote computer using vb 6.0 and i'm using psexec here is my code: shell("psexec //computer1 d:\test.exe") but it is not working by. by the way i am using a cloned system. can anybody help me.. thank you so much.

Member Avatar for AndreRet
0
319
Member Avatar for jaasaria

hi guyzz i wanted to remove item in the lisview using the for each i want to delete multiple item with similar field in the listview. any help.. for this problem.. it could be possible ? i have here code but it delete only selected item in the listview. (ListView1.ListItems.Remove …

Member Avatar for bluemarine90
0
3K
Member Avatar for mcbentz

Hey quick question..I have a file..have decoded it..but in order to work out the file contains..I was asked to use brute force..I have entered all the keys (0-255) but not one of them give me a decent outcome..I hope this makes sense..this was done in java..(its for a coursework) I …

Member Avatar for Taywin
0
331
Member Avatar for GmanD

Hi. I'm looking for a way to perfrom a recaptcha verification pass on an html form then, if successful, submit the detail to salesforce via their Web2Lead feature (don't have API access unfortunately). Our salesforce integrated contact form has been subject to spam, like many others it seems, therefore I …

Member Avatar for eerlewein
0
264
Member Avatar for glenwill101

hello ive been working with c++ for a few weeks now and from yesterday ive attempting to write a console game but i keep getting an error. //where all the noise is coming from class Story{ public: Story(); ~Story(); void mainMenu(); void start(); private: void levelOne(); void judgement(); }; Story::Story(){ …

Member Avatar for glenwill101
0
105
Member Avatar for MissAuditore

Hi guys, Having a bit of a problem with reading and writing to a file. I have a file that has a lot of symbolic stuff I want to remove. And get a new kinda clean file with just the numbers and names. And it finds the line where it …

Member Avatar for Lardmeister
0
232
Member Avatar for serdar.ilarslan

Hey guys i am in trouble about BST Tree exercise.. i need to create an array that can take number of elements user want and the user has to enter integers but the program need to get this number in one line ... Here is code that i already wrote …

Member Avatar for serdar.ilarslan
0
324
Member Avatar for Lethugs

Hi, I have 3 tables Description, Item, Transaction Description Item Transaction DeID Name IID Name DeID TranNo Type IID Date 1 Printer 1 Stylus T10 1 1 Repair 1 2 Monitor 2 HP 1 2 Repair 3 3 ViewSonic 2 I need to count how many printers, Monitors etc. are …

Member Avatar for john.knapp
0
189
Member Avatar for Brick Wall

Right guys i need you help please! Im building a weather station that is meant to be updated every 1 hour. To save on time we are setiing the timer tick event to occur every 5 sec which is equal to 1 hour. Now heres the problem! Every thing is …

Member Avatar for Momerath
0
111
Member Avatar for howard.teoh.7

Actually, i want connect a database is in another computer, may i know how to connect the database over LAN to retreive the database on another computer, and what step i need to do?

Member Avatar for BobS0327
0
109
Member Avatar for Youler

Hi everyone, First post here so feel free to school me if my etiquette needs it. I'm reading a very long string of data (genome stuff AT TT GT AA AG AA ... etc) and comparing it using hamming distance with a similar string. (Naively checking for similarity entry by …

Member Avatar for Lucaci Andrew
0
159
Member Avatar for d.noora

**how we can use recursion in implementing tower of HANIO?? and how does it work i need someone's help ??!!!**

Member Avatar for Lucaci Andrew
0
94
Member Avatar for panatda.tokhume

#include<iostream> #include<fstream> #include<sstream> #include<stdlib.h> #include<math.h> #include<iomanip> using namespace std; int main() { int NUM_Object,NUM_Medoid; cout<<"How many menus u have?"<<endl; cin>>NUM_Object; cout<<"How many Medoids(k) do you want?"<<endl; cin>>NUM_Medoid; ifstream myfile("Nutrient.txt", ios::in); int i,j,k,count; count = 0; float TEMP_num; double Object[NUM_Object][5]; double Medoid[NUM_Medoid][5],Medoid_New[NUM_Medoid][5],SUM_Distance[NUM_Medoid],SUM_Pij[NUM_Medoid], SUM_P[NUM_Medoid],SUM_Distance_New[NUM_Medoid],SUM_Pij_New[NUM_Medoid],SUM_P_New[NUM_Medoid]; long double Distance[NUM_Object][Object]; for(i=0;i<NUM_Object;i++) { for(j=0;j<NUM_Object;j++) { Distance[i][j] …

Member Avatar for panatda.tokhume
0
189
Member Avatar for gahhon

<The parameterized query '(@bid nvarchar(5),@rid nvarchar(4000),@total float,@duedate nvar' expects the parameter '@rid', which was not supplied. > The Error Was Occur when i doing this calling this function. private void setBill() { SqlCommand cmdBill = new SqlCommand("INSERT INTO Bill (BillID, RegistrationID, TotalFees, PaymentDueDate, Status) VALUES (@bid, @rid, @total, @duedate, @status)", …

Member Avatar for gahhon
0
120
Member Avatar for riahc3

Hello I want to do a indexOf but of certain special characters such as variable.indexOf(''')==-1) variable.indexOf('/')==-1) variable.indexOf('')==-1) variable.indexOf('"')==-1) etc, etc. How can I do this?

Member Avatar for pritaeas
0
74
Member Avatar for marius2010

Need to find larger prime number then has been inputed.how to do that: I *cin* 5 the reult it self should be 7...?

Member Avatar for Lucaci Andrew
0
192
Member Avatar for ku.heng.7

public partial class TestingDisplay : System.Web.UI.Page { PagedDataSource pds = new PagedDataSource(); protected void Page_Load(object sender, EventArgs e) { /*SqlConnection conCart; SqlCommand cmdSelectCount; conCart = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionNWind"].ConnectionString); conCart.Open(); cmdSelectCount = new SqlCommand("Select Count(*) From ProductDetails Where CategoryCode = @category", conCart); cmdSelectCount.Parameters.AddWithValue("@category", ddlCategory.SelectedItem.Value.ToString()); var countStart = (Int32)cmdSelectCount.ExecuteScalar(); lblCount.Text = countStart.ToString();*/ /*if …

Member Avatar for Mike Askew
0
355
Member Avatar for letterG

I'm stuck at comparing the operators, it seems I can only compare the current operator to the topmost of the stack, how do I keep on comparing it til the stack is null or the precedence don't hold true anymore?...i've commented the part where I think my program fails...any help? …

Member Avatar for letterG
0
4K

The End.