199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mc3330418

I tried to write the function myself for a switch statement that would take a char and multiply it by a certain amount and then return the total. I'm a little confused on how the object gets passed to the case function. But here's what I got. [CODE] #include <iostream> …

Member Avatar for WaltP
0
2K
Member Avatar for BenzZz

Hi, I have a query which retrieves the most recent end_date of a contract. It works when i enter it into a cmd window but not inside my actual script as when i do a var_dump it shows as NULL. I don't understand why it works in one but not …

Member Avatar for BenzZz
0
117
Member Avatar for rekedmc

Hi, I need help with my assignment. Basically I have to make a html page and have the output display in a .cgi file. I am able to change the font and colors in the html page but the output of my cgi file comes out in black font. I …

Member Avatar for WaltP
0
348
Member Avatar for remya1000

I’m using VB.Net 2008 application program. I’m using DataGridView. I have a Print option where i need to print the DataGridView. I’m using this code for Printing and for Print Preview. [CODE] Dim MyDataGridViewPrinter As DataGridViewPrinter Private Function SetupThePrinting() As Boolean Dim MyPrintDialog As PrintDialog = New PrintDialog() MyPrintDialog.AllowCurrentPage = …

Member Avatar for Oxiegen
0
1K
Member Avatar for moroccanplaya

i have variable a with binary values then i have variable b with another set of binary values, i want variable b to into variable a and stored into variable c, i hope that not confusing a = "01101000011001010111100100000000000000000000" b = "011000100111100101100101" c = "01100010011110010110010100000000000000000000"

Member Avatar for moroccanplaya
0
120
Member Avatar for Thropian

I started into a project in Python,Tkinter. I have a button that I have two images for. I know buttons include the "-relief" option so I can get rid of the border. Now I'm trying to get rid of the click animation border, and have the image on the button …

Member Avatar for floatingshed
0
6K
Member Avatar for FrostMaster

Hey guys! I need to dynamically load result from query. Not all at the time, but by portions (like person scrolls down and they dynamically load). By now I add them all and then manipulate them with jQuery, but it makes final html code too large. Is there any other …

Member Avatar for diafol
0
82
Member Avatar for abhishek2301

Hello, I am trying to make a simple image editor by changing the brightness randomly. I have a simple HTML page with an image and a button which is supposed to be clicked and the brightness of the image will change to a random value using POST method and a …

Member Avatar for diafol
0
255
Member Avatar for jcomputing

This script says my message was ucessfully sent. I don't recaive any emails. Please can someone help me. <?php //set variable error var $er = 0; //enter the website the contact form is on $website = 'jonathan@jcomputingconsultants.co.uk'; //Set all POST variables $email = $_POST['email']; $name = $_POST['name']; $hereaboutus = $_POST['hereaboutus']; …

Member Avatar for pritaeas
0
254
Member Avatar for raul8

Hello, I want to fetch the rest of the XML stored inside SOAP body, but with the below simple code, I'm not able to: [CODE]public class AttributeScanner { protected String getEnvOject(InputStream iStream) throws Exception { String xml = null; // First create the connection SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance(); SOAPConnection connection …

0
117
Member Avatar for IanArcher

i want to place the contents of values from a form into a text file. When an option is changed in the form and submit button is clicked, the user is taken to another page where info about the company's address, website and so are displayed line after line like …

Member Avatar for IanArcher
0
216
Member Avatar for nadskap2

