199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tux4life

A program which displays the prime factors of a given number, all the 'hard' work is done by the [B]factorize()[/B] function: [CODE=c] /* Find out the prime factors * of a given number and print * them on the screen */ void factorize(int n) { int d = 2; if(n …

Member Avatar for delta_frost
0
796
Member Avatar for mark.scutt.7

Hi all, I wrote an application for our poker games. It works great as a timer and stores our points. My problem is that I want to sort the points in order and redisplay along with peoples names, total tournament games, total games. Here is a snippet of how I …

Member Avatar for AndreRet
0
208
Member Avatar for PikapikaPi

Make a program that counts, identifying every value divisible by 3 and 5. If it is divisible by 3, put an asterisk (*) beside it. If it is divisible by 5, put a tilde (~) beside it. Print the first 200 values. Can someone help me? i don't actually know …

Member Avatar for 2teez
0
183
Member Avatar for bratbo

I want to make include file with a function, which among other things creates a link to the page itself, with an querystring variable added, how can i get the name of the current php file thus avoiding to have it as a string constant that has to be changed …

Member Avatar for ishan1211
0
5K
Member Avatar for anuradha.joshi10

Hello, I have got the following array string through URL. http://www.xmeniafitnessclub.com/1024768/enquiry.php?fname=hgg&sex=female&facility=weightloss&facility=weightgain&facility=yoga&facility=danceclass&phone=363636&email=anuradha.jo1shi%40cognizant.com&feedback=%0D%0Ayuy&submit=Submit I need to seprate out following values.. I am trying this array but with no luck.. # **&facility=weightloss&facility=weightgain&facility=yoga&facility=danceclass** # HTML code for same is - <tr> <td><label>Facility *:</label> </td> <td> <input type="checkbox" name="facility" value="gym"/> Gym<br /> <input type="checkbox" name="facility" …

Member Avatar for anuradha.joshi10
0
2K
Member Avatar for lovetwins01

Hi Everyone, I am taking C++ for the second time and I am understanding it better this time around. I have an assignment that needs a switch (got that, know how to do it), I have put if/else statements inside of the cases. The thing I can't get to work …

Member Avatar for krissybhabhie
0
2K
Member Avatar for BobTheLob

Hey, so i'm having some problems with my message passing code. Ultimately, what i'm trying to do is use the msgget/snd/rcv commands to send the pid of the parent to the child, and visa versa. However, i'm getting an invalid argument error fr my msgsnd in the child process. My …

Member Avatar for allyson
0
2K
Member Avatar for yashikagg

I am using C++/Qt4.3.0.Here I am exporting an html report to .doc file containing some images that are created at run time.For that, I have used html and then inserted the html text to QString and then to QTextEdit..Now I want to make this .doc file system independent so the …

Member Avatar for yashikagg
0
740
Member Avatar for Mike_H

Two years ago Airshow helped me with a Vertical Slider Zoom feature for a project of mine. Now I have a need to do the same but with a Horizontal Slider to zoom a photo. I need the slider in this example, [http://bbhs69.com/senior_class_photo_copy(1).htm](http://bbhs69.com/senior_class_photo_copy(1).htm), to be horizontal and at the very …

Member Avatar for Airshow
0
975
Member Avatar for squizzel

Hey all, this is a pretty basic program that will take a use submitted array and call functions to find the max,min and then a function to reverse the array. I have the first two functions written and working but I am having trouble with the reverse array function. The …

Member Avatar for WaltP
0
2K
Member Avatar for semicolon

Hello I have a table item1 | Item | Qnty | ProdSched | | a | 1 | 1 | | b | 2 | 1 | | c | 3 | 1 | | a | 4 | 2 | | b | 5 | 2 | | c …

Member Avatar for semicolon
0
200
Member Avatar for jayrbete

how can i view record from my mysql database in datagridview and update or delete it? can you guys help me? please share your codes. thanks in advance.

Member Avatar for brylle
0
281
Member Avatar for shadiadiph

Hi can anyone tell me how I can write data to the main www.example.com from mobile.example.com i keep getting a http write error when i try to mkdir or a file on the main domain from the subdomain??

Member Avatar for shadiadiph
0
120
Member Avatar for cloudynight

Hi Guys, I have this problem which I encountered a while back in Java, and I worked through that at the time, however, know I'm using VB.net and am not really sure how to tackle this. I am trying to read a text file line by line, using the following …

Member Avatar for TnTinMN
0
364
Member Avatar for garyjohnson

This is my html page, which takes in an input by the user and the searches the database for the word, also there is a function which is suppose to display the results here is the html code <?php require_once ( 'browsing.php' ); ?> <!DOCTYPE html> <html lang="en"> <head> <title>Browse</title> …

Member Avatar for iamthwee
0
246
Member Avatar for oscargrower11

I've been strugglin with this all day. I'm trying to use python to walk through a registry key and delete all the values it finds. I've succeeded in getting it to find all the nested values, but as soon as I try to delete one, I'm met with "WindowsError: [Error …

Member Avatar for oscargrower11
0
1K
Member Avatar for cisumma

Hello I am using Apache derby embedded database: I have been using a system to display records from the database described in "DisplayInstructorAvailableNowJTable.java". it allows the result set to create a model from a prepared statement. I have only uncovered the tip of the iceberg concerning JTABLE. I am not …

0
139
Member Avatar for bagehot43

I have two files, slideshow2.html and getimages2.php. The first contains a variable, js_var, with the name of a directory. This will ultimately come from a database. I want to pass js_var to the php file, which creates an array (galleryarray) out of the images in the directory and sends it …

Member Avatar for bagehot43
0
253
Member Avatar for pilipino93

Hi, I'm a bit rusty with my C# but I'm trying to write a program for this website I am making. It's just a little something to help me edit certain texts in my website faster than what I normally do. Anyway the program I am making, I want it …

Member Avatar for pilipino93
0
263
Member Avatar for garyjohnson

I have an html form which brings up an input box, which is this <!DOCTYPE html> <html lang="en"> <head> <title>Browse</title> <meta charset="utf-8"/> <link rel="STYLESHEET" type="text/css" href="../../style/Browse.css"> </head> <body> <form> <form name="input" action="Browsing.php" method="post"> Search <input type="text" name="search" /> <input type="submit" value="Submit" /> </form> </form> </body> </html> Then I have a …

Member Avatar for broj1
0
128
Member Avatar for kjk86

What I'm trying to do is take a source file and only pull specific lines out and display those lines to a label/textbox/etc. What's happening is I am able to pull the first line, however my loop is terminating and I do not receive the rest of the results. Here …

Member Avatar for TnTinMN
0
391
Member Avatar for bluehangook629

Hello again my friends, I am trying to figure out how to code a function which will pause the system until the user presses the key. I did some googling and I was able to find this function called getch() for c++ but no luck for vb.net. Is there a …

Member Avatar for Rango1239_2
0
1K
Member Avatar for natehome

how would you add a scroll bar to this code [CODE] import site # for exemaker import tkMessageBox from Tkinter import * import os, sys TITLE = "Pydit" class RoomEditor(Text, object): def __init__(self, master, **options): Text.__init__(self, master, **options) self.config( borderwidth=0, #font="{Lucida Sans Typewriter} 14", #font="{OCR A Std} 14", font="{Terminal} 14", …

Member Avatar for vegaseat
0
423
Member Avatar for testname123

Ok, this is a little hard to explain, i basically am making a miniature operating system and there is a notepad feature. I am allowing a save in this operating system. I have a hidden button on the mainscreen than shows itself when the save is clicked on the notepad …

Member Avatar for testname123
0
152
Member Avatar for Labdabeta

I want to be able to make a program that emulates what a human at a computer can do. IE: I want to be able to read the visual information of a window (a 2d array of colour would be perfect) and be able to send virtual key syms and …

Member Avatar for Labdabeta
0
123
Member Avatar for magnum_vf

hi Folks, I haven't used access in a very long time, so i'm a little behind the 8 ball with it. I've got a date selection form (frmWhatDates) with txt boxes txtStartDate and txtEndDate. I want to send those values to report rptAccuracy rptAccuracy pulls from query qry_report_totals_sorted (which just …

Member Avatar for magnum_vf
0
137
Member Avatar for WDrago

All, I am working on my first forms app (using NetBeans). I don't like to mix GUI code with app code, so I have my main class, GUI class and core code class nicely seperated. When the user clicks a button on the GUI form it calls a method in …

Member Avatar for WDrago
0
216
Member Avatar for hhm_pro992

Private Sub cmddelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmddelete.Click If Not acsconn.State = ConnectionState.Open Then acsconn.Open() End If 'sql statements strSQL = "DELECT * FROM Table1 ([Item Code], [Item], [Sale Price], [Purchase Price]) values ('" _ & txtid.Text & "','" _ & txtname.Text & "','" _ & …

Member Avatar for hhm_pro992
0
242
Member Avatar for antoinette.boulevard

I've figured it out but I want to know HOW. When I do code I try and figure out the math behind it on the side so I know exactly what is going on. But this time has stumped me. I know what the code is suppose to be, so …

Member Avatar for pasx
0
3K
Member Avatar for onofej

please could someone help me for a code to validate DOB i got this code on the web but doesnt work i want to validate dd/mm/yyyy or any other format is fine by me. if(preg_match("/dob/i",$field)) { if(!preg_match("“/^([0-9]{2})\/([0-9]{2})\/([0-9]{4})$/”",$value)) code from web { $errors[]="$value is not a valid dob please enter only …

Member Avatar for diafol
0
6K
Member Avatar for Dev.Waleed

Hey there! I am a new student that wants to be a GOAT of Developing, I don't know anything about Java. But by watching I downloaded Eclipse IDE for Java Developers but don't know how does it work :D I have also downloaded Java Program or Files from http://www.java.com/ Can …

Member Avatar for stultuske
0
236
Member Avatar for Suzie999

Hi I'm hoping to get some starting points here in a subject that scares me, RegExp. I've looked at a couple of tutorials but they all seem to be based on std::string. I'd like to use std::tr1::regex but I don't know where to start or even if it's possible without …

Member Avatar for Suzie999
0
2K
Member Avatar for danifj

My name is Danielle Jacob and I am a Masters (through) Research student at Bangor University, North Wales. *[email removed]* I have been using Python now for about 3 months (but only once a fortnight for a few hours at a time...so I am still very new) My supervisor extracted …

Member Avatar for Xantipius
0
152
Member Avatar for hemanth.balaji

I am getting the following exception when I am running my Swing Application. But the program continues and does not terminate abruptly unlike general Exceptions Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javax.swing.plaf.basic.BasicTreeUI.paintRow(BasicTreeUI.java:1399) at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1189) at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142) at javax.swing.JComponent.paintComponent(JComponent.java:742) at javax.swing.JComponent.paint(JComponent.java:1005) at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4963) at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4916) at javax.swing.JComponent._paintImmediately(JComponent.java:4859) at javax.swing.JComponent.paintImmediately(JComponent.java:4666) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451) …

