199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for java_programmer
Member Avatar for Jintu

[code] <html> <head> <title>Grade Calculator</title> </head> <?php ?> <body> <?php $grade = $_POST["Quiz1"] * 0.05 + $_POST["Mid-Term"] * 0.30 + $_POST["Quiz2"] * 0.05 + $_POST["AL1"] * 0.05 + $_POST["AL2"] * 0.05 + $_POST["Participation"] * 0.10 + $_POST["Final"] * 0.40 ; ?> <?php echo "Grade Report: <br />"; echo "<br />"; …

Member Avatar for Jintu
0
3K
Member Avatar for ThinkFree

Want to create a small project for online exam using jsp. As of now I am unable to find, how can I > Get random questions from mysql database > Put the timer, so that the exam result is shown automatically after the specified time for exam is over More …

Member Avatar for ThinkFree
0
366
Member Avatar for enireka108

i am doing an assignment in programming javascript...and i'm stuck in a problem. It asks to automize a system over the internet to rent a car. the company has overall 8 cars from which 4-are air conditioned and 4- are not. the program should ask the user to press 1 …

Member Avatar for nccsbim071
0
87
Member Avatar for sandipan.rcciit

hi i am developing a website where i am using a pagination code . i want to display the result of the candidate from table[COLOR="Red"] record_result [/COLOR] on the basis of certain time period given by admin. that is my code... [CODE] <?php include 'mysql-connect.php'; // how many rows to …

Member Avatar for dimplemodi
0
130
Member Avatar for akulkarni