Hi there, DaniWeb. I have been struggling with this one for a while. How do i write a regexp that matches every {$*} wherein * is wildcard. I have written one: /\{\$(.*)\}/ and it works fine at regexpal.com, but not with my preg_replace:( [code] <?php $string = "Hello {$name}! How …

Member Avatar for diafol
0
129
Member Avatar for ryma

Hi! I'm load file XML to listbox It have old value in new line how to edit it. [CODE]<?xml version="1.0"?> <catalog> <book id="bk101"> <author>Gambardella, Matthew</author> <title>XML Developer's Guide</title> <genre>Computer</genre> <price>44.95</price> <publish_date>2000-10-01</publish_date> <description>An in-depth look at creating applications with XML.</description> </book> <book id="bk102"> <author>Ralls, Kim</author> <title>Midnight Rain</title> <genre>Fantasy</genre> <price>5.95</price> <publish_date>2000-12-16</publish_date> <description>A …

Member Avatar for codeorder
0
156
Member Avatar for haqayyum

Dear friends I am using vb 2008 with access 2007 at the backend. I want to make custome invoice id like Inv0001. when make next invoice the id should be Inv002 and so on. add 1 numeric value in the previous one. Please help me any help will greatly appriciated

Member Avatar for Reverend Jim
0
2K
Member Avatar for vivekanandaan

hi, I am having two tables with a similar structure. I want a code to select data from one table and update the same in second table and then delete the records in the first table. Kindly help me out. Thanks & Regards Vivek

Member Avatar for Reverend Jim
0
161
Member Avatar for fatalaccidents

Hey guys, I've been doing python programming as basically my sole programming language for about a year and have learned a lot (obviously still learning more everyday). I do a lot of computational work so I'm forced to do a lot of bash scripting as well, although I have made …

Member Avatar for moroccanplaya
0
365
Member Avatar for honeybee2090

in application am using list box i load items from a text file i want to remove single items from list and want to keep duplicate items in listbox any help?

Member Avatar for honeybee2090
0
112
Member Avatar for 21122012

roomID is used to list all record of some room ID, all the record is associated with roomBookingID. When a user clicked "modify", a form is supposed to show. However, a error message shown after I added the red statement. <?php require_once('../../config/conn.php'); $roomID=$_GET['roomID']; $sql="SELECT * FROM roomBooking where roomID = …

Member Avatar for cigoL..:)
0
212
Member Avatar for srdva59

hi, i have a configuration file with this content for example: test = "100"; teste2 = "300"; now need change the test from 100 to 300, i just want use something like this: function ( "test" , 300 ); how can i do that? thanks for help

Member Avatar for cigoL..:)
0
73
Member Avatar for tomtetlaw

I'm trying to compile a VC++ 2010 solution of two Static Library projects and I just get this (it's the build log): [code] 1>------ Build started: Project: df_debug, Configuration: Debug Win32 ------ 2>------ Build started: Project: common, Configuration: Debug Win32 ------ 1>Build started 14/02/2012 10:51:14 PM. 1> 1>Build FAILED. 1> …

Member Avatar for tomtetlaw
0
99
Member Avatar for Ksrinivas92

I am trying to create a webpage which does the following: 1)Has an image,which has an onclick javascript function f1() and an image map with a link pointing to a javascript function f2(); 2)updateAnim() is an "animation" it changes the image sources some 30 times 3)f2() is any function(trying with …

Member Avatar for Ksrinivas92
0
208
Member Avatar for profyou

when will the expression (std::cin>>buff) evaluate to false(0)? I have been trying to take input until empty string is entered(simply press enter) ? Is there any other way to achieve this?

Member Avatar for deceptikon
0
181
Member Avatar for mallikaalokam

[CODE]import java.io.*; import java.util.*; import java.lang.*; class Files { public static void main(String args[]) { char ch; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); FileOutputStream f=new FileOutputStream("yo.txt",true); while(ch=br.read()!='%') { f.write((int)ch); } f.close(); } }[/CODE] it shows an error at while(ch=br.read()!='%') saying incompatible type,though i tried typecasting.. please help

Member Avatar for stultuske
0
135
Member Avatar for aanshik

which one of best in java struts1.3 struts2 Regards [URL="http://www.supportcorporate.com/staff-augmentation.php"]Staff Augmentation Services[/URL]

Member Avatar for DavidKroukamp
0
84
Member Avatar for bloodbender