Member Avatar for JamesCherrill
0
759
Member Avatar for Codaholic

objCommand.Connection = objConnection objCommand.CommandText = "UPDATE tblEnrollment" & _ "SET dateOfHIVDx = @dateOfHIVDx, " & _ "CD4CountAtDx = @CD4CountAtDx, " & _ "WHOStgAtDx = @WHOStgAtDx, " & _ "ptInitiatedART = @ptInitiatedART, " & _ "ARVRegimen = @ARVRegimen, " & _ "recentWHOStg = @recentWHOStg, " & _ "dateOfRecWHOStg = @dateOfRecWHOStg, " …

Member Avatar for Codaholic
0
151
Member Avatar for sarah.mathieson.7

I am trying to read lines of input from a BufferedReader and output them in sorted order without any duplicate lines. I think that using a TreeSet would be my best option. Unfortunately I don't know how to get my input from the BufferedReader into the TreeSet. This is what …

Member Avatar for NormR1
0
356
Member Avatar for MARKAND911

http://localhost/Project.html?ProjectId=P6610C32F-7C54-4221-A190-A9E7E08F8B08 This is my weburl. I want to retreive query string value of variable "ProjectId" How i can do this using vbscript and html page

Member Avatar for JorgeM
0
106
Member Avatar for Dendei

