199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nduarte

I was recently posting information and using $_GET to move between pages. However, becasue of security concerns, I have to change this. How do you pass a SESSION variable to a new page from an array. Here is what I used to have [CODE=PHP] while($data = mysql_fetch_array($result)) { echo '<a …

Member Avatar for Will Gresham
0
2K
Member Avatar for baldwindc

I have been struggling with this for a while. Will someone please help me? The issue is within a while loop. The while loop is reading info from getline, copying values from an input file to (1)double array type char[i][20] , (2)array type double [i]. The input file is as …

Member Avatar for arkoenig
0
1K
Member Avatar for Roriomphe

Hi I'm new in php.I have created a Form to insert data into the database its worrking fine.The other is to show all records from the database in table form with Edit/Delete link in the end of each record its fine and I can delete a record but i have …

Member Avatar for cossay
0
125
Member Avatar for tshudyb

I have created a JFrame contaning a JTabbedPane. What I am trying to accomplish is the changing of tabs within my 'addCustomer()' class via an ActionListener. What I was trying was to call the method 'setTab(int c)' located in my 'BoatLog()' class, from my 'addCustomer()' class to set the index …

Member Avatar for tshudyb
0
1K
Member Avatar for sickpuppy18

hello I'm trying to figure out how to compute the difference between 2 dates excluding weekends.I browsed the web on how to compute the difference between two dates and i somehow was able to understand it but i could not figure out how to compute the difference if I do …

Member Avatar for sickpuppy18
0
2K
Member Avatar for bretthay93

write a program code thathas two functions: first() and second(). Function first() should print the string "in function first()" and then call function second()> functions second() should print the string "in function second()". in the global scope, you should call function first.

Member Avatar for WildBamaBoy
0
149
Member Avatar for nickx522

I have an array of numbers and i have to find lowest and highest and drop them. When i display the numbers on my output screen it has to display HIGH for highest and LOW for lowest instead of the actual numbers. this is an int array so clearly i …

Member Avatar for nickx522
0
107
Member Avatar for jae5086

The purpose is to enter menu items and their calorie content [done, works], sort the array [done, not tested], and use a binary search to recall the array [errors]. The following are the [I]current[/I] errors I get. My big issue, I think, is trying to get the right info into …

Member Avatar for jae5086
0
151
Member Avatar for t_mac219

Hey guys. I'm writing an heap-sort algorithm (code is below) but for someone reason my restore_heap function is incorrect somewhere. I understand how the algorithm is working. do y'all have any suggestions? #include <iostream> #include <stdio.h> #include <vector> #include <cmath> #include <ctime> #include <algorithm> using namespace std; # if 0 …

Member Avatar for t_mac219
0
134
Member Avatar for batuzai04123

Hello! It is my first time to post this thread, So I hope it is in the right place. My problem is that I am creating system tools for windows with a good gui and I don't know how to start with it. One of my difficulties is making code …

Member Avatar for batuzai04123
0
342
Member Avatar for chode1

#include <sstream> #include <iomanip> #include <iostream> #include <fstream> #include <string> using namespace std; struct format { string ID; string item_name; int current_stock; int ordered_stock; float retail_price; float selling_price; } greeting_cards, note_cards, calendars, pens, candles, wind_chimes; int main () { string line; string data[6]; int datacounter = 0; string substr = …

Member Avatar for chode1
0
82
Member Avatar for elrayyes

I have quite an issue in creating a multi level menu in php by extracting the category details for the menu from the product database. My table was created as follows: [code=php] CREATE TABLE products ( id int(11) unsigned NULL auto_increment, pid varchar(100) NULL default'', description text NULL default '', …

Member Avatar for diafol
0
511
Member Avatar for tallyhop

I am working on reading data from a file into a struct array. The first line of the file tells how many users there are, then the following lines are the username, password, and a pincode.So the file is setup as follows: 15 mah123 happy 1234 bah123 moody 4567 ...etc …

Member Avatar for tallyhop
0
466
Member Avatar for gizmo7008

First off, I know I have a few other errors besides the sorting code. I am working on figuring those out as well. I need to sort the names in the file alphabetically. I did put a code which I thought would work, but doesn't. Lines 39 through 50. [CODE] …

Member Avatar for gizmo7008
0
115
Member Avatar for Chocolatemoon

I have made a program that uses struct where a user can input a grade,average, and their name. I am trying to make it so their can be three students each with a grade average and name but I can not figure out how to make a loop so it …

Member Avatar for Chocolatemoon
0
167
Member Avatar for stevetaylor15

Hi i have a string array, such as: [CODE] string[] test = {"one@test.com","@test.com","@contoso.com"} [/CODE] And I want to modify values only where the address has no first portion that is "@domain.com", so the example return would be: [CODE] string[] test2 = {"one@test.com","*@test.com","*@contoso.com"} [/CODE] ANy ideas how to do this please?

Member Avatar for stevetaylor15
0
7K
Member Avatar for yogibear13

Hello there, This is my first time posting on these forums. I was wondering if I could please get some help, there is a minor glitch in my code but I cannot figure it out. Basically, I have to create a class called XYPoint, and according to given criteria, have …

Member Avatar for SgtMe
0
191
Member Avatar for arsnic

Ok, I'm not new to C++ but I am used to running a g++ compiler vs Microsoft's VS C++. I understand what this error should mean. It should mean that I'm missing a ';' on the line before or in the class Polygon. I can't seem to find anything wrong. …

Member Avatar for arsnic
0
587
Member Avatar for gpjacks

Im into the last stages of my C++ class and am having trouble with a project that has been assigned. Here is the problem and thanks in advance for whoever helps out! Declare an object of type bucket 1). Use the SetGallonSize() method to set the bucket size to 5.0 …

Member Avatar for Fbody
0
126
Member Avatar for fenomenal

[ICODE]public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.print("Input an integer: "); int n = in.nextInt(); int d = 1; int temp = n; while (temp > 9) { temp = temp / 10; d++; } System.out.println(n + " can be expressed in " + d + …

Member Avatar for Gerbiler
0
107
Member Avatar for LianaN

Hi! There is JTree component that I want to fill from the database. New nodes can be dynamically added to this tree. I need a procedure that will recursively traverse a tree. My problem is that [B]all nodes are added to the root node[/B], and sub-trees are not created. I've …

Member Avatar for LianaN
0
378
Member Avatar for ram619

Below shown is a simple C Code. The code which is troubling is in commented area (please remove comment symbol to run those lines, comment symbl is just here to highlight them), here there are two printf's in comment area......... the error is that both are getting executed continuously without …

Member Avatar for ram619
0
185
Member Avatar for jvill

I'm trying to write a program that will accept input from the user as sales, then it will total the sales and display both the total and the sales tax (total multiplied by .0825 [CODE] #include <stdio.h> #include <stdlib.h> #define SIZE 9 int main(void) { /*initialize */ int a[SIZE]= {0}; …

Member Avatar for erroldo
0
195
Member Avatar for wu_weidong

Hi all, I am just learning DMA, and am supposed to write 2 functions utilizing the offset technique, such that a 2-D array starts and ends the index of each dimension as the user specifies. matrix(): creates a 2D array of float type numbers, indexing from -n to n for …

Member Avatar for erroldo
0
242
Member Avatar for white feather

[CODE] <Window.Resources> ... ... <DataTemplate DataType="{x:Type my:Section}"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Path=Name}"/> <TextBlock Text=" "/> <TextBlock Text="{Binding Path=Instructor}"/> <TextBlock Text=" "/> <TextBlock Text="{Binding Path=Cours}"/> </StackPanel> </DataTemplate> <DataTemplate DataType="{x:Type my:Instructor}" x:Key="InstructorDataTemp"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Path=FirstName}"/> <TextBlock Text=" "/> <TextBlock Text="{Binding Path=LastName}"/> </StackPanel> </DataTemplate> <DataTemplate DataType="{x:Type my:Cours}" x:Key="CourseDataTemp"> <StackPanel Orientation="Horizontal"> <TextBlock …

Member Avatar for white feather
0
176
Member Avatar for ddellostritto

Hello All - I need some help. I've got a page that lists events (fairs, seminars, etc.) that have been registered by the user, I would like to find a solution that will list these events and next to them include the number of people that have registered to attend …

Member Avatar for ddellostritto
0
62
Member Avatar for Ninjah

Hi there, I am new to C++ programming. What I want to do is, after I browse for a file using openFileDialog and after transforming the path from a System::String into a Char * what I want to do is to use the file`s path to open that file, but …

Member Avatar for Fbody
0
5K
Member Avatar for yongj

I have an application that allows the user to open a file by clicking file -> open. The thing I'm trying to do is read the text file...but I don't know how to assign the user defined text file that the user opened to an object. I guess because I …

0
111
Member Avatar for terabyte

Recently I found this project: [url]http://www.ralpharama.co.uk/item.php?itemid=387&page=TPF[/url] it is a forum script with no mysql I know this can be dangerous but what are the advantages of a forum with no mysql? will it load faster? less robust? Thanks

Member Avatar for RykeTech
0
163
Member Avatar for M3M69

Goodafter noon all, i would like some help on how to modify a python program to do the following: 1. Read both files actors.small.list and actresses.small.list and, using a dictionary, build a database that maps from each actor to a list of his or her films. 2. Two actors are …

Member Avatar for M3M69
0
128
Member Avatar for jvill

Alright im trying to write a fairly simple c program that will accept input from the user for both a number and a power to raise it to then display the result, it works up to the input part but the result is always some crazy number, im looking for …

Member Avatar for jvill
0
145
Member Avatar for alainigban

[CODE]#include <iostream> #include <string> using namespace std; int GCD(int x, int y); int main () { int ans, num, a, b, c, d, e, f, g, y; int h = 0; int w = 0; char ans2; char ans3; cout << "[1] Math algorithms " << endl; cout << "[2] …

Member Avatar for Fbody
0
249
Member Avatar for longlongsilver

i need the code to ask the play for a guess with a call to ask_number() here is my code i have a problem in that it won't run can somebody offer me some help? thanks [CODE]import random secretNum = random.randrange(100)+1 tries = 0 while tries < 5: try: def …

Member Avatar for TrustyTony
0
218
Member Avatar for Katana24

Hello - I have created a program which calculates the value of PI. All the calculations work well but the aim of the program is to get the user to input a number - say 7 and my program will print the value of PI to 7 decimal places. I …

Member Avatar for masijade
0
108
Member Avatar for puvi

Hi, i am new to php and i have lots of doubts since i'm learning it on my own, any help/advice/suggestion is very much appreciated. i have gone through many threads, but they dont answer to what i'm seeking. if i missed any thread which answers to the point, please …

Member Avatar for puvi
0
2K
Member Avatar for ankit.pandey3

[CODE] <?php require_once('upper.php'); if(isset($_POST['submit'])) { //This is code in which we can choose the type and size file uploaded or upload anything. We can declare the path of folder or can do without it. if($_FILES['uploaded_file']['size']< 200000) { /*if($_FILES['uploaded_file']['error']>0) { echo "Error occurs".$_FILES['up_test']['error']."<br/>"; } else{*/ $Title=$_POST['Title']; $City=$_POST['City']; $Content=$_POST['Content']; $Date=$_POST['Date']; echo "Uploaded …

Member Avatar for madCoder
0
155
Member Avatar for manhid

hi to everyone. I am new in this kind of programs. so pls help me. i want a code that i can put into one of the column in datagridview. the scenario... if the message is active in the column of datagridview it says active. if the message is deleted, …

Member Avatar for AndreRet
0
85
Member Avatar for RenanLazarotto

Hey guys! First post here. I'm new to VB.Net programming, so I decided to make a small app that runs another app with arguments. I think the best way to do it was selecting one option from a dropdown menu and using this option as an argument to run the …

Member Avatar for RenanLazarotto
0
773
Member Avatar for jishent

[CODE]import java.io.*;public class Ex9a{ public void rollBack(BufferedReader in) throws IOException{ String line=""; if((line=in.readLine())!=null){ rollBack(in); } if(line!=null&&!"".equals(line)){ System.out.println(line); } } public static void main(String[] args) throws FileNotFoundException{ PrintStream out; Ex9a t=new Ex9a(); out = new PrintStream(new FileOutputStream("outfile.txt")); out.println(ioe); out.close( ); String fileName="infile.txt"; try{ BufferedReader in=new BufferedReader(new FileReader(fileName)); t.rollBack(in); }catch(IOException ioe){ System.out.println(ioe); …

Member Avatar for jon.kiparsky
0
384
Member Avatar for tech9x

[code=c++] #include <iostream> #include <fstream> #include <cstring> #include <string> #include <stdio.h> #include <stdlib.h> #include <limits> using namespace std; void call(int i, int * test) { cin >> test[i]; } int main() { int sizeOfArray; int *temp; int i; cin >> sizeOfArray; int * test; string * command; command = new …

Member Avatar for mike_2000_17
0
130
Member Avatar for afireinside

Hello, I have about 500,000+ txt file for about 7+ gigs of data total. I am using python to put them into a sqlite database. I am creating 2 tables, 1. is the pK and the hyperlink to the file. For the other table I am using an entity extractor …

Member Avatar for woooee
0
1K
Member Avatar for jae5086

Ok, here is the loop from my code, a for loop inside a do...while. The title is a tad misleading, I couldn't edit it though. Probably not the most efficient coding to do what I want but I have no errors and it is so close to working. When I …

Member Avatar for jae5086
0
100
Member Avatar for readbanana

I have a website that allows people to come an upload images. When that person uploads an image it renames it according to who is uploading it. So every time that person logs on and changes his image, it will overwrite the old image. That person will only have one …

Member Avatar for readbanana
0
178
Member Avatar for danholding

im a newbie to python still so bare with me if i have gone down the wrong route or my explanation is confusing!! any ideas on how i can sort my list by the size of the file at the moment it is getting the size of the file and …

Member Avatar for TrustyTony
0
240
Member Avatar for Martje

I am trying to write \r\n as a string but when i do it apears as a newline. Here is the code i am using : [CODE]textBox1->Text="test"+"@\r\n";[/CODE] but it shows as : [QUOTE]test@ [/QUOTE] how would i let it show as [QUOTE]test/r/n[/QUOTE]?

Member Avatar for Martje
0
59
Member Avatar for dbwalters67

Hello, I would like to modify a value that is in a window of another application using Windows API. I am trying to use Spy++ to determine the particular handle/class, but, I haven't any luck. Attached should be some pictures. One is a snapshot of the window I want to …

Member Avatar for AndreRet
0
407
Member Avatar for Shlesh

hi! any body tell me any easy matrix program which is correctly working. please..... i am new in c#.

Member Avatar for ashishkumar008
0
141
Member Avatar for judithSampathwa

hey i have a mdf file which i made an application in visual studio 2008 and i want to migrate all the data and the tables in to the MySQL server, can someone help me in this thanxxxxx appreciate a lot

Member Avatar for judithSampathwa
0
90
Member Avatar for imanewbie015

hi, im having a problem on my project dont know how to normalize the customer information and the flight details

Member Avatar for richieking
0
177
Member Avatar for ARaza110

Vector v = new Vector(); i<10; v.add(new Integer(i));// what does this lien do? I dont understand, what does calling (`new Integer()`) do? Is is calling the constructor and passing the value i in it. Why can't we just pass the value i directly and add it in the vector.

Member Avatar for ARaza110
0
132

The End.