Hello Daniweb, I can't wrap my head around this minor issue. Maybe it's a known bug and I just can't find the right keywords to google it or maybe it's supposed to be like this. Let me know what you guys think. [CODE] public class TestPostfix { public static void …

Member Avatar for bloodbender
0
131
Member Avatar for stereomatching

I discover a performance pitfall of vc2010, I compile it by release mode(O2).The results are pretty unacceptable at the first time. [code] #include<ctime> #include<iostream> /* * This is a small performance pitfall I discover from vc2010, * for simplicity, I didn't separate the header file and source file. * At …

Member Avatar for stereomatching
0
171
Member Avatar for zodehala

this is my code i wanna insert value starting with [B]cb[/B] into [B][I]no[/I][/B] table coming from form. but i cannot count $a (just starting with cb) value [CODE] foreach($_GET as $a=>$b){ $q1 = "UPDATE no SET drm = 1, s = '$time', h = '$dest' WHERE s = '$b'"; $q2 …

Member Avatar for pzuurveen
0
142
Member Avatar for tomtaila

Ok so my university has assigned me the task of creating a brick breaker game for android phones (full spec below). What I would simply like to know is[B] which design pattern I should be using to structure my program?[/B] If I should be using more than one which should …

Member Avatar for NormR1
0
523
Member Avatar for ginan

Hi all, any help would be greatly appreciated. This program is supposed to allow the user to read in a txt file with ingredients for recipes. We were asked to use the fstream and to use functions to read in the info and display it. I am new to this …

Member Avatar for ginan
0
9K
Member Avatar for vijiraghs

My requirement is to parse through a HTML document ( which will be an article) and come up with a few keywords which describe what the document is about. For example, if a professor writes an essay about say, information security; i want to parse this HTML document and come …

Member Avatar for vijiraghs
0
207
Member Avatar for Sabyre

Hey Guys, Must be "a case of the MONDAYS" =) I'm trying count the results of a query of two tables. The following gives me: Column 'id' in field list is ambiguous Which I can understand as MYSQL is not sure which result I am asking for. [CODE] $query = …

Member Avatar for Sabyre
0
185
Member Avatar for suneye

hello, I am doing an auction program and i need to make the enrolldate cell in each roll equal to todays datetime. any one has an idea?

Member Avatar for suneye
0
148
Member Avatar for vijiraghs

Hello, The following is my requirement. The user writes a blog. It contains a heading, few keywords and the content. The user then submits the blog. Before getting stored, the content section of the blog must be scanned using [url]http://www.webconfs.com/keyword-density-checker.php[/url] There will be a **library containing the keywords related to …

Member Avatar for NormR1
0
112
Member Avatar for vijayram

Hi everyboby. plz help me. I created calendar using php and javascript.but the javasript function did not work.plz tell me what is the error. [CODE]<?php use_javascript('schedule') ?> <?php use_javascript("editProfile") ?> <?php use_javascript('unfinishedbussiness')?> <?php use_javascript('scheduleload')?> <script type="text/javascript" language="javascript"> function isAjax() { return isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER ['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest'; } if(isAjax() && …

Member Avatar for pritaeas
0
227
Member Avatar for rushikesh jadha
Member Avatar for stultuske
0
295
Member Avatar for stevanity

When I compiled this program... [CODE]#include<iostream> using namespace std; class base { public: virtual void show() { cout<<"\n Base class show:"; } void display() { cout<<"\n Base class display:" ; } }; class drive:public base { public: void display() { cout<<"\n Drive class display:"; } void show() { cout<<"\n Drive …

Member Avatar for gerard4143
0
200
Member Avatar for breakid

Hi, I have an XML file looks like this <node> <node2><node3>1</node3></node2> <node2><node3>2</node3></node2> <node2><node3>3</node3></node2> </node> I am trying to read one child into a string I want my string to look like that : <node2><node3>1</node3></node2> [CODE] File xml = new File("json.txt"); SAXReader reader = new SAXReader(); Document doc = reader.read(xml); Element …

Member Avatar for stultuske
0
135
Member Avatar for Gaiety

Hi, I have just started learning PERL. below is the code i have written , i am expecting the same order that of array when i print the contents. but the output was [ICODE] 29 25 Michael 29 Walter 34 Donny 25 Sobzchak 30 [/ICODE] can some body please clarify …

Member Avatar for Gaiety
0
103
Member Avatar for hasanatkazmi

Hi, I am struck in a big problem. I am creating a JAVA ME application which requires to consume web services created at my server using SOAPpy. I am using netbeens for creating JAVA mobile application. Netbeans has a web services import feature from where you can simply paste WSDL …

Member Avatar for TrustyTony
0
890
Member Avatar for Jackwong0099

[CODE] Private Sub btnedit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnedit.Click 'check for the selected item in list If Me.dgvData.Rows.Count > 0 Then If Me.dgvData.SelectedRows.Count > 0 Then Dim intStdID As Integer = Me.dgvData.SelectedRows(0).Cells("id").Value 'get data from database followed by id 'open connection If Not cnn.State = ConnectionState.Open …

Member Avatar for Pgmer
0
112
Member Avatar for cs_1000100

Hello, My question is if I have program programmed by matlab and I want program an interesting interface using another program language such as java ,can I do that? Please give me suggestions about programming wonderful interface using matlap or any other language can integrated with matlap because the original …

Member Avatar for cs_1000100
0
261
Member Avatar for chamika.deshan

Hi I came accross a code and i din't understand it Template.h [CODE] #define FRIEND_NEW template<class T> friend inline T* ::safe_new(const char*,int); template<typename T> inline T* safe_new0(const char* file, int line) { T* ptr = new T(); return ptr; };[/CODE] A.h [CODE] #include "Template.h" class A { FRIEND_NEW protected: A(); …

Member Avatar for L7Sqr
0
163
Member Avatar for snowdoll
Member Avatar for vikkii_gv

Hi to everyone, what's my doubt is when u r closing the window it should as do u want save the changes you made the option are yes,no,cancel it should be done in jsp,java script. can anyone help to solve this problem plz if anyone know the solution mail me …

Member Avatar for stultuske
0
129
Member Avatar for lastgame2007

i want to generate a student id, this is my code it is saving but, no output in dB. [CODE] $yr=date('Y'); $id=mysql_insert_id();--auto_increment $b="MATH"."$yr"."$id"; $a=$_POST['b']; MATH201201 -- i want my output to be this, [/CODE]

Member Avatar for diafol
0
247
Member Avatar for rahul8590

I want to make a user profile , where in the people can login and fill in profile details . Well basically i am wanting to make a connection between the alumni of my college with the existing students. So , i initially thought of making the alumni registered and …

Member Avatar for diafol
0
7K
Member Avatar for fika

how can i show current local date and time using php?? do i need to use new page or just add in the same page? and how can i insert time and date that show in the page into my database? i have search for a while for this, but …

Member Avatar for diafol
0
197
Member Avatar for miramiey

Hello, I am creating simple an applet to draw a registration form based on the selected item within the awt choice object. I have include a radio button, choice list and button. My problem is when running the Applet...the choice list is blinking and when I maximized or minimise frame …

Member Avatar for JamesCherrill
0
224
Member Avatar for hasbi

Uses crt; Const M=5; Var A : array [1..M] of Integer; i,x : Integer; dapat : boolean; Function Cek(angka:Integer;batas:Integer):string; var Awal:integer; Begin For awal:=1 to batas do Begin If A[awal]=angka then Begin Cek:='Angka Sudah Ada !'; dec(i); End Else Cek:='Angka benar !'; End; End; Begin Clrscr; Writeln('Pencarian dengan fungsi Logika'); …

Member Avatar for pritaeas
0
94
Member Avatar for kothaisaravan

Hi, I have an c# application works with oracle database communicates through java web service. In windows XP it works fine with calendar, but with Windows Server 2008 R2 Service Pack 1 it does not work instead it shows some error(the same application is used in both the environment). I …

Member Avatar for charlybones
0
106

The End.