199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for softheart

Disabling of hyperlink can be done by the help of Javascript, but can anyone tell me the code, how to disable a hyperlink by the help of php coding. In the web page, it is desired that when a user signs in as an administrator, he could access the hyperlink, …

Member Avatar for surenkumar
0
3K
Member Avatar for dirnthelord

I'm trying to display a report in my src/iReport/report1.jasper directory. but every time i try to display it i get java.lang.NullPointerException. I can't find where the problem is. Please someone just take a look and help me. I have imported all necessary libraries. im using Netbeans. [CODE] package Windows; import …

Member Avatar for dirnthelord
0
678
Member Avatar for shellom2005

hi, I have these two tables: [CODE]personal_details (staff_ID integer PRIMARY KEY, title varchar(10), fn varchar(250), ln varchar(250), mn varchar(250), dob varchar(50), hometown varchar(250), securityno varchar(50), phone varchar(15), phone2 varchar(15), phone3 varchar(15), email varchar(50), address varchar(300), confirmation varchar(50), retirement varchar(50));[/CODE] and [CODE]training( training_ID integer primary key NOT NULL, staff_ID varchar(100), training_level …

Member Avatar for urtrivedi
0
467
Member Avatar for johnnyd1986

I absolutely can't figure this problem out, can anyone please help? Write a program that asks for a phrase and then calculates and displays the number of vowels in the phrase, twice. The first time, your program should calculate the number of vowels in the phrase using a for loop. …

Member Avatar for Mouche
0
149
Member Avatar for Pynolathgeen

My program keeps crashing when not in debugging mode. So now i'm debugging manually, or well, log everything to find where it is crashing [code=C++] Oldproc = (PROC)SetWindowLong(Childs[1], GWL_WNDPROC, (DWORD)EditProc); cout << "Oldproc\n"; SetFocus(MainWnd); cout << "SetFocus() Done\n"; cout << "DIRECTX:\n"; DirectX = new DIRECTX(); // Creating DirectX cout << …

Member Avatar for tetron
0
131
Member Avatar for showket

hi,can any one tell me in stepwise how to setup my asp website on LAN. thnks in advance

Member Avatar for nikaso
0
72
Member Avatar for clueless07

I am trying to print out the results of a sql query into a table i haven't finished the table yet but im already getting an error please help the error is Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\minterface.php on line 45 [code]<!DOCTYPE html PUBLIC …

Member Avatar for clueless07
0
134
Member Avatar for heindrix_chenx

I’m writing a code on microsoft visual c++ 6.0 for load *bmp file and save it to *bmp file too. But i got stuck on save to *bmp code. Help me please.. void WarnaToRGB(long int warna,int *Red,int *Green,int *Blue) { *Red=warna&0x000000FF; *Green=(warna&0x0000FF00)>>8; *Blue=(warna&0x00FF0000)>>16; } long int RGBToWarna(int Red,int Green,int Blue) …

Member Avatar for Pynolathgeen
0
893
Member Avatar for sid78669

I am writing a utility in which time is being displayed. The problem is, the time being displayed is for the timezone +1. I want to add functinallity so that the user can not only display this time, but also choose which timezone they would like it to be displayed …

Member Avatar for tristian2
0
115
Member Avatar for Seregwethrin

Hello; I want to change a part of the form without changing the active form (with .NET Windows Forms). You can think like frames on the web. For example I create a menu at left side and I want to change right side without changing the whole. I've no idea …

Member Avatar for Seregwethrin
0
85
Member Avatar for whiteyoh

Hi All, I have sent a GET request to a third party and it has responded with XML. I would like to know how to extract the information from that response and convert it into a standard php variable. [code] <GetGuidResult> <ErrorNumber>0</ErrorNumber> <ErrorMessage/> <Guid>40d505ba438049a68eafc9a95e7fefcf</Guid> </GetGuidResult> [/code]

Member Avatar for whiteyoh
0
87
Member Avatar for MrJNV

Hi, I have to do a recursive merge sort here. I got the merge sort done (thanks internet...because my book was useless), but I have to print the sublists as output. Here's the instructions: [COLOR="Green"]"The program must first display the list to be sorted. Then it must display the sublists …

Member Avatar for Mouche
0
235
Member Avatar for yara1

hi How do I write php code to check if checkbox is checked or not ? correct my red line please :) [code]<html> <head> </head> <body> <script language="JavaScript" type="text/javascript"> function add() { <?php extract($_POST); [COLOR="Red"]if(category[0].checked)[/COLOR] $query = "INSERT INTO mytable (cat) VALUES ('1') [COLOR="red"]if(category[1].checked)[/COLOR] $query = "INSERT INTO mytable (cat) …

Member Avatar for ravibose
0
2K
Member Avatar for mrcniceguy

i`m using the jquery library in ma web....so i`m wondering which method of calling the library is more recomended. i mean to download the libary and call it directly from the server or to link to googleapis???? Any suggestions will be appreciated. <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> OR <script …

Member Avatar for mrcniceguy
0
87
Member Avatar for anasp

Hi! I am new in PHP. I have a table which stores user surnames and 12 months each having a value of 1 or 0. I need via a form in PHP to check whether or not this value is 1 or 0, and be able to control this values …

Member Avatar for anasp
0
116
Member Avatar for rohitmanhas_12

i want the following jsp code to be converted in c#... cud anyone help me... [code] ResultSet resultset, resultset1; String localityid,villageid; Connection connection= DriverManager.getConnection("jdbc:odbc:rmcwhDSN"); Statement statement= connection.createStatement(); String familyid = request.getParameter("familyid"); String tempSQL = "select * from HOUSEHOLDMEMBERS where FamilyId='"+familyid+"'"; //out.println(tempSQL); resultset=statement.executeQuery(tempSQL); String tempMemberid=""; String tempNum=""; while(resultset.next()) { tempMemberid = …

Member Avatar for rohitmanhas_12
0
179
Member Avatar for needHelpVBA

Hi there :-) Your help is highly appreciated! I just don't know how to start... I already read a book, but I didn't get the knowlegde I need to key in the code. It is supposed to be a multiuse financial tool. I already have most of the mathematical backround, …