How do I code if I am coding what will happen if I press a button. and then ask a question and want to wait until either of two others buttons are pressed like an yes or no question say i code something and to continue i need the answer …

Member Avatar for ddanbe
0
266
Member Avatar for ysmtek

*Hello people of the DaniWebs! It's been a long time since I've been talking and asking here, under the name of **katmai539**. I've lost account information and also the email address linked to it. I haven't been active in the software development-branch for the past few years but recently I …

0
228
Member Avatar for honeybee2090

i want creat a login client application have webbrowser1 ,text1 = username , text2 = password, button1 = login and here is link , but user name and pas is wrong http://188.165.91.36//login.php?username=honey&password=333 i dont want to use http post method i want to use web browser

Member Avatar for AndreRet
0
96
Member Avatar for mmcdonald

Okay so here it is. The code below is my player counter for a game called Minecraft. It connects to a server and brings back 2 values. 1) The number of current online players and 2) the maximum number of player slots. Then it stores these two variables in to …

Member Avatar for pritaeas
0
195
Member Avatar for ericjw316

Hey everyone i have a database for a plumbing site i am working on. They would like some way for customers to send in a ticket to there system and they need it up right now. I am building a ticketing system for them right now but i need a …

Member Avatar for dcdruck
0
192
Member Avatar for Suzie999

