199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Dean_Grobler

I'm busy working with servlets now and when I try and compile them, I get erorrs stating that it can't find javax.servlet etc. Getting errors where I do the import statements to them. So apparently I have to add that servlet.jar file to the CLASSPATH? And that file can be …

Member Avatar for peter_budo
0
659
Member Avatar for maleke

Hello, I currently have hashed passwords in my database. I want to set them for clear. I do not care about any kind of security. I just want plain, simple passwords. I don't even care if I have to delete all my users and start over fresh. I desperately have …

Member Avatar for maleke
0
392
Member Avatar for Sarao

Friends, I am trying to display data with limits from my MYSQL Records. It Shows the data, but it does not work with Next or Previous Page. Here is the code: [code] <?php // Connects to your Database mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("shipments") or die(mysql_error()); //This checks to see …

Member Avatar for Sarao
0
125
Member Avatar for patrickgormally

The monthly payment on a loan can be calculated using the following formula: amount * R monthly payment = -------------------- -N 1 - (1 + R ) where: amount is the amount of money borrowed R is the monthly rate of interest for the loan N is the number of …

Member Avatar for Akill10
0
192
Member Avatar for JannuBl22t

Hey I have a question.. I have a list in one form that looks like this: [column1] - [column2] item1 - 0 item2 - 6 item3- 8 item4 - 5 item5 - 2 soo.. now I open a new form and I need to select what kind of items I …

Member Avatar for Mitja Bonca
0
115
Member Avatar for sandm3n

Hi everyone, i'm newbie here just want to catch some knowledge here, i just wondering to know how to make link like mediafire download link, such as [QUOTE][url]http://www.mediafire.com/?eml6e0uxl3e[/url][/QUOTE] is that using .htaccess editing? thanks

Member Avatar for -==Zero==-
0
394
Member Avatar for CrazyPixel

Hey guys, Here's my problem: I've been following [URL="http://www.zeuscmd.com/tutorials/opengl/03-OpenGLWindow.php"]ZeusCMD tutorials on OpenGL[/URL], and when I tried compiling [ICODE]main.cpp[/ICODE], I get an initializer error. I am not sure what caused it, since it seems exactly the same as the example. I linked all libraries it tells me to (-lglu32 -lopengl32). I'm …

Member Avatar for CrazyPixel
0
384
Member Avatar for varsha solshe

Hi everyOne... I am new to sql Server and installed Ms sql 2005. i want to use command prompt for queries But whenever i use the sqlcmd command my computer gets restarted... Why it is so???? can anyOne plz Help...

Member Avatar for ronwarshawsky
0
97
Member Avatar for TechySafi

I'm a noob developer. Trying to develop a simple php-mysql based chat script. I'm stroing all of my chat message's in a table. So to retrive em, im running a mysql query. Here is no problem but im concerned that it may create some performance & speed issues when a …

Member Avatar for Sorcher
0
113
Member Avatar for fantasma

Hello fellow programmers, I've built an upload script that, as usual, verifies if a file extension is allowed. However, the comparison seems to not be working, as it gives me an unhauthorized file trying to be uploaded (when in fact the file has an authorized extension). If i comment the …

Member Avatar for fantasma
0
101
Member Avatar for old_kid

