199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for newcoder310

I've recently posted a thread called file modification and the problem has been solved........now could some1 kindly explain why is it necessary to delete and rename the file to insert or delete a character into the file at a particular location Thanks

Member Avatar for griswolf
0
79
Member Avatar for Sarao

[code] <style> font-size: 14px; font-weight: normal; font-family: Tahoma, Geneva, sans-serif; } .bar { font:"Free 3 of 9 Extended"; font-size:14px; } .K2 { font-size: 14px; font-family: tahoma, Geneva, sans-serif; } .ff { font-family: "Courier New", Courier, monospace; } --> </style> <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' …

Member Avatar for SEOCoder
0
151
Member Avatar for linux.buzz

Hi all, I got stuck into a problem. I have a variable in which the data is stored as below: variable_test=0m0.001s 0m0.001s 0m0.001s 0m0.001s 0m0.001s 0m0.001s .....an so on. There are lots of values in format like "3m1.057s" are stored in variable_test separated with an space between two such values. …

Member Avatar for cfajohnson
0
146
Member Avatar for pankaj.jainin

i work with fileupload control in asp.net.i require that when a page is load ,my file upload control fills same path which store in my database. if any substitue of this control which work like that.

Member Avatar for umair.sabri
0
123
Member Avatar for LevyDee

Is there any difference in c++ when freeing memory between the free method, or the delete keyword? Thanks.

Member Avatar for nndung179
0
231
Member Avatar for adarshcu

Hi everyone, I have an InvalidCastException Error in my program. The program is that i try to insert an employee record into a database table after getting the details from a form. I've used Money data type is SQL Server for salary and SqlTypes.SqlDecimal data type in employee template class. …

Member Avatar for Pgmer
0
177
Member Avatar for guggilosmodz

Can you please tell me where i am going wrong i am trying to insert just the username and stuff into my database and its not showing up please help me ASAP! it is connecting to the server okay its just that for some reason its not showing up in …

Member Avatar for lyrico
0
91
Member Avatar for branding4you

me again ... been google'ing the last 3 days to slide images accross a php page, does anyone know of any to pull these image names from a folder in the directory of a website? Thanx mike

Member Avatar for branding4you
0
106
Member Avatar for oree

I am trying to have a search bar where user will input a string ($var) which after i will search that sting in the field named: "itemname". i will search all the different tables in the database and create a new temporary database named: searchtable. seachtable should contain all the …

Member Avatar for oree
0
115
Member Avatar for MasterGberry

I am making a simple card game, trying to shuffle a deck of cards that i made with a map. [CODE]std::map<int, std::string> theDeck;[/CODE] How could I go about shuffling the items in the deck? I am having issues figuring out the algorithm. This is what I tried, but didn't work. …

Member Avatar for MasterGberry
0
1K
Member Avatar for judithSampathwa

hi there, I asked this question before also. i have two date times in a table in the MS SQL server database, when i write the query as below. the Sstart Date and the Due Date is displayed as 12/11/2010 12:00:00 AM it shows correct in the MS SQL business …

Member Avatar for fawadkhalil
0
252
Member Avatar for pandaEater

Is there a way to disallow access to a Parent function in the Child class? For example, the Parent class has a function, myFunc(). In main() after I instantiate a new Child object I don't want myFunc() to even be an option. So child.myFunc() would cause a compilation error.

Member Avatar for Momerath
0
144
Member Avatar for illuminatus89

Is there any way by which I can initialize all the elements of an array(already declared) in one statement?? That is, without using loops

Member Avatar for benwilliams
0
248
Member Avatar for Buppy

Hi, I have a HTML document with form. The form has several radio buttons. I want different elements of HTML (including <input> elements) to appear when each radio button is selected. Also, it is intended to show only those elements for a specific radio button. For example, if i select …

Member Avatar for Troy III
0
723
Member Avatar for beejay321

so for my computing project we have just started to work with using input and output of text files, the tutorial my teacher gave said to include these libraries, which i did [CODE]#inclue <fstream> #include <iomanip>[/CODE] and explains how to use [CODE] ifstream fin; //fin is my file input variable …

Member Avatar for beejay321
0
336
Member Avatar for kra9853