Member Avatar for jhai_salvador
0
70
Member Avatar for blazinhieu

I want to double the score if the cards have the same suit or value and if two cards have the same both suit and value, the score get tripled. And the 2 of clubs is a 20 points. i already wrote the basics of the program which it adds …

Member Avatar for vchandra
0
303
Member Avatar for johndoe444

I have wrote this following code to output aphostrophe (code 39 for utf-8): test_utf8.rb: puts "It\39s a wonderful life" then ran it using: ruby test_utf8.rb > utf8.txt While opening in gedit it shows a box corresponding to \39. While opening in open office, it asks which encoding and after selecting …

Member Avatar for johndoe444
0
75
Member Avatar for Pooja J.

Hello to all, Please tell me the error from the following code. When I choose a file from 'file' field, then it update the image, but when I dont choose a file. It doesn't keep the same image, i.e. the image get disappear. What is the problem in my 'If.....else …

Member Avatar for Pooja J.
0
110
Member Avatar for rkp728

I am writing a adler32 code to compute the adler32 checksum of a string. On the net I came across various sample codes: I did not understand some code entirely as <b>it has additional code</b> marked in bold below apart from the basic implementation of the adler32 logic. I did …

Member Avatar for rkp728
0
232
Member Avatar for ErlendHL

I have studied some AJAX, and tried to understand it. The AJAX works; i just want to write a right php document too. With the AJAX, I load the php file write.php. Here is what is in write.php: [CODE]<?php $NAME = 'data.txt'; $HANDLE = fopen($NAME, 'w') or die ('CANT OPEN …

Member Avatar for danishanila
0
569
Member Avatar for ausmaya

Hi I have to work with oracle application express 3.2 I have some doubt on installation: 1.whether i need to load oracle 9i release 1 or release 2 2.whether it is possible to work with windows vista/xp? 3. what are the requirements to install apex 3.2?? i am new to …

Member Avatar for ausmaya
0
87
Member Avatar for COKEDUDE
Member Avatar for afruja
Member Avatar for Krytikal

Alright... so I found numerous examples on the proper way to suspend and pause threads but none really relate to my problem. I have a thread which runs in the background of my game which does all the simulation of moving players, calculating spaces and ect... I have a pause …

Member Avatar for Diamonddrake
0
584
Member Avatar for rukshilag

so there are 2 tables course participant and past participant - both have same fields. i want to write a query that selects both from course participant and past participant if search option "find all" is called. i out everypossible combination but it just doesnt get right - pls help

Member Avatar for rukshilag
0
89
Member Avatar for hongil14

This is a program im writing for class. Here is the exception im getting: Exception in thread "main" java.lang.NullPointerException at LinkedList_final.insert(LinkedList_final.java:72) at LinkedList_final.main(LinkedList_final.java:247) Basically, my program reads a text file and parse a string. And then, add the string to Linked list. Thank you for your time and any help …

Member Avatar for BestJewSinceJC
0
2K
Member Avatar for rizzi143

// hi guys actually i need some suggestion or help .. i want to add STRING capability in this following Queue program. currently it just eccepts the chars . so if somone can help me out in getting the String output. thanks [CODE]#include "stdafx.h" /***** Structure template *****/ struct list{ …

Member Avatar for Ancient Dragon
0
130
Member Avatar for milosz

How can I determine position and size of rectangle on my image and fill rectangle with my texture using System.Drawing class or something else? Basically I have to change the color of the particular part of an image on button click. Any idea how to do this?

Member Avatar for Diamonddrake
0
224
Member Avatar for guest7

Hi, I am trying to use the "partition" from STL algorithms. I get the following error: [CODE]error: no matching function for call to ‘partition(__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, __gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, <unresolved overloaded function type>)’ /usr/include/c++/4.2.1/bits/stl_algo.h:2098: note: candidates are: _ForwardIterator std::partition(_ForwardIterator, _ForwardIterator, _Predicate) [with _ForwardIterator = __gnu_cxx::__normal_iterator<int*, std::vector<int, …

Member Avatar for Banfa
0
400
Member Avatar for k2k

from mysql command line, what's the command to import query from a text file? does mysql has this ability? it would be handy if so.... does the text file have to have mysql file type? please be a bit specific. thanks very much.

Member Avatar for k2k
0
86
Member Avatar for annietabio

package hw3; import java.math.*; public class Main { public static void main(String[] args) { int i, j=0; double t=0; //input int m=4; int n=5; hw3.Point[] p = new Point[m]; hw3.Point[] q = new Point[n]; p[0] = new Point(0,0); p[1] = new Point(0,1); p[2] = new Point(0,3); p[3] = new Point(0,5); …

Member Avatar for annietabio
0
154
Member Avatar for mjltech

[CODE]Public Class Form1 Private Sub btnCompute_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCompute.Click Dim percent As Double percent = (txtGrams.Text * 9) / txtCalories.Text * 100 Dim fmtstr As String = "{0, -15:p3}" lstResult.Items.Clear() lstResult.Items.Add(String.Format(fmtstr, txtFood.Text & " containts " & percent & _ " calories from fat.")) …

Member Avatar for mjltech
0
91
Member Avatar for Etherwind

I wrote a function to read an expression (i.e. A+B-C) from the keyboard one character at a time, and ignoring spaces insert each char into a queue. I tried something I though would be fairly elegant, but I don't think I did it right. This is my function: [code] void …

Member Avatar for WaltP
0
104
Member Avatar for Bobon

Ok guys, firstly i'm sorry for the long code. Don't worry, it is only a small problem related to a small part of the code in the main class. I've highlighted the .area I have a problem here. The first piece of code is my main class. I call a …

Member Avatar for Bobon
0
3K
Member Avatar for ultimatebuster

Here is 2 classes: [CODE] class Test(object): def __init__(self, var1=123): self.var1 = var1 class Test2(Test): # ... [/CODE] As you can see, Test2 is an instance of Test, which has var1. var1's default value is 123. How can I change the var1 in Test2 without __init__ again? Or better yet, …

Member Avatar for bumsfeld
0
100
Member Avatar for zimmy130

Hey there guys, First time poster here, so I apologize for being a rookie. This is my first VB class and im having a hard time with For-Next loops. The question assigned is as follows: Request and odd number, and display a triangle similar to this: [code] ***** **** *** …

Member Avatar for zimmy130
0
303
Member Avatar for Ecliptical210

Hey guys, I'm creating a Maze class along with a client class where it allows the user to input a direction (U/L/R/D), and then the validity of the move will be returned as well as the new position of the maze. So far, I've got this, but when I try …

Member Avatar for rue64ja
0
240
Member Avatar for motters

hi i am doing some research into LDAP and php is there any where i can learn how to uses LDAP systems like how to fetch info from in and into my php form and LDAP login systems like tutorial videos pages thanks any help is great [B]i do not …

Member Avatar for Tekkno
0
78
Member Avatar for jeffery12109

please help... here's the code [CODE]import java.awt.FlowLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JPasswordField; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JOptionPane; import javax.swing.JButton; import javax.swing.Icon; import javax.swing.ImageIcon; public class Button extends JFrame{ private JButton reg; private JButton custom; public Button(){ super("BUTTON"); setLayout(new FlowLayout()); reg = new JButton("reg BUTTON"); add(reg); Icon …

Member Avatar for jeffery12109
0
305
Member Avatar for TimCereja

This displayBits function works fine in this code in displaying the bits of the input integer. I put the same thing into function reverseBits and have been trying different things to get it to reverse the order, but can't seem to get it right. I think it's a minor modification …

Member Avatar for TimCereja
0
601
Member Avatar for 9w43

I have 2 classes inside bluej, member class and trip class so when I make a member object with student ID, name and course, how can I make an ArrayList or HashSet on trip class which needs to store those students. If you have used bluej you know what I …

Member Avatar for 9w43
0
482
Member Avatar for Fenlevi

Hi people,in the assignment I was give the main function and was told to write a class, and the output is supposed to be like this: BLANK(0,0) Destination (6.2,16,7) BLANK (45,0) Destination (6.2,33.4) The x coordinate of source is:45 The y coordinate of source is :33.4 The label of point …

Member Avatar for jonsca
0
137
Member Avatar for Flybro

Hi, I tried to use dynamic table names like: [CODE]create table outgoing_%Y%m%d ( ip_src CHAR(15) NOT NULL, ip_dst CHAR(15) NOT NULL, src_port INT(2) UNSIGNED NOT NULL, dst_port INT(2) UNSIGNED NOT NULL, stamp DATETIME, PRIMARY KEY (ip_src, ip_dst, src_port, dst_port, stamp_inserted) ); [/CODE] but every time i got message about syntax …

Member Avatar for drjohn
0
121
Member Avatar for bornwith

I am trying to teach myself C#. I spent about ten hours trying to find a solution and could not come up with a working one. So I am trying this from a different approach. I got the answer and I am going to work my way back to the …

Member Avatar for bornwith
0
91
Member Avatar for aot

I've realized that it would be very helpful to me to SET the mouse cursor to a particular location. Having done the usual internet searches, I can't seem to find anything on how to do it. Any ideas? (So I'm still set on converting to wx, but the project I've …

Member Avatar for Gribouillis
0
4K
Member Avatar for avilporwal

Hello, I am stucked while making code in PHP. I actually want to make a table in database with name as username (of the respective user). (table should be formed only when no such table exisit before) I used session to get username and every thing is right except formation …

Member Avatar for diafol
0
91
Member Avatar for lifeworks

Hi I think what Im trying to do is possible, just not sure how... On a button click - Ive created an object, with some properties in it. If I want to access those properties when clicking another button... how do I do that? [code] function build() { var circ …

Member Avatar for Airshow
0
105
Member Avatar for rtllz

Im using xcode to write my program. Every time I build and run the program it will do everything fine, until the end. It keeps giving me an answer of 0 no matter what i put. Need help to figure out what im doing wrong thanks in advance. [CODE]//price_converter #include …

Member Avatar for rtllz
0
147

The End.