i am not getting the desired output(the contents in a text file which i have saved in the jdk bin here is my code i got. Also what is return in the try catch block i wanna know. it says file not found [code] import java.io.*; class FileDemo { public …

Member Avatar for akulkarni
0
264
Member Avatar for ravi_kos

I want to create a forum for the college. Could anyone tell me the [U]suitable platform or software[/U] that supports forum creation.

Member Avatar for kvprajapati
0
103
Member Avatar for Michael26

I have beginner question, how to "reduce" multiple if statements using whlie or foreach or any other means, i have like 10 if statements. Example [code=c#] Boolean bolres = true; if (client_name == "") //testing for empty string { bolres = false; //if its empty set the bolres variable to …

Member Avatar for sknake
0
112
Member Avatar for anuj_sharma

Hey Guys, I am making a web application using ASP.NET. I have not worked on ASP.NET before. I wanted to ask what all software do i require so that i can start building the application. I will require databases also. Also, is it compulsive to use asp.net with C# or …

Member Avatar for ryuslash
0
78
Member Avatar for fatjoez

I have 3 tables, below are their structures ( a bit of pseudo code ) I'm trying to update one table, with a variable column name, retrieved from another table [B]order[/B] [id,field1,field2] [I]example row ( '1' , '', '' )[/I] [B]produkt[/B] [order_id,produktnr] [I]example row ( '1' , '23' )[/I] [B]fields[/B] …

Member Avatar for rathnakar
0
214
Member Avatar for sumeetdesaeee

I recently appeared for the entrance of cdac. There I found a lot of questions about postfix.(I know the postfix operator commonly used in c.But it wasn't that way.) Sample question:- Wat will the expression ABC AB AC will become after postfix operation?? Please tell me how to deal with …

Member Avatar for Dream2code
0
204
Member Avatar for moshe12007
Member Avatar for jencas
0
270
Member Avatar for pbt

I have to do project on the c++ in dev c++ using gcc compiler for windows version. But, i am unknown to windows programming since, i have done project on 16 bit environment using turbo c. Due to many projects on php and other class assignments and lab reports. Therefore, …

Member Avatar for pspwxp fan
0
112
Member Avatar for Web_Sailor

I was trying to read a file and print it to the JTextArea in other class. My program complies but its not printing the file content in JTextArea. Here is my MouselIstener Code [CODE]class MySaveMouseListener extends MouseAdapter { MyClass1 myobj = new MyClass1(); public javax.swing.JTextField myjtext = myobj.getTextField(); public String …

Member Avatar for JamesCherrill
0
148
Member Avatar for dmotah

hi guyaving the following problem, im having the following problems. Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3264 bytes) in C:\xampp\xampp\htdocs\bestbuy\includes\SimpleImage.php on line 32 Y i am getting this error as the file isnt bigger? when i try to upload file >2mb i get that …

Member Avatar for Menster
0
337
Member Avatar for sana.khatib20

hi i am trying to create a application for doctors n have to enter all the information regarding the patients i am using access as the database n nw the problem is tat the doc is supposed to save the patient details n when he opens it again he shld …

Member Avatar for Piya27
0
97
Member Avatar for tomtetlaw

I am trying to initialize a vector inside a class's constructor, and I want the vector to be of type 'this' [code]std::vector<this>[/code] didnt work, [code] void* type = this; std::vector<type> [/code] that didn't work either, is there any other way to do it?

Member Avatar for jencas
0
231
Member Avatar for vytla

hi friends fetching datetime values from database, when data is null in code side it is displying the some garbage value instead that i want to show 'date is not found' the result is showind in grid view control service written for fetching datetime [code=C#] public List<Topics> GetAllTopicNames(int communityId) { …

Member Avatar for rathnakar
0
173
Member Avatar for cVz

Hi I have a form with 1. dropdown (ddTTDBenefitP1) 2. label (lblBenefitPeriodFactor1) The combobox is populated with listitems [Text & value] I applied attributes to this dropdown. [code=C#] // ddTTDBenefitP1 ddTTDBenefitP1.SelectedIndex = 0; string ddTTDBenefitP1_script = string.Format("javascript:document.getElementById('{0}').innerText = {1}.options[{1}.selectedIndex].value;", lblBenefitPeriodFactor1.ClientID, ddTTDBenefitP1.ClientID); ddTTDBenefitP1.Attributes.Add("onChange", ddTTDBenefitP1_script); [/code] So when a user changes the …

Member Avatar for dnanetwork
0
146
Member Avatar for farahshafilla

my code : ********uploadImage.jsp************* [code=JSP]<form action="UploadImage" method="post" enctype="multipart/form-data" name="productForm" id="productForm"><br><br> <table width="400px" align="center" border=0 style="background-color:ffeeff;"> <tr> <td align="center" colspan=2 style="font-weight:bold;font-size:20pt;"> Image Details</td>[/code] ******UploadImage.java****** [code=Java]import java.io.*; import java.sql.*; import java.util.*; import java.util.regex.*; import org.apache.commons.fileupload.servlet.ServletFileUpload; import org.apache.commons.fileupload.disk.DiskFileItemFactory; import org.apache.commons.fileupload.*; import javax.servlet.*; import javax.servlet.http.*; public class UploadImage extends HttpServlet { @Override public void …

Member Avatar for kvprajapati
0
2K
Member Avatar for alsoumhi

Hi all , I have a servlet program, this program will get a user name and password from a web page. I need to check the user name and passsword entered by user with a data file has all user names and passwords. the thing is I know how to …

Member Avatar for alsoumhi
0
89
Member Avatar for Learner468

I ask because I am currently developing a forum. I just wonder how good my knowledge of web development and PHP in particular is. And also, have you ever tried to sell it? =)

Member Avatar for Thyrosis
0
81
Member Avatar for tj_amarnath

Hi guys, i want to set virtual memory to System Managed size option through wmi in vb.net. can any one tell me the class name to do this in wmi or wmi query to set system manageg size for virtual memroy?

Member Avatar for tj_amarnath
0
143
Member Avatar for prasannakarthik

Hi, I like to add textbox based on the user selection in drop down box,I have used an function to do that but its not workin,also i like to append the selected value(from drop down) to the input from the text box. Cheers! lpk

Member Avatar for CoSIS1
0
3K
Member Avatar for mrnutty

I am using c++/opengl. Can someone help me with a wrapper for a 2d ball representation. I have one but its not complete. I need other stuff like momentum and collision response. Can you help me implement this?

Member Avatar for MattEvans
0
139
Member Avatar for EvilOrange

Does PHP have a built in function that will allow me to find the size of a 2D array without having to first having to loop through the array and hitting a NULL (C style) When i say size i mean the number or rows in a 2D array. many …

Member Avatar for guru12
0
112
Member Avatar for rcbhat

Hi, this is the code that I have to swap two strings- [code=C] void swap(char *,char *); main() { char *x="new"; char *y="word"; char *t; swap(x,y); printf("(%s,%s)",x,y); } void swap(char *x,char *y) { char *t; t=x; x=y; y=x; } [/code] output- (new,word) Why is the swap function not swapping the …

Member Avatar for tuse
0
291
Member Avatar for sunuJoinsIn

How to write a linq query for the following SQL statement select * from XYZTable where ColumnA in ( select ColumnA from XYZTable GROUP BY ColumnA Having Count(*)>1 ) order by ColumnA

Member Avatar for GökhanBarış
0
140
Member Avatar for nustian

dear all plz i want help in this program can anyone do it...... Question: Derive a class from long_int class and add a member function "multiply" in the derived class to multiply two long_ints using the add member function already defined. multiply should work like this 2*3 = 2+2+2 (adding …

Member Avatar for nustian
0
85
Member Avatar for fuggles

I am trying this: [code=c++] #include <windows.h> #include <windowsx.h> #include <d3d9.h> #pragma comment (lib, "d3d9.lib") LPDIRECT3D9 d3d; LPDIRECT3DDEVICE9 d3ddev; void initD3D(HWND hWnd); void render_frame(void); void cleanD3D(void); LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { HWND hWnd; WNDCLASSEX …

Member Avatar for MattEvans
0
119
Member Avatar for ayesha789

Hi, All when I insert the date in MySQL the format is 2009/07/13 and when I use SELELCT query it shows in the same format 2009/07/13. But I need to show in the Format 13-Jul-2009. [CODE]$result = mysql_query("SELECT Date FROM leaseentry WHERE SiteId REGEXP '$a'");[/CODE] Please guide me.

Member Avatar for ayesha789
0
378
Member Avatar for ypdev

Hi All, In the below code I take a string and split it, then assign it to a "Label" object. On my computer it works great but when I "Publish web site" I recieve the .NET error messages "Object reference not set to an instance of an object" and "Index …

Member Avatar for ypdev
0
213
Member Avatar for npd_ddit

main() { float a=0.7; if(a<0.7) cout<<"true" ;else cout<<"false"; } problem---> it prints true ..... when 0.7 is replaced everywhere with 0.8 it displays false again with 0.9 , it displays true.. typically only for 0.7 and 0.9 it gives different answer ,then the conventional logical answer..why so??

Member Avatar for npd_ddit
0
126
Member Avatar for Cloneminds

I need to make a program which uses 3 parallel numeric arrays, references each other, then displays the price and quantity of the supplied product id. It gives me an error message on line 36 about my != searchforID, can anyone enlighten me as to why? [code=C++] //Ch11AppE12.cpp //Displays the …

Member Avatar for Cloneminds
0
247
Member Avatar for nipa.pillai

I want to create a tabbed menu using jsp. Any example would be helpful so that i can start working on it.

Member Avatar for CoSIS1
0
342
Member Avatar for turbomen

Dear Sir, I have got confused to the real / integer. Would you mind helping to express it to me? I have got the answer of the following question: Write a menu system for the currency exchange program. My menu could look like this: Exchange rates How much money would …

Member Avatar for turbomen
0
209
Member Avatar for Ismael_Jay

[code] package awt; import java.awt.*; public class GraphicPanel extends Panel { GraphicPanel() { setBackground(Color.black); } public void paint(Graphics g) { g.setColor(new Color(0,255,0)); g.setFont(new Font("Helvetical", Font.PLAIN,14)); g.drawString("Pusyy Cat Program!", 300, 100); g.drawOval(150,200,50,50); g.drawOval(200,200,30,30); g.setColor(new Color(1.0f,0,0)); g.fillRect(30,100,150,10); } public static void main(String[] args) { Frame f = new Frame("Pussy Cat Window"); GraphicPanel …

Member Avatar for Ismael_Jay
0
88
Member Avatar for nccsbim071
Member Avatar for nccsbim071
0
90
Member Avatar for tig2810

Hi If I have a class that returns a basic set of data such as: varchar Costcode, varchar costdescription, double costamount, double rateofexchange, datetime dateandtime and a few other int fields. All basic stuff. What is the best return type for this class? From reading the web it seems a …

Member Avatar for serkan sendur
0
178
Member Avatar for affee

I need to access 2 variables sent to this script; fieldsearch and fieldvalue, both are sent from a php script (using passthru) but the sytax is incorrect as I get a 500 error : [Mon Jun 8 12:17:51 2009] perlSOAP.cgi: Global symbol "$fieldsearch" requires explicit package name at perlSOAP.cgi line …

Member Avatar for wickedxter
0
132
Member Avatar for NathanOliver

hi narue i would like to ask if this method should be called after ever cin statement? the reason i ask this is that if i write a program and i have 2 [icode] cin >> text; [/icode] statements then at the end before my [icode] return 0; [/icode] i …

Member Avatar for NathanOliver
0
127
Member Avatar for Victor C.

I am my wits end. I have been toying with this code for class and I am stuck. Every time I run the program it shows what I placed within the list box, however that is it. been on this for nearly two days and I need a fresh set …

Member Avatar for kvprajapati
0
107
Member Avatar for coubury

Hi im getting this error, Notice: Undefined index: news_comments in /home/southame/public_html/files/includes/theme_functions_include.php on line 124 was trying to edit a few files on my site here is the code. [code] } else { opentable($locale['global_077']); echo "<div style='text-align:center'><br />\n".$locale['global_078']."<br /><br />\n</div>\n"; closetable(); [B] }[/B] [B]} else {[/B] include INCLUDES."comments_include.php";[/code] Line 124 and …

Member Avatar for coubury
0
1K
Member Avatar for javaAddict

Hi all, I am having problem with openCV: I am using Microsoft Studio 2008 From this lnk: [URL="http://sourceforge.net/projects/opencvlibrary/"]http://sourceforge.net/projects/opencvlibrary/[/URL] I downloaded the [U]OpenCV_1.1pre1a.exe[/U] for windows and installed it. I have been searching ways to include the libraries installed but the instructions don't seem to match my VS version? So after creating …

Member Avatar for h.sileem
0
445
Member Avatar for beset123

[code=cplusplus] #include<iostream> using std::cout; using std::cin; using std::endl; #include<conio.h> class Mouse { public: void move(); void turn(); }; void Mouse::move() { char ch; int length; int width; switch (ch) { case '1': cout<<"To move forward"; for(int y;y==length;y--) break; case'2': for(int x;x<width;x++) break; case'3': for(int x;x>0;x--) break; } } void Mouse::turn() …

Member Avatar for Ancient Dragon
0
173
Member Avatar for kspriya01
Member Avatar for culebrin

Hi, I have a gridview that has a fileupload (fupRespuesta) control in a itemtemplate field, I need to enable automatic upload after file is selected. Then I added a imageButton (imgRespuesta) in the template field and added its event with addhandler... Well my problem is that when I uncomment the …

Member Avatar for culebrin
0
466
Member Avatar for headedtomexico

So I've got a server host that runs my MySQL 5.1 db. I have a stored procedure in it, its similar to [ICODE]CREATE PROCEDURE CountUsersByFirstName(IN SearchName TEXT, OUT Count INT) BEGIN SELECT COUNT(*) INTO Count FROM Users WHERE Name = SearchName; END[/ICODE] the syntax of that may be off as …

Member Avatar for headedtomexico
0
371
Member Avatar for OwenRoberts

Hello again. I am wanting to make a program that handles complex numbers. I have created a class that represents a complex number and called it, ComplexNum. I have tried to create a second class that is the calculator and takes two ComplexNum objects as input and returns a third …

Member Avatar for ShawnCplus
0
110
Member Avatar for ninjaneer

background: I am currently working on a project that will require me to grab some audio from an electronic stethoscope and process it for use within a larger program -- I've been looking into ways to do this and ran into a post on MSDN that was talking about [QUOTE]"taking …

0
109

The End.