199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vinumat

when I try running this asp using iexplorer, it does not return anything other than 'Country..... City..... Currency..... Population' as heading. How come it's not connecting and getting the data from the database?? Please help! Thanks [code=vbscript] <% @language = VBScript %> <head> <TITLE>ASP - Country Query</TITLE> <body> <% Dim …

Member Avatar for WebspoonUK
0
153
Member Avatar for chathuD

guys i am new to java scripts and these days iam following some tutorials on w3school and lynda. i have a big problum on classes on Jscripts. this is my code [CODE]<html> <body> <script type="text/javascript"> //Write a "Good morning" greeting if //the time is less than 10 var d=new Date(); …

Member Avatar for chathuD
0
153
Member Avatar for nelliott10

I have produced some code which adds a table row on a button click, which can be seen below. However, I would like the new row to be added at the bottom of the table instead of the top. How can this be achieved? [CODE]function addRow() { //add a row …

Member Avatar for nelliott10
0
4K
Member Avatar for JonEvans

I'm trying to figure out how to use the max_element algorithm on a vector of structs, rather than POD's like int etc. This is my struct: [code=cpp]struct NameComponents { std::string sValue; std::string sDescriptor; int nOrder; int nStatus; // Construtor. NameComponents( std::string inValue, std::string inDescriptor, int inOrder ) : sValue( inValue …

Member Avatar for Banfa
0
142
Member Avatar for kxh29

Hello All: I want to create an array of structures like so: [CODE] #define MAX 10 struct hash_tbl { int key; int data; }; struct hash_tbl hash_array[MAX], *ptr; [/CODE] Now, I am having some issues in attempting to "loop" through my array of structures and just generate the some data …

Member Avatar for kxh29
0
250
Member Avatar for toko

Okay, i have an 8X8 grid, i want to use control arrays to create labels instead of creating each manually so that it is less repetitive code and easier to control when i try to switch the colors of each label on the gird. [CODE=c#]namespace app1 { partial class Form1 …

Member Avatar for toko
0
102
Member Avatar for lrolsto1

Alright, this is for a project designed to make us use inheritance. This is Creature, which is a subclass of Thing. Creature is supposed to be able to eat, move and tell what it ate. Here are my issues: 1. How do I use a constructor from Thing in Creature? …

Member Avatar for LReynolds
0
74
Member Avatar for aianne

Hi! I need help to my c++ program. I created a program that is much like the "Who wants to be a Millionaire" television show. It has questions and the right answers and three lifelines. How can I possibly do eliminate a lifeline after being used.? this is the program …

Member Avatar for WaltP
0
223
Member Avatar for vbcielle

how will i round off the return value to decimal place with tis function? [code] unsigned int CalculatePercentage(int TotalComponent, int PartialComponent){ return int((PartialComponent/TotalComponent)100); }[/code]

Member Avatar for WaltP
0
212
Member Avatar for jxmst32

I am currently writing a program in Netbeans which will perform binary to decimal, decimal to binary, hexadecimal to decimal, decimal to hexadecimal conversions, 1's compliment, 2's compliment, and show the list of boolean algebra rules. I have created the GUI however, I cannot figure out how to make the …

Member Avatar for phoenix911
0
366
Member Avatar for rumi

hi.im facing an error that says 'syntax error in FROM clause'.i dont know where i went wrong because it used to run smoothly.from my research about this error,it seems each solution is unique,it doesnt relate to what im doing.can anyone please help?here are my codes: [code] Private Sub Cmd_Login_Click() Adodc1.RecordSource …

Member Avatar for Logica
0
482
Member Avatar for sanju_sql

I have a select statement as below. select * from candidate where resume REGEXP 'JAVA'; i am developing an application for searching resumes. I have a tex box where I can give keywords like Java in about example. The applciation is in MSQL as a back end. I am taking …

Member Avatar for sanju_sql
0
82
Member Avatar for endframe

Hello everybody :icon_neutral: I'm having an error in finding the biggest/smallest numbers in an array; the debug result gives me wrong numbers. Here's the code that I have been working on: [CODE]#include<iostream.h> int linearsearch(char b[],char searchkey, int size); void main(void) { const int arraysize=7; char a[arraysize],key; int result,i; int s; …

Member Avatar for WaltP
0
110
Member Avatar for jackieoh
Member Avatar for DrewS

Hello I need pthread.h library in my program in C and i am using Visual Studio. how can i use threading in C? i visited this [URL="http://sources.redhat.com/pthreads-win32/"]site.[/URL] but i dont know what to download and where to put it. I mean what am i supposed to download- header file or …

Member Avatar for jephthah
0
131
Member Avatar for wondering_ed

[CODE]import javax.swing.*; import java.sql.*; public class BankAccountDatabase{ public static void main(String[]args){ Connection conn=null; Statement stmt=null; ResultSet rs=null,rs1=null; String url="jdbc:mysql://localhost/bankaccount"; String username="roo"; String password=""; String query="",query1=""; String accname,accnum,accpin; int PIN,key,menu,AccountNumber; String a,b,c,d,f,g,h,i,j,x,y,z; double dep,withdraw; double balance=0.0; try{ Class.forName("com.mysql.jdbc.Driver"); }catch(java.lang.ClassNotFoundException e){ System.err.print("ClassNotFoundException: "); System.err.println(e.getMessage()); } do{ a=JOptionPane.showInputDialog("MENU\n\n\n1 - Create Account\n2 - Delete …

Member Avatar for BestJewSinceJC
0
159
Member Avatar for keithodulaigh

Hi, I was looking at this tutorial: [URL="http://linuxgazette.net/77/krishnakumar.html"]http://linuxgazette.net/77/krishnakumar.html[/URL] There's an instruction there that says "seg es", my question is whats this instruction in AT&T style? I'm trying to rewrite the code in AT&T syntax and use it with gcc/ld but it gives me an error: "kernel.s:6: Error: no such instruction: …

Member Avatar for keithodulaigh
0
144
Member Avatar for sniigg

Hi, In my database table I have a column which has all the properties of a class. And While reading from the table I need to get the values of the properties.I have to get the value on a label.But obviously [code] lblTest.Text=reader["Description"].ToString(); [/code] wont work. As I need to …

Member Avatar for sniigg
0
87
Member Avatar for bubbafunk1

Hi, I have a form with a field for an email address to be filled in and sent using a php script. i need help with the following 1: i want the an email to be sent to the email address that the user has just typed into the form …

Member Avatar for almostbob
0
119
Member Avatar for vij123

my question is related to JSP and HTML. i have a jsp page which have three combo box and a button. one combo box for a class. two combo box for from_year, to_year. i want to reterive data on this same JSP page from database based on combo box value. …

Member Avatar for peter_budo
0
596
Member Avatar for xwishmasterx

Hello I am not really good at php or programming and I need a llittle help: I need a value to be "converted" to an image; so if the value is "eg.3" it should show eg. "img3.gif" (the images are stored in a folder) The value is displayed with this …

Member Avatar for megan ellison
0
130
Member Avatar for Miss Confused

Hi! I'm trying to delete an entry from my database, i have the code written to display the details in a listbox but now i need to write the code do the user can select the item they want to delete and then click the delete button to delete it!????? …

Member Avatar for Oxiegen
0
113
Member Avatar for firebugg

Hi, I am working on an assignment that does the following... When the program starts, it should look to see whether a file is present that contains a serialized array of vehicles. If so, it redisplays them. Otherwise, it generates random vehicles, writes them to a file, and displays them. …

Member Avatar for javaAddict
0
142
Member Avatar for dwapayan

Hello Everyone, I am new to ASP.net. I recently developed a application using VS2005 that uses a SQL database. This application contains a Login page Main.aspx. This page redirects to second page after authentication (avlActions.aspx) using FormsAuthentication.ReDirect. This works when i run application from VS2005 and locally on IIS after …

Member Avatar for dwapayan
0
563
Member Avatar for danturn

Hi Guys, Is it possible to add a string to a list using a static method or am i really misunderstanding this? This is what i'm trying... [CODE]using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace LDAPNOCISCO { class STOREUDPs { private …

Member Avatar for danturn
0
885
Member Avatar for donelliewhyte

I am scanning the contents of file and then performing some simple operations. First i want to scan the file for a particular doctor name that works. I have two records in the file but its not incrementing the counter to check patients which belong to that doctor and add …

Member Avatar for Ancient Dragon
0
132
Member Avatar for cp123

Hello all, I just bought a book on Python, and started to go through it (bought it for my children and myself). I'm having a problem importing 'easygui'. I am new to programming. I am trying to program on my Mac. I downloaded easygui to the following:/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ When I go …

Member Avatar for sofiH
0
3K
Member Avatar for phoenix_dwarf

Im doing some stuff in the code behind page and then putting that data into javascript respectively. This javascript is then connected to the asp.net page with a literal control. I.E. [CODE] StringBuilder sb = new StringBuilder(); sb.Append("<script type='text/javascript' src='http://www.google.com/jsapi?key=ABCDEFG'></script><script type='text/javascript'>google.load('maps', '2'); ...SOME MORE CODE HERE.... }"); sb.Append("function createMarker(point, htmlSTR) …

Member Avatar for phoenix_dwarf
0
596
Member Avatar for JuliaNell

Hi Guys Im developing an application and im inserting users to my database but i want to make sure that a username can only be one, no usernames are the same.. How wud i do that in PHP..

Member Avatar for liamfriel
0
71
Member Avatar for ageryckeh

please help out in figuring the code that opens a session for registered users after reading the input choices provided by the user and redirecting to a mysql query page that displays a list of data in check button options....my project intents to allow a user to select from a …

Member Avatar for manishmannan
0
76
Member Avatar for sting23

hi im still a beginner in PHP and this is the code i have so far and it only calculates value of two numbers put in manually. I want to generate two numbers and add the values. [code] <form name="form1" method="post" action=""> value1: <label> <input type="text" name="value1"> </label> <p>&nbsp;</p> <p> …

Member Avatar for manishmannan
0
1K
Member Avatar for mrblippy

Hi eveyone :) I am having trouble understanding some big o notation that i have been given in homework. I have tried reading my text books but nothing makes sense to me well. Below is one of the problems i have been given [CODE=C] #include <stdio.h> int main() { int …

Member Avatar for Narue
0
136
Member Avatar for hkBattousai

[B]MyClass.h[/B][CODE]class MyClass { //... public: template <class T> static void Swap(T& Var1, T& Var2); //... }[/CODE] [B]MyClass.cpp[/B][CODE]template <class T> void MyClass::Swap( T& Var1, T& Var2 ) { Var1 ^= Var2; Var2 ^= Var1; Var1 ^= Var2; }[/CODE] In another file[CODE]#include "MyClass.h" //... int n = 40; int m = 60; …

Member Avatar for hkBattousai
0
2K
Member Avatar for manishmannan

Hello friends this is manish once again i am not new to php but i have got some problem in my code that is working on our previous server but now it is not working what should be the reason i have the following which work fine in our previous …

Member Avatar for manishmannan
0
123
Member Avatar for kd1987

Hello I must implement overloaded + (binary) operator. I have to use method like that: const Text & operator+(const Text &) const . Anyone knows how it may be done ? I know that I can't make new object in function and return it. Ps: Class Text have pointer to …

Member Avatar for Fbody
0
96
Member Avatar for neosonic

Hi All, I have got the multiline textbox in the picturebox. I want to save the whole picture into a bmp file (including the multiline textbox). Is there any easy way to do it? what I have done at the moment is: pic.currentx = textbox.left pic.currenty = textbox.top pic.print textbox.text …

Member Avatar for vb5prgrmr
0
657
Member Avatar for gerard4143

Hi, I have a simple question about the Linux Shebang '#!'. Well more of a clarification of how Linux handles #!. My understanding.... When the operating system 'Linux' encounters an executable file with the first characters #! it will extract the absolute path for the executable from this line..i.e. #! …

Member Avatar for gerard4143
0
330
Member Avatar for jakewebb

Hi I am attempting to write a playlist for my media player which is already built. I have found a way to build a playlist for it but it would be helpful if I could save the contents of TextBox1 to a text file without using the save as. I …

Member Avatar for jakewebb
0
1K
Member Avatar for tajendra

Code portability basically refers to making source code able to compile on different platform without making any changes in source code. While coding its very important to keep portability in mind.The best way to introduce code portability is while coding.Keeping certain things into account we can achieve code portability with …

Member Avatar for tajendra
0
472
Member Avatar for pepsy11

Hello.. I am making a program where i use an sql database to storage user information, but i cant figure out how to add a new record that actually stays in the database, i have found some different codes but they only add the record "locally", so when i close …

Member Avatar for amitshrivas
0
562
Member Avatar for w0rk4holic

how do i generate all the topological ordering of (directed acyclic graph), i have written a program that can find 1 topological ordering, the problem is once i am finished i am left with a empty linked list as my algorithm involves deleting the traversed nodes which is crucial for …

Member Avatar for ericklesterbran
0
820
Member Avatar for mmgoicochea

Hello everyone so this is the piece of code i'm wokingon.. the program ask to input an integer. If the integer is even the program will divide it by two and if the integer is odd the number will be multiplied by three and then after it is multiplied it …

Member Avatar for mmgoicochea
0
1K
Member Avatar for Frii

hi guys, newbie here, I want to make a login page based on VB.NET language and I have a problem basically, I have a SQL database table named XYZ and the columns are id, username, password, and type type is to determine wether the user logging in is a user …

Member Avatar for phoenix911
0
135
Member Avatar for Tiny_trixer

Hi everybody! I'm currently working on an assignment for school. I'm creating a linked list (a line at the liqure store to be exact) and I'm a little stuck. Part of the code: [CODE] public void ekspederKunde() { System.out.println("Velkommen til polet! Vennligst vis gyldig legitimasjon.\n"); if (fremst == null) { …

Member Avatar for Tiny_trixer
0
121
Member Avatar for danturn

Hey guys, I'm a bit stuck with this issue... I have a list of comma separated strings. some of them have a duplicate field in them. what I want at the end of this process is a List of strings (comma seperated again) with any of the duplicates being marked …

Member Avatar for danturn
0
167
Member Avatar for Santho786

I like to known that how to assign the value for the check boxes.. Since one would check either one or two check values.. I need to store the all the values in SQL Database either has 0 or 1.... i.e.., if it is checked as 1 or if it …

Member Avatar for selvasoft
0
98
Member Avatar for nidhi.knit09

Hi, pls let me know how you created a setup project for 2007 addin which files needs to be added to my add-in project. In 2003 add-in project by default you get a setup project but in 2007 you did not get...... Please help me on this......

Member Avatar for emilio
0
308
Member Avatar for Ghada Ibrahim

Hello .. Hopefully you can answer my question.. We are working on a project that uses Netbeans as a java editor the project is a website that needs to be linked with Java functions and an Ontology, We built the website using HTML and we embedded the JSP code in …

Member Avatar for peter_budo
0
102
Member Avatar for nirvana74v

Hi I am getting weird error with oracle connectivity. Immediately after the open() call, the connection shows as closed. I am not able to figure out whats going wrong. The same code works if executed differently. Line: This piece of code throws error [CODE=syntax] bool objState = false; if (Program.orConn …

Member Avatar for nirvana74v
0
428
Member Avatar for Ir$had

can any1 help me with my final year project :( plzzzzzzzzzzzzzz HELP EMAIL ME on <snipped>

Member Avatar for hashinclude
0
143

The End.