199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ankita17gupta

This is my code [CODE] <?php $ebits = ini_get('error_reporting'); error_reporting($ebits ^ E_NOTICE); mysql_connect("localhost","root","") or die(mysql_error()); echo"Connected to MySQL<br /><hr/>"; mysql_select_db("college") or die(mysql_error()); echo "Connected to database<br /><hr />"; $query = "select student.Rollno, departments.Dept_name, student.Name, student.PercentsgeSoFar from student inner join(departments inner join studentdept on studentdept.Dept_id = departments.Dept_id)on student.Rollno = studentdept.Rollno "; …

Member Avatar for ankita17gupta
0
97
Member Avatar for arezz09

can i chnge all button font color on every form that i hve create. .i just want to click 1 button and it show menu choose color..

Member Avatar for codeorder
0
288
Member Avatar for markdean.expres

Guys is it possible to create new tables in my database at runtime. What components will I have to use? And how will the code look like?

Member Avatar for markdean.expres
0
61
Member Avatar for gedas

hey, i receive one value from an accelerometer that shows the roll of the accelerometer the value ranges from-180 to 180 which is 360 degree angel. what i want is to represent this value on the screen by drawing a line that would rotate accordingly to my accelerometer. this video …

Member Avatar for gedas
0
88
Member Avatar for yousafc#

i make a string array and want to show in message box,but it does not working properly [COLOR="Red"]Help Me what is wrong [/COLOR] [CODE] private void btnarray_Click(object sender, EventArgs e) { string[] myname = new string[2]; myname[0] = "Shahid"; myname[1] = "Hussain"; MessageBox.Show(myname.ToString()); }[/CODE] when message box show error show …

Member Avatar for yousafc#
0
92
Member Avatar for virusisfound

I want to search data from combo box here is the code : [CODE]SqlConnection cn = new SqlConnection(s); cn.Open(); SqlCommand cmd = new SqlCommand(); SqlDataReader rdr; string cd =comboBox1.Text.ToString(); string CommandText = "select * from rto where cd =@cd"; cmd = new SqlCommand(CommandText, cn); cmd.Parameters.Add(new SqlParameter("@cd", System.Data.SqlDbType.VarChar, 20, "cd")); cmd.Parameters["@cd"].Value …

Member Avatar for virusisfound
0
100
Member Avatar for Phil++

