199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for prad27

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at W:\www\prads_website\index.php:15) in W:\www\prads_website\inc\adminloginpage.php on line 2 Hi everyone, I am new to all this so I do apologise if ive made silly mistakes. I keep getting this message and ive banged my head searching through …

Member Avatar for prad27
0
150
Member Avatar for ayesha789

Hi I have a table which have 4 fields. How i can give rights via DB for update, Select, Delete and insert. For example User A only Update Field 1 User B only Update field 2 and select all fields. User C can delete field 3 records User D can …

Member Avatar for ayesha789
0
168
Member Avatar for shroomiin

Hey guys, i am kindof stuck on this one. i have a code that works fine....however i need to use an object class form and i dont know how to do that. here is my code: [CODE]Public Class CookieApp Dim TotalsInteger(5) As Integer Private Sub AddButton_Click(ByVal sender As System.Object, ByVal …

Member Avatar for Oxiegen
0
118
Member Avatar for KSS

Hi.. i'm using a winsock control to transfer files between two computers which are in the same network..(LAN) and it works fine. Is there a way to transfer a file to another computer that it is not in my network? For example from my computer to a friend's computer.. Any …

Member Avatar for AndreRet
0
466
Member Avatar for daveroesch

I am new to PHP and I want to make it so every field is required to send the form. I've tried a few different ways but nothing seems to work. Below is the script with no required fields. Can anyone show me how this would be done? Thanks, Dave …

Member Avatar for metalix
0
1K
Member Avatar for jellybeannn

Hi can anyone please help me, I've got a gridview populated from a database, when the download button is pressed this is exported to excel, what I would like to do is to hide the gridview, it must not show on the aspx page but the database must still export …

Member Avatar for kvprajapati
0
100
Member Avatar for Santho786

Hi, I have an array of integers I like to retrieve the max number and index of max number from that array without using Math.Max() function.. Presently in this below code, I have 4 dynamic values, end user will be select degree from combo box, entering the values semester, Max …

Member Avatar for Santho786
0
232
Member Avatar for Asimina

i have this php code below: i want to display users that are online . if they are not active the next 20 min then there name will not be displayed and there status will be turned OFF in th database table tng_users field status but i also want all …

Member Avatar for metalix
0
167
Member Avatar for snowball14

Can anyone tell me what I am doing wrong? I can't get it to calculate the charges.

Member Avatar for stultuske
0
112
Member Avatar for java=hard

I have been scrounging about, trying to get to compile this properly, but I get a stupid error message at the end. I also do not know how to implement an accumulator into the methods, could someone at least teach me how to implement one? Into Main, or just a …

Member Avatar for stultuske
0
161
Member Avatar for seularts

Can anyone please help me exclude the .php files from this code? [CODE] <?php $dir = 'x'; $filecount = 0; $d = dir($dir); while ($f = $d->read()) { if(($f!= ".") && ($f!= "..")) { if(!is_dir($f)) $filecount++; } } echo 'there are ',$filecount,' files in this folder'; ?> [/CODE] I have …

Member Avatar for n_e
0
305
Member Avatar for Venom Rush

Hi all I'm creating XML with php's native DOMDocument functionality. When I try save the XML it doesn't appear on the server and I can't figure out why. [CODE=php]<?php // Initiate the XML $doc = new DOMDocument('1.0', 'UTF-8'); $doc->formatOutput = true; // Code that creates XML elements and child elements …

Member Avatar for Venom Rush
0
1K
Member Avatar for C-SHARP

[code] OleDbConnection conn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source = C:\Documents and Settings\Developers\My Documents\Visual Studio 2005\Projects\ITDivision\ITDivision\ITDivision.mdb"); { string referenceNo = referenceNoTextBox.Text.ToString(); string institutionName = institutionNameTextBox.Text.ToString(); string fullName = fullNameTextBox.Text.ToString(); string contacts = contactsTextBox.Text.ToString(); string itemName = itemNameTextBox.Text.ToString(); string serialNumber = serialNumberTextBox.Text.ToString(); string problemInfo = problemInfoTextBox.Text.ToString(); string technicianName = technicianNameTextBox.Text.ToString(); string serviceStatus = …

Member Avatar for kvprajapati
0
141
Member Avatar for fmartins

I'm learning assembly and just finished coding the n-queens problem in nasm. The n-queens problems consists of placing n queens on a nxn chessboard so that no two queens are in the same row, column or diagonal (so that no queen could take another). For years, this is the first …

Member Avatar for coded_hitec
0
583
Member Avatar for Arianna

I'm writing a simple forum system to go along with one of my projects - nothing fancy, just categories, forums, threads, and posts. Some threads, however, are marked as 'stick', which means that they're stickies. No matter how many threads there are or where they're posted on, they always must …

Member Avatar for Arianna
0
113
Member Avatar for D4n1sD

So i want to put letter limitations into text boxs, not like it will pop up an error but not be able to write letters and only numbers, as the column type in db is demical.

Member Avatar for metalix
0
163
Member Avatar for novellino

I am trying to make a form using html and JSP, get the data and save them in an XML file. I use also Tomcat 1.6 as server. For generating the XML I am using the XStream library. I have a Customer.java class with get and set methods for a …

Member Avatar for novellino
0
528
Member Avatar for shahab.burki

Hi, I am developing a client and server in C. Client encrypts some data and sends it to the server. The server receives the data and prints it out. I am using AES 128 bit encryption in CBC mode. But at the server side I am unable to receive any …

Member Avatar for shahab.burki
0
206
Member Avatar for Virux

Alright, been trying for at least an hour. I want to be able to add functions to a JPanel Example, JPanel a = new JPanel(); a.setTransparency(color, strength); or something like that. a.myFunction(parameters) Is this even possible? I am getting sick of overiding the paint method for every panel I create …

Member Avatar for Virux
0
93
Member Avatar for Carrots

Hi, I was wondering if anyone can see why the substr_replace() function isn't replacing the 'XXXXX' with the random integer I am creating in the script below: [code=php] <?php $password = rand(12345,98765); $stringtoparse = 'Your new password is XXXXX'; substr_replace($stringtoparse,$password,18); echo $stringtoparse; ?> [/code] When I run this, I still …

Member Avatar for cwarn23
0
105
Member Avatar for chern4ever

need help, this is my code! [CODE]import javax.swing.JOptionPane; public class Lab2_1 { public static void main(String[] args) { int value1=0 ,value2=0 ,operator=0; String temp4="1"; while(temp4 != "0" ){ String temp1 = JOptionPane.showInputDialog(null,"Please enter first value."); value1=Integer.parseInt(temp1); String temp2 = JOptionPane.showInputDialog(null,"Please enter operator.(+,-,*,/)"); String temp3 = JOptionPane.showInputDialog(null,"Please enter second value."); value2=Integer.parseInt(temp3); …

Member Avatar for javaAddict
0
109
Member Avatar for alexRivera

having trouble with the print and the main [CODE] #include <fstream> #include <iostream> using namespace std; struct Item { int value; Item *next; }; class Queue { protected: Item *fill; Item * remove; public: void addingtoqueue(int); int takeaway(void); bool empty (void); Queue (void); }; class Merge: public Queue { protected: …

Member Avatar for alexRivera
0
128
Member Avatar for Th3nutz

hello guys, i'm stuck with some code and i'm getting frustrated that i cannot get it work. Please help :)) I have a database with some details about registered users with a column named Activated (which is 0 or 1). I want to make a page were restricted users can …

Member Avatar for metalix
0
121
Member Avatar for sawant_nitesh

content eg. 1. java.lang.String, 2. java.util.HashMap<Integer, Integer>, 3. java.util.ArrayList<Integer>, 4. java.util.HashMap<Integer, ArrayList<String>>, 5. java.util.HashMap<Integer, ArrayList<ArrayList<String>>>, I need a regex for matching method parameters in Java. I have tried with this one.. ([a-zA-Z\. ]+,)|([a-zA-Z\. ]+<[a-zA-Z\., ]+(<[a-zA-Z\., ]+>)*>[ ]*,) It is matching first 4 strings. But it is not matching 5th one, …

Member Avatar for Freaky_Chris
0
86
Member Avatar for morisboy

Hi, Is it possible to create a jar file (mobile app) from JSP files? I mean instead of using some toolkit to compile the java files and create the jar file, can I do the same using JSP files? Thanks.

Member Avatar for peter_budo
0
121
Member Avatar for metalix

I spent a long time figuring this out on the internet so I will post this now to hopefully help others with the same problem. this is to display the currently logged in user using mysql. this is so they log in with a username, and it displays actual name. …

Member Avatar for cwarn23
0
114
Member Avatar for ayesha789

HI Dears all I have 2 tables in DB. [LIST=1] [*]Lease_north [*]Lims_payment [/LIST] My first query is [ICODE]Select * from lease_north WHERE LaStartDate like '%-04-%'[/ICODE] its shows 100 result means 100 payments are due and must be paid in April. My second query is[ICODE]Select * from lims_payment WHERE pdate like …

Member Avatar for ayesha789
0
453
Member Avatar for Excalibur69

Hi there I am working in Visual Studio 2005 Pro. I have created a WinForm with access to a SQL database. On the WinForm I have two listboxes, the displays DivisionCode and the other DivisionID both having the same DataSource but different DisplayMembers. They occupy the same space on the …

Member Avatar for Excalibur69
0
258
Member Avatar for bhavu4u

[QUOTE]I have a form with textbox. Besides this textbox i should have imagebutton / something which on clicking will open a popup window (lookup). This popup window will have UserId and Usernames (from db). So when the User selects one from this , the UserId should get selected in the …

Member Avatar for kvprajapati
0
488
Member Avatar for MadSkyrim

Hi all, I need a perl script that can open files (given in command line arguments) and extract/print out any dates or times found in it. The format of the dates and times can be any reasonable format. The problem I have is I don't know how to print out …

Member Avatar for MadSkyrim
0
173
Member Avatar for niths

[QUOTE]hi i am new to php. i am getting the following error ----Warning: fopen(C:/Program Files/Apache Group/Apache2/htdocs/Project/) [function.fopen]: failed to open stream: No such file or directory in C:\Program Files\Apache Group\Apache2\htdocs\Project\download.php on line 4---- ----Warning: fclose(): supplied argument is not a valid stream resource in C:\Program Files\Apache Group\Apache2\htdocs\Project\download.php on line 27------[/QUOTE] …

Member Avatar for n_e
0
284
Member Avatar for sjn21682

hi there!!! need some help here everyone's welcome to help, i am currently viewing my output in excel & i have 5 columns in it ( a, b, c, d & e) column a & b must have 3 digits, c,d & e must have 4 digits, my problem is …

Member Avatar for sjn21682
0
118
Member Avatar for techstu

[QUOTE]hi all...i have just started to work in visula c++ and i have to create a program to read a txt file...but as i am debugging my program, it is giving an error on line[/QUOTE] [CODE]#include<fstream.h>[/CODE]

Member Avatar for techstu
0
85
Member Avatar for Arunabh Nag

Hi..... I want to create controls in runtime and attach them to an already connected database.. the controls must vary e.g.Array of Strings can be used. Plz Help... Also, plz tell me how to place these controls on a panel in a orderly fashion... the panel has it's autoscroll property …

Member Avatar for amrebinnaz
0
765
Member Avatar for ms_sws

I could use some help. I have a function that opens an Excel spreadsheet to load data from it. The function is found inside <head> </head> and within that inside <script></script> (see below). The problem is that I need to write that data inside the row of a table in …

Member Avatar for ms_sws
0
312
Member Avatar for acidking001

Hai. I have a problem regarding bill printing on roll paper. My printer is Epson LX-300+II, my roll paper is about 3" width, and is used for printing bill/invoices for the customers. The number of items varies. Whenever I finished printing the bill, the printer throws out/ejects the paper, as …

Member Avatar for acidking001
0
2K
Member Avatar for ameyanatu

Hello Friends I am using Microsoft Visual Studio 2005 and ms-acess 2000 to build very simple database application Here is my Code of Conncetion: [CODE]con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\db1.mdb") sql = "INSERT INTO emp values(@op1,@op2)" cmd = New OleDbCommand(sql, con) cmd.Parameters.AddWithValue("@op1", TextBox1.Text) cmd.Parameters.AddWithValue("@op2", TextBox2.Text) con.Open() cmd.ExecuteNonQuery() con.Close()[/CODE] This is simple …

Member Avatar for ameyanatu
0
88
Member Avatar for Robert Walker

I can loop while the datatable is full, but get an error when it is empty. How do I know it's empty.

Member Avatar for black_sun191
0
7K
Member Avatar for musikluver4

I just wanna be able to input 10 integer numbers, display the numbers, then be able to modify a specific number I have already entered, then display the new updated numbers again. [code] //Date: 4/6/2010 import java.io.*; public class EnterNumbers { public static void main(String[] args) throws IOException { BufferedReader …

Member Avatar for musikluver4
0
217
Member Avatar for bullsfan127

i have to write a program that takes input from the user and displays a simulated check we have to write the dollar amount in words and i cant figure out how to go about doing that. this is my code so far. [CODE]//******************************************************* // Include Files //******************************************************* #include<iostream> #include<iomanip> …

Member Avatar for vmanes
0
195
Member Avatar for sfeinst

I am trying to learn xslt and I'm having difficulties trying to figure out how to process a file that is not built out as a hierarchy (except based on an attribute) and change it into a hierarchy. Using the following XML [CODE]<?xml version="1.0" encoding="UTF-8"?> <data> <h level="1">test</h> <p>some data …

Member Avatar for fpmurphy
0
104
Member Avatar for deeep

Hello Guys, I have found many source codes to implement linked list. But all are inserting or deleting the node values after user's choice. I dont want that. Insertion should happen dynamically. I have a client program running on another system. I fetch the data from that system through my …

Member Avatar for deeep
0
205
Member Avatar for Diamonddrake

I have been looking for the answer for 7 hours. So a quick google isn't going to cap this one. I Am working on a programming notepad app with intellisense like Visual Studio. only I have run into a big issue. In Visual studio the little intellisense window is its …

Member Avatar for Diamonddrake
0
2K
Member Avatar for bravo659

[quote] I am working on a homework asisgnment from school and need some help. I am stuck on coding to set a private field to my Box class with three constructors.. It's kind of confusing when dealing with more than one constructor. The following is the code for the box …

Member Avatar for vchandra
0
176
Member Avatar for chinnaedu

Hello all, i have a small problem with my application and i am stuck now.... i have data coming on a particular port and i need to trasnsfer that particular data that i received to another port on a different machine... The data that i receive is over udp and …

Member Avatar for chinnaedu
0
233
Member Avatar for vsagarmb

Hi, I am hosting a UDP server as part of my application on a thread. The problem is when I close the application it doesn't exit completely because the server is still running on the thread. [code=python] class pdu_parser(Thread): run_parser = True sock = None def __init__(self): Thread.__init__(self) def run(self): …

Member Avatar for jcao219
0
138
Member Avatar for johndoe444

What is the meaning of compiling a regular expression? Not only in java but also in other languages like python has compiled representation of a regular expression. Actually it always bothers me what happens when a regular expression is compiled? All I know is it makes further matching of patterns …

Member Avatar for BestJewSinceJC
0
85
Member Avatar for bigbags911

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class TicTacToeV1 implements ActionListener { /*Instance Variables*/ private JFrame window = new JFrame("Tic-Tac-Toe"); private JButton button1 = new JButton(""); private JButton button2 = new JButton(""); private JButton button3 = new JButton(""); private JButton button4 = new JButton(""); private JButton button5 = new JButton(""); …

Member Avatar for BestJewSinceJC
0
131
Member Avatar for dylank

Hey DaniWeb community; I am trying to create a web page that pulls its settings from a file called settings.xml, and apply them to the web page. The title is the tag I want to change now, but my code is not working. Here is the code: [CODE=PHP] <?php //Open …

Member Avatar for dylank
0
233
Member Avatar for GAME

When I start debugging all my ribbon buttons get smaller. Here is the difference. [URL=http://img683.imageshack.us/i/helpp.jpg/][IMG]http://img683.imageshack.us/img683/5600/helpp.jpg[/IMG][/URL]

Member Avatar for GAME
0
97

The End.