I need help with using the rand() function and an array to create 19 random numbers when the user types 'P' instead when I type 'P' I get 19 rows of 19 numbers [CODE] int main () { char command; double setNum [19]; int create; create = 0; cout << …

Member Avatar for Ancient Dragon
0
145
Member Avatar for ElegantElephant

For example, I have a string containing "184553", how do I go about extracting the 3rd character "4" from string string and assigning it to another variable? I have tried the following code but it does not work, the system crashes: [CODE] char string[6] = "184553"; printf("%s",string[2]); // Expecting it …

Member Avatar for Ancient Dragon
0
8K
Member Avatar for vajrajames

Hi, I need a script that will generate a set of random strings in sequence, with the ability to predetermine the length, quantity, and alphabet of individual string, and to use the outputs of earlier strings in the sequence to define the parameters of later strings. For examples, I might …

Member Avatar for cfajohnson
0
123
Member Avatar for Latvija13

How would you go about skipping non-numeric characters in a string and only adding the sum of the numbers a multi line string?

Member Avatar for Latvija13
0
113
Member Avatar for soomro_moon

why this code is not working? can any one help me? [CODE] <select id="cboOptions" name="cbo0ptions" onChange="displayDiv(this.value)"> <option selected="selected" value="">choose</option> <option value="1">Order 1</option> <option value="2">Order 2</option> <option value="3">Order 3</option> <option value="4">Order 4</option> </select> <div id="1" style="display:none;"> <fieldset> <legend>order line</legend> <table> <tr><td>Item ID</td><td><input type="text" readonly="" value="<? echo $c = uniqid(); ?>" /></td></tr> …

Member Avatar for jkon
0
118
Member Avatar for Macko888

[CODE]<?php function graphImage($numachieved, $weektarg) { //working out how many days are in the month $day = (date('t')/4.33333); //week1 $day1 = $day; //week2 $day2 = ($day*2); //week3 $day3 = ($day*3); //week4 $day4 = ($day*4); //tagert for the week $perWeek = $numachived; //height of graph $numtarg = ($weektarg*1); $numtarg2 = ($weektarg*2); $numtarg3 …

Member Avatar for jkon
0
327
Member Avatar for JohnPhilipps

Good evening, I have a simple dos command, I use to stop a java service which I am trying to execute within VB.NET, however it doesn't seem to stop my service. My DOS command which works is as follows: NET STOP "Java Quick Starter" My VB.NET attempt is as follows …

Member Avatar for JohnPhilipps
0
341
Member Avatar for cantalope

I am very new to c++ and we cannot use any built in libraries yet for the following program. The program runs fine until I add a question at the end if the user wants to quit or not. If not the program will run again to compute the power …

Member Avatar for cantalope
0
4K
Member Avatar for vanzhyme

ahmm, please help me. I want to update the items in listview when my form loads up. this is my code for the listview. It actually displays the data on the database but when i add another data it wont appear on the listview. please help me guys. I'll appreciate …

Member Avatar for vanzhyme
0
157
Member Avatar for acash229

Hey guys I am still learning how to use simple java. I want to try to do this program which i found in some book, but i cant seem to get how to started. They say its a beginners program, but i found it quite difficult on how to start. …

Member Avatar for acash229
0
159
Member Avatar for ben25x

I am quite stumped on something in C. I found this code on the Internet, and it only gives me one error; however, I cannot seem to fix it. The variable in the function the compiler's complaining about is: [CODE]char ConvertTime[8][/CODE] and the function itself is a windows one: [CODE]GetWindowTextW(GETITEM(IDC_CONVERT_TIME), …

Member Avatar for ben25x
0
347
Member Avatar for ShadowScripter

hi, I'm a bit confused as to how my graphics engine actually loads a model file. Currently I'm using .x files, because that's what I was taught. But I haven't asked the most important question, how do my graphics engine actually load a model file? Using DirectX and the correspondent …

Member Avatar for PsychoLogic
0
130
Member Avatar for VernonDozier

OK, here's what I want to do (I realize the code below doesn't work, but it's what I would LIKE to do). I've converting things from C++ [code=JAVA] public void ChangePrimitiveArray(byte bytes[]) { bytes[0] = 1; } public void foo() { byte bytes[] = new byte[2]; bytes[0] = 4; ChangePrimitiveArray(bytes); …

Member Avatar for VernonDozier
0
216
Member Avatar for GrexP

Normally, when populating controls with data from a database I create a connection and then pass a SQL statement to create a DataReader. I then loop through the DataReader and populate the controls. Because I am creating the SQL statement on the fly I can query the database joining on …

0
113
Member Avatar for skald89

I have a form on page 2 and I want the information submitted on the form to be sent to page 3. How do i do that?

Member Avatar for skald89
0
2K
Member Avatar for biljith

how to write a program that can accept a date from user and print the day on which it occurs

Member Avatar for Ancient Dragon
0
107
Member Avatar for ragebunny

Hi, I have a program that loads in a heightmap data from a text file. The problem i have is i don't really have a clue what do do with it. I have to call glTexImage2D to set up the text, how would i use that? Oh and the data …

Member Avatar for PsychoLogic
0
113
Member Avatar for f_atencia

I have a client-side form and it submits to itself using the 'GET' method. When the form is submitted, I can get the results, but I can't seem to hide the form itself. Is there a way of doing this using Javascript in an ASP file? The document.getElementById("myDiv").style.display="none" doesn't seem …

0
70
Member Avatar for daviddoria

[QUOTE]Ov course you don't, but many people here feel that vectors are the only solution to using arrays. They love suggesting things obviously beyond your level.[/QUOTE] This is not beyond his level. There is no reason to learn arrays before vectors. Novices should learn vectors because they convey the same …

Member Avatar for vijayan121
0
83
Member Avatar for daniel1977

I need some help in tracking down a problem I am having. Attached is a zip file that has a bulk of the files used in this assignment. I am recieving a compiler error that I do not know where to look for the solution. The IDE shows the error: …

Member Avatar for daniel1977
0
163
Member Avatar for pilipino93

Hi, I am trying to develop a program to read through this xml file 'config.xml' and I have specific portions of the file that the user can edit and save. I have been searching everywhere for some help on reading to and from and writing to and saving childnodes from …

Member Avatar for pilipino93
0
115
Member Avatar for CSharpUser

I'm using the method below as a button-click event on an ASP.NET 4.0 page. The first alert box (ClientScript.RegisterStartupScript(...)) works fine, the second I haven't tested yet; but the third doesn't produce an alert - and it doesn't produce an error either. Can anyone suggest what I'm missing here? I'm …

Member Avatar for CSharpUser
0
426
Member Avatar for Sarao

Hello, I am sorry to bother you all again. I am creating a script, which is used for storing the parcels sent. Now, I have done everything. Just need to add one feature. I have a MYSQL field named TRACKING which will hold tracking information or reciept numbers of the …

Member Avatar for kuink
0
192
Member Avatar for eikal

Hi im working on this program im getting a runtime error that says this ArrayIndexoutofbounds exception 0. heres my code [code] import java.util.Scanner; public class MillerCalculateTime { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Enter miles: "); double miles = sc.nextDouble(); System.out.print("Enter Miles per hour: "); …

Member Avatar for naief
0
180
Member Avatar for z00t

i have to construct a rectangle, print the location, then translate/print it 3 more times such that if they were drawn, they would form one large rectangle. [][] <- like so [][] here's the code & the error. C:\java>javac FourRectanglePrinter.java FourRectanglePrinter.java:11: [COLOR="Green"]incompatible types[/COLOR] found : void required: java.awt.Rectangle Rectangle box1 …

Member Avatar for Akill10
0
1K
Member Avatar for Sean87

Hi all, I recently started with visual c# .NET and I really liked it. I hope I can learn a lot from you. I am making a simple program, but I have problem with dynamicly changing text for a lable. Imagine that there is a lable and we should have …

Member Avatar for Sean87
0
107
Member Avatar for cjay175

Using Wordpress with update_user_meta and php array. Had a quick question regarding dynamic input fields and posting it to php. [CODE] <input type="text" name="test[]" /> [/CODE] These fields get added dynamically as well using jquery which works fine, the issue im having is posting the array individually. To save this …

Member Avatar for cjay175
0
104
Member Avatar for rperez100508

This JavaScript is not working in Mozilla Firefox and Google Chrome, can anyone please help me with this.. Thank you very much.. Please post your revised JavaScript if I am wrong.. please help.. thank you.. [CODE]<style type="text/css"> a {text-decoration: none;} .title {position: absolute; width: 150px; height: 20px; left: 10=px; z-index: …

Member Avatar for rperez100508
0
312
Member Avatar for MaddTechwf

Is there a way that I can use like F1, F2, F3, etc to open a specific form? I would like to have an options form but not have it to where anyone can access it unless they know the Function key to use.

Member Avatar for Unhnd_Exception
0
117
Member Avatar for MaddTechwf

I'm wanting to create a small application that will allow me to schedule a machine to shutdown at a specific time. Any suggestions on how I can make this .exe run at a specific time besides using the Task Scheduler?

Member Avatar for MaddTechwf
0
84
Member Avatar for Smalls

What my question is, Is it plausible to have a listview item search a specific folder that has nothing but text files in it, pull the first 2 lines from the text file(s) and display them in columns 1 and 2 if so, how would one go about doing it, …

Member Avatar for Smalls
0
399
Member Avatar for zizuno

I may have phrased the title wrong but it is what I mean. I am not looking for multiple windows at once, I am writing a script that opens a tkinter window asking for information etc etc etc and it all saves into a database after the last window. Right …

Member Avatar for TrustyTony
0
672
Member Avatar for SEOCoder

Hi all, This is my first post on this forum, I hope someone here can help because the last few forums were at a loss... Any ways, I have this MYSQL command: [CODE]SELECT DISTINCT schedule_date, schedule_time, schedule_team_1, schedule_team_2, event_name, type_name, gen_duration, COUNT(DISTINCT((SELECT id FROM link_schedules WHERE schedule_id = schedules.schedule_id UNION …

Member Avatar for SEOCoder
0
233
Member Avatar for Imratzio

Hi all, I have an error that once user has submitted information the header could not enter information. [CODE]Warning: Cannot modify header information - headers already sent by (output started at F:\root\xampplite\htdocs\fyp\top.php:62) in F:\root\xampplite\htdocs\fyp\login.php on line 219[/CODE] Heres my code [CODE]session_start(); include_once'top.php'; include_once "config.php"; //include_once "html.php"; switch (@$_POST['do']) { case …

Member Avatar for Imratzio
0
120
Member Avatar for rem45acp

In c++, I would like to get the number of seconds from between the current time and January 1, 2000. The problem that I'm having is assigning one time struct with the current time, and another with other one. When I use difftime(), it just returns 0. There is something …

Member Avatar for Ancient Dragon
0
332

The End.