Hello, I'm really confused.. If I have a string in Java, let's say "Phillip" and I wanted to store this in an array... e.g. [code] name[] = { "P", "H", "I", "L", "L", "I", "P } [/code] would I use a for loop for the string? Helo?

Member Avatar for mKorbel
0
158
Member Avatar for haresh2906

I am getting Error: Jasper Exception for "com.microsoft.jdbc.sqlserver.SQLServerDriver" I have included sqljdbc4.jar in lib folder of tomcat serve bt still getting an error I dont know where to place sqljdbc4.jar...i am getting an error..so plz help me

Member Avatar for haresh2906
0
87
Member Avatar for shantanusinghal

this is the code for my class assignment [code=c] import java.util.Calendar; class ClockThread implements Runnable,KeyListner{ int sec,min,hour; Thread thr; ClockThread(){ Calendar rightNow = Calendar.getInstance(); hour=rightNow.get(Calendar.HOUR); min=rightNow.get(Calendar.MINUTE); sec=rightNow.get(Calendar.SECOND); thr=new Thread(this); thr.start(); } public void run(){ while(true){ try{ Thread.sleep(1000); sec++; } catch(InterruptedException ie){ System.out.println(ie); } if(sec>=59){ sec=0; min++; } if(min>=59){ min=0; hour++; …

Member Avatar for mKorbel
0
189
Member Avatar for stephen_UK

I have a database that has a simple search form where you enter the 'Search Text' and then mouse click the 'Search' button and the results are displayed. Alternatively if the Enter key is pressed twice, first time to enter the text and tab to the 'Search' button, and the …

Member Avatar for stephen_UK
0
104
Member Avatar for canyvr

hi~ i am a beginner of using Javascript.I am doing a project. The project needs: 1.creat a textbox to let the user input their mark. 2.creat a second textbox and a button 3.after enter a mark in the first box and click the button,the second textbox show the grade That …

Member Avatar for canyvr
0
139
Member Avatar for hantuapi

[CODE] import java.io.*; import java.util.Date; public abstract class Customer { //super class customer String customerName; String customerID; String customerAdd; String customerPhone; String dateOfMembership; public Customer(String name, String id, String add, String phone, String date) { //constructor this.customerName = name; this.customerID = id; this.customerAdd = add; this.customerPhone = phone; this.dateOfMembership = …

Member Avatar for stultuske
0
109
Member Avatar for Kath_Fish

Hi, now i do the sorted list for the combination i did. I want to read the data to the sorted list. But my foreach loop always had error. i fix it many times already but still can not solve it successfully. I will attach my coding. Hope someone can …

Member Avatar for Kath_Fish
0
138
Member Avatar for chirag_mittal

Hello friends, I need some help with my c++ hangman code.The code is below. [code] /*Game of Hangman Author - Chirag Mittal */ #include<iostream.h> // For input/output #include<fstream.h> // For file input/output #include<string.h> // For strcpy #include<time.h> // For time #include<stdlib.h> #include<ctype.h> //for toupper & tolower #define MAX_WORD_SIZE 15 // …

Member Avatar for chirag_mittal
0
1K
Member Avatar for chirag_mittal

Hello, I am need of urgent help.I've made a program to generate bills (using goto statements) but my teacher has asked me to remove those and use something else in place of it.The problem is that I have tried using separate functions for that (It's not working properly) and I'm …

Member Avatar for chirag_mittal
0
234
Member Avatar for andrewliu

Hello, I have a problem that I'm trying to figure out. I'm trying to come up with a solution where I have multiple links in a form... Let me give an example : [CODE] <form name='newForm' method='post' action=''> while($row .....) { <input type='hidden' value='".$id."' name='selBillAdd'/> <a href='#' onclick='document.forms["newForm"].submit();' >Use This …

Member Avatar for andrewliu
0
150
Member Avatar for bharath54321
Member Avatar for mKorbel
0
481
Member Avatar for CanaznFTW

Still learning in programming and this problem is course related. Although I am not asking for the answer I would appreciate some help and if anyone can point out what I might be doing wrong that would be awesome. I was able to find other articles addressing the matter although …

Member Avatar for CanaznFTW
0
408
Member Avatar for Thong_Ispector
Member Avatar for BitBlt
0
3K
Member Avatar for user543820

Hello! I want to split a mathematical expression 3 + 4 ( 5 * 8 ) into tokens by using space as a splitting mode. e.g 3 + 4 ( 5 and so on. But when I write string exp; char space[]=" "; result=strtok(exp,space); the compiler gives the error at …

Member Avatar for Ancient Dragon
0
174
Member Avatar for jugnu

Hello, i have a question. I m using a Tabcontrol having 3 TabPages. on the Third TabPage i have some textboxes. Some Textboxes are used for inputs and some are for the calculated values. i.e I Take input for yarn cost per meter and by multiplying its value with total …

Member Avatar for Mitja Bonca
0
154
Member Avatar for FrancisLazo

I am troubled by my very long code for a movie reservation program. A friend of mine told me that I can shorten my very long code using functions. What made my code very long is the switch statement that I used which is composed of 200 cases. Sorry because …

Member Avatar for Red Goose
0
227
Member Avatar for Labdabeta

Hello, I have decided to make a timer program on my computer to limit the amount of time that I game. Anyways, I have it working fine with a small borderless window in the top left of the screen that ticks down and when it gets to 0 it sounds …

Member Avatar for Labdabeta
0
7K
Member Avatar for TySkby

Hi all, I've been struggling with different ways to solve a problem for about a week, and as my attempts have so far been fruitless, I figured I would turn to DaniWeb for some help. I have an unordered list <ul class="navigation"> where each list item contains some links. Example: …

Member Avatar for Taywin
0
156
Member Avatar for Joshua Kidd

I have been working on this for a while not finding anything. I have a form that needs to send a ketstroke, but I used: [CODE] SendKeys.Send("{Ctrl}" + "{SHIFT}" + "{]}") [/CODE] But that Did not work. Y? IDK. can someone please help

Member Avatar for honey61399
0
135
Member Avatar for carlitosway17

I am supposed to create a class patient that will sort the patients according to their condition that is Serious(S), Routine(R), Critical(C), and Expectant (E). Use a heap based Priority Queue. The data type stored should be objects of class Patient. Class Patient will require a compare method that takes …

Member Avatar for carlitosway17
0
125
Member Avatar for yilin2008

Hi, All: I am getting crazy about this error. I tried everything but no help at all. Here is the simple task I want to do: adding a chart. The code is as below: Charts.Add ActiveChart.ChartType = xlXYScatterLines Set myrange = Worksheets("Sheet1").Range("B16:B18") ActiveChart.SetSourceData Source:=myrange, PlotBy:=xlColumns ActiveChart.Location where:=xlLocationAsObject, Name:="Rates" It always …

Member Avatar for lhxndd
0
179
Member Avatar for thisischris

so the user enters a string of coordinates like "(1,2) (3,4) (5,6) etc..." and I'm trying to use istringstream to pull out each number and put it into an integer value. This is what I've got so far: [CODE] string S1, temp; int num1=0, tempX, tempY; cin.ignore(15,'\n'); getline(cin,S1); num1=S1.find("("); S1.erase(S1.begin(),S1.begin()+num1+1); …

Member Avatar for thisischris
0
220
Member Avatar for axeves

The exception is: Unhandled exception at 0x6474f269 in Loliboll.exe: 0xC0000005: Access violation reading location 0x0000000c. I think it's a memory leak. I tried to solve it obviously, but to no prevail. This is the code: [CODE]#include "stdafx.h" using namespace std; int main() { // FreeConsole(); int a; // INTRO = …

Member Avatar for template<>
0
138
Member Avatar for Kelikmalok

I am supposed to make a palindrome program using stacks, but my function keeps returning false. Here's the code: Main: [CODE]int main() { char word[50]; cin >> word; cout << strlen(word); if (checkIfPalindrome(word) == true) { cout << endl << "Is a palindrome."; } else { cout << endl << …

Member Avatar for arkoenig
0
155
Member Avatar for nickliutw

I'm practice to make a program that calculate total value of five products. I want the user can keep input the quantities of one of the five product without return the main menu. So I create a while loop to solve the problems. But the problem I have now, how …

Member Avatar for nickliutw
0
159
Member Avatar for bettybarnes

hi anyone here knows how to validate user inputs.. when the user logs in and his/her password is in Uppercase(saved in database) but forgets to type in uppercase. and it would display warning message saying invalid password... any help would be highly appreciated :)

Member Avatar for bLuEmEzzy
0
114
Member Avatar for carlitosway17

Hi I am supposed to modify class employee to implement interface Payable(another class) and declare method getPaymentAmount to invoke method earnings. Method getPaymentAmount would then be inherited by the subclasses in the Employee hierarchy. When getPaymentAmount is called for a particular subclass object, it polymorphically invokes the appropriate earnings method …

Member Avatar for carlitosway17
0
201
Member Avatar for lttleastig

He guys when i execute this stored procedure by right clicking on it and press execute then entering a value for PW i get a NULL value returned any idea why? [CODE]USE [DR2_Member] GO /****** Object: StoredProcedure [dbo].[up_php] Script Date: 02/26/2011 18:26:34 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON …

Member Avatar for BitBlt
0
178
Member Avatar for thedalek

Everything about this code works fine, except the while loop won't end, even when the strings are perfectly matched. Help, please? [CODE]import java.util.Scanner; public class SecretPhrase { public static void main(String[] args) { System.out.println("Congratulations! You won! Thanks for playing!"); } } [/CODE]

Member Avatar for thedalek
0
159
Member Avatar for programmer4life

I'm currently working on this course assignment and I'm trying to set up code to search within a database file (really its just a text file named a1.db). I hear we can use the popen function to implement shell code within a C program so here's what I tried: ---------------- …

Member Avatar for chrjs
0
717
Member Avatar for semccarthy

Hi, I'm currently designing a software application for teaching, it will have a large backend database, short animation videos(basic 2d of people talkin). I'm just looking for some advice in what is the best language to code this type of project in. I have done several projects in both java …

Member Avatar for semccarthy
0
760
Member Avatar for sirlink99

I am having some trouble with the coding for the api. games4j.com has all of the codes and files, but when I insert the api codes into my doe I get an error. Please help me. I am getting the error with these two lines [CODE]loggedIn = Highscore.isLoggedIn(applet);[/CODE] and [CODE]Highscore.save(applet, …

Member Avatar for sirlink99
0
191
Member Avatar for Fresco Vivir

Greetings everyone i'm working on small php project and you help me a lot so far , what i want to know is how can i know the name of last column in a table i found away to know the last record in a column thats SELECT LAST(column_name) FROM …

Member Avatar for diafol
0
132
Member Avatar for Mr.BunyRabit

Hey there, i would like to find out how many records have been modified by my quarry. I tried a few things, but none would work. this is my code [CODE] SqlConnection conn = new SqlConnection(); conn.ConnectionString = "server=.\\SQL2008;database=Studentsdb1;Persist Security Info=True;user id=sa;password=1945"; SqlCommand cmd = new SqlCommand(); cmd.CommandType = CommandType.Text; …

Member Avatar for Mr.BunyRabit
0
108
Member Avatar for Bennyton

Hey all, new to this site but i'm trying to call multiple values from multiple mysql databnases to show up in one table, but its throwing up an error at line 55, or [CODE]while($row = mysql_fetch_array($result));[/CODE] so i was wondering if I'm causing havoc with this statement here, im new …

Member Avatar for diafol
0
237
Member Avatar for jamesrobb

Hi, When I try and populate a listview with data from an array with 3 entries I find that the data goes into the wrong columns. The array consists of the following. ?ID {Length=3} (0): "T123456789" (1): "001" (2): "Smith" My list view has columns : ID, Location, Name. My …

Member Avatar for jamesrobb
0
149
Member Avatar for gedas

hey, i have a for loop that is infinite, it runs till i terminate the program. inside of the loop there is a value(lets call it X) that keeps on changing all the time till i terminate the program. when the program is executed i want to store the first …

Member Avatar for gedas
0
100
Member Avatar for Usmaan

Having a lot of trouble in my quest to complete my Hangman game. I've made an alteration to the program though. Rather than having a text box and the user typing a letter in, I've decided to add command buttons from A-Z. I can't seem to pass the letter to …

Member Avatar for ddanbe
0
704
Member Avatar for rogba

Does anybody know if C++ programming:program Design including Data Structures, by D.S. MALIK has an Instructor's edition??

Member Avatar for JamieLynnSEO
0
75
Member Avatar for PerplexedWon

Problem I am experiencing: When I compile my code, I get these two error codes: 1) In file included from C:\Users\PaulWilliams\Desktop\CSci Work\C++ Programming\TestScores.cpp 2) unterminated #ifndef I am not understanding what I did wrong, I have done all of my header files the same way and never had this problem. …

Member Avatar for PerplexedWon
0
203
Member Avatar for geoamins2

I have a database designed and implemented using ms sql server 2005. initially, the user has entered the pictures with a very big size because there was not restriction. now when the user is opening the crystal report so it takes alot of time and some time memory full problem …

Member Avatar for CodeWord
0
4K
Member Avatar for kmose

[CODE] namespace CallbackTest { public class Test: System.Web.UI.WebControls.WebParts.WebPart, ICallbackEventHandler { private string callbackData; private Label callbackLabel; protected override void Render(System.Web.UI.HtmlTextWriter writer) { this.callbackLabel.RenderControl(writer); } protected override void OnLoad(EventArgs e) { base.OnLoad(e); callbackLabel = new Label(); callbackLabel.Text = "no callback occurred yet"; callbackLabel.Attributes.Add("onmouseover", "alert('mouseover'); serverRequest('" + callbackLabel.ClientID + "', '');"); callbackLabel.ID …

Member Avatar for kmose
0
132
Member Avatar for fuller

Hey guys , I need some help in writing a C code for a calendar problem. I need to write a code to find the day of the week if the month and year are entered by the user. Not able to get the logic for it. I need this …

Member Avatar for jnawrocki
0
109
Member Avatar for v5rox

i m trying to update a table in my sql database using stored procedure. i have executed my stored procedure and dat works fine, no problem in that. i knwo because the values are updated when i execute it. however when i try to do so through asp.net code that …

0
108

The End.