Please let me know if I should make something more clear 1. Each item in list contains a tuple with its name -> ((value, work), 'name') 2. the function "sort" below sorts the list of subjects by "value" in descending order 3. I get: TypeError: 'int' object is unsubscriptable (occurs …

Member Avatar for griswolf
0
3K
Member Avatar for angskie20

hello every one..I'm IT student i do understand it's logic and algorithm but I'm having hard time in programming.. I do hve weak foundation in Programming..can i ask help from u for my assignment? Problem: Write a program that reads student scores, gets the best score, and then assigns grades …

Member Avatar for stultuske
0
347
Member Avatar for barizon

I have a form with the vendor and product fields, I want that after these two items are completed the price of the product field is automatically filled in accordance with the vendor and product inserted (remembering that there is a price table where you register the product price and …

Member Avatar for barizon
0
104
Member Avatar for JBLDW

This is a (very) basic PHP form for use with a database. - Not sure of all the technical stuff I probably should be adding to this post, and I am not sure that it is safe to use either. - Spent hours (literally) looking at ways of securing the …

Member Avatar for JBLDW
0
115
Member Avatar for MrPixel

Hey folks, Long story short. I've been looking around all day for a script that would detect the height of one div (can't be predefined because of dynamic text content), and set a second div as that same height. I found a few forum topics about scripts I thought could …

Member Avatar for bulletcatcher
0
334
Member Avatar for mmmerlin

Hi, I'm writing a scientific application that has to store a large (1GB to 500GB+) amount of data on a hard drive, and then, once written, read it back sequentially to process it. The amount of data for a particular experiment is known in advance, exact to the byte. When …

Member Avatar for mmmerlin
0
519
Member Avatar for alex55

so I have and for loop to find the highest number in and array how would i go about outputting the element number? [CODE]//compares the values in the yearAverage array to find the highest temperature for(int i=0; i<lineCount; i++) { if(yearAverage[i]>=highTemp) { highTemp = yearAverage[i]; } }[/CODE]

Member Avatar for alex55
0
131
Member Avatar for rockerjhr

could someone explain to me why the compiler(gcc) outputs a warning that the control reaches the end of a non void function? [CODE] #include <stdio.h> #include "stack.h" #include "globals.h" #include "stack_interface.h" #define ERR_PUSH "Error in pushing symbol (character #%d).\n" #define ERR_POP "Error in popping symbol tp match character #%d.\n" #define …

Member Avatar for nezachem
0
220
Member Avatar for Jsplinter

Below is a simplified version of the function. [code]int x; void myAdd(const double& p) { if (x > 100) { x = 1; myAdd(p); } ++x; ... }[/code] The advantage of this recursion is that I don't have to write a second function ie myAdd2. Are there any pitfalls of …

Member Avatar for mike_2000_17
0
130
Member Avatar for ajayb

public static boolean compare(int[] a,int n) { for(int i=0;i<n;i++) { for(int j=i+1;j<n;j++) { if((a[i]*a[j])%2==0) return false; else return true; } } } there's an error coming when I try to include this function in my prog. I think the place of return true is causing problem.When I write the return …

Member Avatar for ajayb
0
126
Member Avatar for ankurmawanda

i am having some connectivvity issues i am using postgres 9.0 sql db i have installed a dns localhost using the postgres sql driver also i have the jdbc jar files in the lib dir of the tomcat my code is [CODE] <%@ page language="java" import="java.sql.*" %> <% Class.forName("org.postgresql.Driver"); Connection …

Member Avatar for masijade
0
298
Member Avatar for alex55

I have a function that should read in data from a file and add them to and array then i pass that array to another that totals the data then i want to find the average of that array and pass the max value to a variable 'max' with the …

Member Avatar for alex55
0
123
Member Avatar for Kate Teoh

Hi, I have a problem about update table in a database. The situation is I have a table named member which store thousand rows of data records about thousand of member for a system. This member table has a field named MemberExpiryDate which used to store each member expired date. …

Member Avatar for Kate Teoh
0
126
Member Avatar for Acute

How to send [COLOR="Red"][U]ANY[/U][/COLOR] text via jquery ajax method to php script? When text entered in textarea is html entity, php $_POST[]/$_GET[] sees it as empty string. Here is the code: [CODE=html] <head> <script type="text/javascript" src="/Engine/js/jquery-1.4.4.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("button").click(function(){ $.ajax({ type: "GET", url: "get.php", data: "ta=" + $("#ta").val(), success: …

Member Avatar for McLaren
0
172
Member Avatar for ben.marks

Hi there, This may or may not be a dumb question, but I've never come across it before. Can you point to a javascript 'onsubmit="return validation()"' on a form, but WITHIN PHP tags? Such as the below. [CODE]function validation(){ var reply = document.getElementById('comreply'); var div = document.getElementById('errormsg'); if((reply.value == '') …

Member Avatar for ben.marks
0
171
Member Avatar for vboopathicse

i need a script that data's fetch from mysql and display in text scroller using javascript. i' uses it is a news update. please somebody helpp me.

Member Avatar for diafol
0
175
Member Avatar for curbster

Hi I'm in my first Java class, towards the end and am struggling with some code dealing with arrays. I'm not looking for the answers but am spinning my wheels (as usual) and am stuck on a particular problem. I'll list the problem here and then explain where I am …

Member Avatar for Akill10
0
12K
Member Avatar for souravsikka

Hello friends,i need your help in PHP.Currently i am doing a module named compare items,in which i have to compare different phones of different brands. Working of this module: firstly user check the associated checkbox of the phone.At a time user can Select 3 phones.A list is maintained which keep …

Member Avatar for diafol
0
111
Member Avatar for anandguptastar

I have created a function which add a row in tablelayoutpanel and textbox in column of the row. After adding few rows, i want to read the value of particular textbox in particular row. How can it be done. Remember one thing that name of all textbox is same in …

Member Avatar for anandguptastar
0
5K
Member Avatar for emma123

Hi, i am new to this and was wondering the following question 'Is PHP a good way to implement a database driven Web site? Thanks

Member Avatar for diafol
0
158
Member Avatar for MarkHolm

This seems to work well until I try to create the 11th button. Any suggestions? [CODE] procedure TForm1.FormClick(Sender: TObject); var nb: TButton; begin Inc(n); nb := TButton.Create(Self); nb.OnClick := ButtonClick; SetLength(ca, n); ca[n] := nb; ca[n].Left := 8; ca[n].Top := (((n - 1) * nb.Height) + 8); ca[n].ParentWindow := Form1.Handle; …

Member Avatar for Wolfgan
0
409
Member Avatar for realoneomer

hi Perl Gurus, I have two text files namely test_old and test_new and i am using below perl script which compares both files (old & new) and display only those records which only have changed values but i am getting an error like Can't use an undefined value as an …

Member Avatar for realoneomer
0
221
Member Avatar for niths

hi all, i had a folderbrowserdialogue. and wen i click on a folder it should get me that folder name, files names in that folder and subfolders and files names in that subfolder to be displayed in listview. i had tried this and it is displaying files in selected folder.Now …

Member Avatar for Mitja Bonca
0
520
Member Avatar for ben.marks

Hi there, Pretty novice to JS, just wondered if anyone could give me a hand please. I have a form that is passed to itself. I was just wondering if there was a way to get this to validate before it passed to itself. I was assuming that as the …

Member Avatar for ben.marks
0
361
Member Avatar for elneco

forums, I’m developing a site for some hotels in baltimore. I want to incorporate a booking widget similar to the one on: [url]http://www.dullesairporthotelrooms.com/[/url] Where a user can select 1 of 4 property’s to check for availability. can any1 please help with this? Thank you, -neco

Member Avatar for pritaeas
0
133
Member Avatar for tim8w

I need a RegularExpression that can convert a string from a fraction or decimal like "1/2" or "0.5" to a decimal "0.5". It needs to handle both cases. Input can be either fractional or decimal, output must be decimal...

Member Avatar for tim8w
0
242
Member Avatar for mahdi68

in my application i show database table in a datagridview , now i want to modify and change some records and save this changes on database , how can i do this ? thanks

Member Avatar for Mitja Bonca
0
110
Member Avatar for Dexxta27

[CODE]typedef struct electro { char name[20]; int access_number; char address[50]; float balance_due; }; electro account[10]; electro account[0].balance_due=$ 120.52; electro account[0].address[50]={Cane Gardens};[/CODE] Can someone tell em how to correct this piece of code. I'm using Codeblocks and it says it " expected an initializer before '.' " in the two last …

Member Avatar for Dexxta27
0
214
Member Avatar for ticktock

Hey all I am a month or two in coding in java and currently I am doing a java calculator gui project, my professor requires us to code the gui by hand, and I did so with a panel and gridbaglayout layout manager, anyways since this is a calculator I …

Member Avatar for ticktock
0
671
Member Avatar for Jollyyy100

I have a form on my vb 6.0, i need to change the appearance. In the sense that, i can change its transparency or opacity of the way how the form looks. Is there any way possible i can do that ?

Member Avatar for Jollyyy100
0
359
Member Avatar for samsons17

Hi.. I got to query that i want to execute here..It is again like facebook wall system,where the first query is for executing all the "wall post",while the other query is for executing the comment for the post. So basically,i need two query for that,which I've written them down like …

Member Avatar for samsons17
0
104
Member Avatar for QuesoTaco

Nevermind, I wanted to delete this post, but did not want to bother emailing the moderator. Sorry.

Member Avatar for QuesoTaco
0
340
Member Avatar for MrCapuchino

I have SQL Server 2008 Developer installed in my machine. The thing is that I have this database backup with version 10.50.1600, SQL Server Developer 2008 SP2 has version 10.00.4000. Well, I know there is not an easy workaround or conversion, so I thought well, what If I installed the …

Member Avatar for MrCapuchino
0
190
Member Avatar for stevenfagan

I can't insert values into a table using a stored procedure because the fields are of data type MONEY. First, is the data type CURRENCY the same as data type MONEY? Right now, I am currently using the integer value of adCurrency for the data type parameter of the createparameter …

Member Avatar for ArtistScope
0
298
Member Avatar for wally1234

I have 2 tables and want to add the count column from the bottom table to the top table (join on “OID” and “OPTID”) and if no count is found set the cell to zero. How can I do this? [CODE] SELECT questions.pollid, questions.id, questions.title, questions.ordering, options.oid, options.qoption, options.ordering FROM …

Member Avatar for jlego
0
117
Member Avatar for dennis.d.elston

Please help! I don't understand why I am getting this error: function does not take 0 arguments. The program is suppose to calculate how much fuel is left in the tank after you drive a certain amount of miles. Can someone please help explain why I am getting this error? …

Member Avatar for dennis.d.elston
0
1K
Member Avatar for yamot47

[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript"> function buttonPress(str) { var str; alert(str); } </script> </head> <?php session_start(); error_reporting(E_ALL ^ E_NOTICE); include "dbconfig.php"; $id=$_SESSION["valid_user"]; ?> <body> <form name="Item Search" method="post" action="search.php"> Item Search:<br> <label> <input name="swords" type="text" …

Member Avatar for yamot47
0
249
Member Avatar for biancaW

I have this question. could anyone help me how to write C++ code for it: A bank account starts out with $10,000. Interest is compounded monthly at 6% per year (0.5% per month). Every month, $500 is withdrawn to meet college expenses. After how many years is the account depleted? …

Member Avatar for jonsca
0
2K
Member Avatar for raghujosh

I am developing a form(PHP) that will accept some data. The data will be displayed on a web page. However, before it is displayed, a moderator of the site has to grant permission to display the data. The way it works 1) A user logins to the site and enters …

Member Avatar for vaibhav1983
0
100
Member Avatar for unclepauly

hello, im writing an HTTP proxy in C#. the proxy should capture both HTTP and HTTPS traffic from the web browser. so far i have implemented the GET and POST requests no problem, but the CONNECT request i am having a little trouble with. there does not appear to be …

Member Avatar for unclepauly
0
2K

The End.