I am getting results from a routine which are unexpected from me. here is athe code. void MyTestFunc(){ u_char MyTest_u_char[10] = {'a','b','c','d','e','f','g','h','i','j'}; u_char * MyTest_u_char2 = new u_char[8]; memcpy(MyTest_u_char2,&MyTest_u_char[1],sizeof(u_char)*8); int raw_len = sizeof(MyTest_u_char2) + 1; string std_str(MyTest_u_char2, MyTest_u_char2 + raw_len); cout << std_str << endl; // expecting bcdefghi . getting …

Member Avatar for deceptikon
0
145
Member Avatar for DaveTran

I have two settings classes one abstract base class from which the second settings class derives public abstract class BaseFooSettings { public int a; public int b; public float c; } public class DerivedBarSettings : BaseFooSettings { public float d; } I then have two classes one base class and …

0
76
Member Avatar for Dendei

*CardsNumber = myObject.HandleString(Cards);* if i have a method like this all i want is CardsNumber to change not Cards *myObject.HandleString(**Cards**);* change too i need it to be the same? why does it change? if i specify ***CardsNumber =** myObject.HandleString(Cards);* should'nt that only change? i hope you understand what i mean …

Member Avatar for Mike Askew
0
117
Member Avatar for opawix

if(@$_GET['action'] == "Search"){ $result = mysql_query ("SELECT * FROM students where idnum = '$_GET[mysearch]' or fname = '$_GET[mysearch]' or lname = '$_GET[mysearch]' or midin = '$_GET[mysearch]' or gender = '$_GET[mysearch]' or bdate = '$_GET[mysearch]' or course = '$_GET[mysearch]' or year = '$_GET[mysearch]' or address = '$_GET[mysearch]' or cnum ='$_GET[mysearch]'"); $rows …

Member Avatar for opawix
0
161
Member Avatar for makibao

<form id="form1" name="form1" method="post" action=" <?php include("connect.php"); require("search2.php"); $username = $_SESSION['email']; ?> "> <p> <input type="text" name="search" id="search" value=""/> <input type="submit" name="btnSearch" id="btnSearch" value="SEARCH" /> </p></form> search2.php <?php include("connect.php"); $username = $_SESSION['email']; $name=$_POST['search']; $query = mysql_query ("Select * from confirm_members where email = '$name'"); if(mysql_num_rows($query)==0) die ("User not found"); else …

Member Avatar for pritaeas
0
776
Member Avatar for vizz

How to add video or image ads before opening next page? When video is completed or image is seen for 10 seconds after that goto page clicked for. I want to add my own videos and images for advertising before going to next pages selected for displaying ads

Member Avatar for vizz
0
309
Member Avatar for daniesmith

First, if I am not in the correct place, please let me know. I am a novice needing help. I have a single DB (Contractor) with 17 various fields. The purpose is to track the type of license they have, i.e. plumbing, electrical, HVAC, general, etc..... One contractor can have …

Member Avatar for AndreRet
0
210
Member Avatar for sss93

Ive just started going through and developing basic applications using the win32 API, and couple of times I have come across people mentioning that directly using win32 is not wise...I've just started using the library and personally think its nice and easy to use. However Ive been seeing things like …

Member Avatar for deceptikon
0
240

The End.