64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for kadriirdak

Hi There, I do have an array; [CODE] $result = array( 'Database' => $database, 'UserID' => $contactAmendedBy, 'OldContactNumber'=> $_SESSION["CONTACTNUMBER"], 'OldActivity'=> $OldActivity, 'OldActivityValue'=> "ANT", 'OldSource'=> $OldSource, 'OldValidFrom'=> "25/08/2010", [*]'OldValidTo'=> "26/08/2110", 'Source'=> $Source, 'ValidTo'=> $ValidTo )); [/CODE] What I want to do is to give move values to dates. like; [CODE] 'OldValidFrom'=> …

Member Avatar for hielo
0
68
Member Avatar for koveras vehcna

Hello everyone, I have created a text generator that acts on certain factors. I want to send every generated sentence via e-mail to a user but I noticed that everytime I send it, I encounter some problems. Below I show my code and under my code, I will describe the …

Member Avatar for koveras vehcna
0
322
Member Avatar for Xufyan

How to return two values from one method ?? for example i've made the following program. [CODE]import java.io.*; class vowel{ public static void main (String args[])throws IOException{ String sentence; InputStreamReader isr = new InputStreamReader (System.in); BufferedReader br = new BufferedReader (isr); sentence = br.readLine(); System.out.print (vowels(sentence)); } static char vowels …

Member Avatar for Xufyan
0
205
Member Avatar for creeps

Hello, I've learnt a bit more C since I posted [url=http://www.daniweb.com/forums/thread302037.html]the last code review thread[/url], so I've decided to rewrite the Mystery Word application, this time using strings, pointers and pointer arithmetic, and dividing the program into files (I've only got three of those). I've also created a very basic …

Member Avatar for creeps
0
103
Member Avatar for dflatt

I can't decide what data structure to use for a program I'm making. the program I'm making is a football table, the variables used so far are; string team; int played = 0, goalsfor = 0, goalsagainst = 0, goaldiff = 0, win = 0, draw = 0, lose = …

Member Avatar for dflatt
0
112
Member Avatar for SkonTeam

Hi all, i am just asking for help to make this code work, i wrote it but it just tell me "too many arguments for Binomal Function" What should i change ? [CODE]#include <iostream> #include <cmath> using namespace std; long factorial (long); long binomal (long); int main() { int x, …

Member Avatar for SkonTeam
0
163
Member Avatar for gchurch

i want to use federated tables in my db and not sure how to set them up in phpmyadmin...? does anyone have a solution for me...?

Member Avatar for gchurch
0
631
Member Avatar for dorien

Hi, I found a number of post talking about this in C, but could not solve it in C++. I have 4 hex characters to represent a length. These need to be stored like this, in the case where length=16 ([URL="http://www.easycalculation.com/decimal-converter.php"]this online converter[/URL] told me that 16 converts to A …

Member Avatar for dorien
0
4K
Member Avatar for dresposure

Hello everybody, I am Pinak. I want to build an apllication regarding encryption. However, I am confused. [B][COLOR="Green"]Should I use Applet or Swing ????? [/COLOR][/B] Can you tell me what is the difference between the two??????:)

Member Avatar for extemer
0
162
Member Avatar for angel392004

I'm working on an e-voting system right now. i'm having problems in passing a selection from list view to a list box. first is when an item is checked, it is pass in the list box.. but in my case the item is pass when the item is uncheck. second …

Member Avatar for angel392004
0
246
Member Avatar for ppetree

OK, putting together a simple table based on the output from a sql query. mysql_num_fields() returns 9 so I know I'm getting ONE row back. mysql_field_name($result, $i) returns the column name. When I try to output the table row(s), I get nothing... nada... zip... I must be missing something! (tired …

Member Avatar for ppetree
0
124
Member Avatar for purijatin

Hello For example if i want to implement my own protocol, i can proceed by implementing the extra features on UDP on the application it self and thus achieving my task. But what if i want to implement it on the OS level just like TCP or any other protocol, …

Member Avatar for masijade
0
118
Member Avatar for becky007

my coding to ignorecase isn't working but the else statement does. I have system.using regular expressions allready. it runs without errors but it dosn't ignore capitals. [CODE] private void checkBox1_CheckedChanged(object sender, EventArgs e) { if (checkBox1.Checked == true) { Regex word = new Regex (wordtextBox.Text, RegexOptions.IgnoreCase);// dosn't work } else …

Member Avatar for Momerath
0
119
Member Avatar for Sunshineserene

Hi, I have this program that part of it is hard coded. Instead of hard coding it, I need to do a file read instead. Meaning, the hard coded part must be changed to reading the info I need from a txt file. May I know how to do that? …

Member Avatar for NormR1
0
485
Member Avatar for sebastian3

Can anybody tell me why the Application_Start in global.asax in not firing under any conditions.Can any1 still tell me the conditions to fire it

Member Avatar for xyzsoft
0
699
Member Avatar for heshanm

Hi, I have 4 account type tables. savings_investment(ID,account_type,full_name,balance,interest,customer_id) shakthi(ID,account_type,full_name,balance,interest,customer_id) surathal(ID,account_type,full_name,balance,interest,customer_id) abhimani_plus(ID,account_type,full_name,balance,interest,customer_id) The ID is different from one table to another. That is why i created 4 tables rather than one table. I want to write the coding to [B]check account balances[/B]. That is if user types the ID and clicks …

Member Avatar for ppetree
0
49
Member Avatar for techie1991

I have just started writing C code in dev-c++. The programs are running fine, but each C program shows me the following warning: [QUOTE] [Warning] command line option "-fno-access-control" is valid for C++/ObjC++ but not for C[/QUOTE] The test program I used was: [CODE] #include<stdio.h> int main(){ system("pause"); return 0; …

Member Avatar for Kanoisa
0
573
Member Avatar for Tyrial

Hi there I am trying to develop a silverlight game to be deployed on facebook. This game needs to make use of a database to store information about the players stats. At the moment i am just trying to get the silverlight wcf services working. By making a simple grid …

Member Avatar for Tyrial
0
147
Member Avatar for kinvieb

I am developping an user interface in VBA to manage an MS access database. I am confronted with a task that consists to open any document file store on a computer using a VBA command. I can do that that for any MS office document but failing with other document …

Member Avatar for AndreRet
0
244
Member Avatar for bsewell

Hi, I have a hidden DIV, which is going to cover all of the screen as part of a lightbox. I wrote my code based on what I found at docs.jquery.com/Tutorials:Basic_Show_and_Hid . When I click on the link to run the lightbox, the div isn't showing even through the z-index …

Member Avatar for bsewell
0
96
Member Avatar for Dhilip.S

[B]I ve added windows media player in the form. and i can add a audio file in it..but i want to add more than one audio files in a playlist and from tat playlist i want to retreive duration of each n every file and store it seperatly in an …

Member Avatar for Dhilip.S
0
80
Member Avatar for rexona

hi, i'm having trouble taking say the input of the user and converting it to the right type of format i need in order to compare them. An example is say I have the number 1234 and that is assigned to the variable x and the string value of that …

Member Avatar for vegaseat
0
113
Member Avatar for himmat.m4

I want to change image at click event in jsp. suppose I have img1 and img2, whenever I click on img1 thn display img2 and again click on img2 then display img1. so tell me how to do that. code is [code]<%-- Document : imgChange Created on : 26 Aug, …

Member Avatar for javaAddict
0
259
Member Avatar for D boss

hi guys, i am working on a new java program, the program consists of a ball, bouncing around the applet, i have created button to control the ball, one to stop the ball bouncing, another to resume the ball boucing and another to reverse the direction of the ball bouncing, …

Member Avatar for jadhav vijay
0
2K
Member Avatar for TrueVb.NetNoob

Hi Everyone! I have made form 5 to become a simple storage system to check for item stocks plus adding, and started to code with arrays. heres what I have so far. [CODE]Public Class Form5 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckButton.Click Dim item(2) As …

Member Avatar for TrueVb.NetNoob
0
99
Member Avatar for Naveed_786

I am using date and time picker to get current date but when i get date from date and time picker first time it gives me current date and time i save the record and when i try to get date and time second time without unloading the form it …

Member Avatar for pritesh2010
0
89
Member Avatar for rouse

I have a table with 3 columns, a record_num, a date field, and a description. In the date field there can be some rows that have a distinct date and others that have the same date. I wanted to take a look at all the rows that have dates that …

Member Avatar for mwasif
0
112
Member Avatar for hericles

Hi, I'm having trouble getting the Ajax Toolkit autocomplete extender to work. I have the web service set up as its own file in the same project and calling that alone works - the correct list of results is output as xml. But when entering text into the textbox nothing …

Member Avatar for hericles
0
138
Member Avatar for TrueVb.NetNoob

Hi Everyone! I have been experiencing problems in displaying my varibable Gcoins in form3 from form1. here is what i have in my form3 code. [CODE] Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim frm1 As New Form1 Dim points As Integer gcoinsamount = Val(frm1.Label2.Text) …

Member Avatar for TrueVb.NetNoob
0
260
Member Avatar for bomko

[CODE]from PIL import Image, ImageDraw from random import randint picture = Image.new("RGB", (600, 600)) artist = ImageDraw.Draw(picture) for i in range(100): x1, y1 = randint(0, 600), randint(0, 600) x2, y2 = randint(0,600), randint(0,600) color = (randint(0, 255), randint(0, 255), randint(0, 255)) width = randint(2, 20) artist.line([x1, y1, x2, y2], color, …

Member Avatar for bomko
0
2K
Member Avatar for ceeandcee

Good afternoon, Instead of starting a new row every time I have new data, I want to simply put a line break. I have put in <br> but it makes the page too long as it yields a break each time and not just the times that it has data. …

Member Avatar for chrishea
0
262
Member Avatar for glenak

This isn't a problem, just a curious question. I'm using the password text field in my gui and basically, this: [CODE] String pin = new String(passwordField.getPassword()); Person p = new Person(); p.setPassword(Integer.parseInt(pin)); [/CODE] leads to a number format error, despite that I didn't enter a text. But this: [CODE] String …

Member Avatar for NormR1
0
130
Member Avatar for heshanm

Hi, The supervisor of my system wants to modify customer details. I created this modify_form.php page. But when i modifies one record of a particular customer it [B]affected to all the records[/B]. Therefore all the records contain same thing..... Can anyone give me the correct coding which modifies only that …

Member Avatar for hielo
0
133
Member Avatar for bettybarnes

help me guys.. how do i add picture? [CODE] Private Sub NavigateRecords() txtPersonnelID.Text = ds.Tables("Personnel").Rows(inc).Item(0) txtFirstName.Text = ds.Tables("Personnel").Rows(inc).Item(1) txtLastName.Text = ds.Tables("Personnel").Rows(inc).Item(2) txtMiddleName.Text = ds.Tables("Personnel").Rows(inc).Item(3) txtGender.Text = ds.Tables("Personnel").Rows(inc).Item(4) txtAddress.Text = ds.Tables("Personnel").Rows(inc).Item(5) txtContactNo.Text = ds.Tables("Personnel").Rows(inc).Item(6) txtEmailAdd.Text = ds.Tables("Personnel").Rows(inc).Item(7) txtBday.Text = ds.Tables("Personnel").Rows(inc).Item(8) txtDept.Text = ds.Tables("Personnel").Rows(inc).Item(9) txtPosition.Text = ds.Tables("Personnel").Rows(inc).Item(10) txtHiredDate.Text = ds.Tables("Personnel").Rows(inc).Item(11) txtRenewalDate.Text = …

Member Avatar for lolafuertes
0
119
Member Avatar for glenak

Hi, let's say I have a program in my external hard drive and there's a code in my app that references a picture or a file in that hard drive, how do I make it so that when I take my external hard drive to another computer, even though the …

Member Avatar for glenak
0
64
Member Avatar for James0l9l

I want to create a list which will list coordinates on a 50 by 50 grid. I have been able to set the x-value from 0 to 49, while maintaining the y-value as 0. When I try to reset the x-value back to 0, and increment the y-value by 1- …

Member Avatar for peter_budo
0
177
Member Avatar for ceeandcee

Here is what I have [code] echo "<img src='/images/bar_".$row['teamA'].".jpg'>"; [/code] in this example teamA = irish What I want to output is <img src='/images/bar_irish.jpg'> I think it is a simple syntax. What am I missing?

Member Avatar for ceeandcee
0
136
Member Avatar for dre-logics

I use Visual Basic 8.0 and Windows 7 Prof. and Deskjet 720c To print a document i use [COLOR="Green"]PrintDocument component [/COLOR] I want to Check status of local printer My problem is, if de printer if [COLOR="Red"]offline[/COLOR] of [COLOR="Red"]not connected [/COLOR]every print job is then automatically sent to the print …

Member Avatar for lolafuertes
0
656
Member Avatar for James0l9l

I want to create a list which will list coordinates on a 50 by 50 grid. I have been able to set the x-value from 0 to 49, while maintaining the y-value as 0. When I try to reset the x-value back to 0, and increment the y-value by 1- …

Member Avatar for griswolf
0
261
Member Avatar for mgorecki

Hello, I'm new to VB .Net and I've searched for this info in the help files, but couldn't find it. When I save a project it automatically saves it to "C:\Documents and Settings\[I]username[/I]\Local Settings\Application Data\Temporary Projects\[I]filename[/I]". I want to be able to set this path ahead of time to where …

Member Avatar for mgorecki
0
118
Member Avatar for myd5258

Hi guys; I wrote a function that inserts a new integer in the ordered link-list. If the number to insert exist in the link-list then the insertion WILL not take place, instead a message “Number To Insert Exists !!” will be produced. Can some1 help me to find out the …

Member Avatar for myd5258
0
115
Member Avatar for Jazerix

Hey there So I'm working on a little program, the thing is, it needs admin perms in order to work successfully, and I have no idea how to make the application request the admin perms on startup, any idea? [CODE]<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/> <trustInfo …

Member Avatar for Sodabread
0
146
Member Avatar for Kanoisa

Hi guys. Been coding away today decided that i would update an old program i did a while ago which was the base of an organisor application. So today i converted it to use STL instead of my hardcoded double linked class. I used list<> as my original implimentation was …

Member Avatar for Kanoisa
0
326
Member Avatar for snehil_khanor

Hey, Can any one help me with this problem.. i'ld really appreciate ne help.. wat i wanna do is.. dat i want to dynamically create objects on a way that they could be created in a loop.. so i thot an array of object could help so i went ahead …

Member Avatar for snehil_khanor
0
159
Member Avatar for heshanm

Hi guys, This is very important. The supervisor of my system wants to close accounts which contain zero balances for long time periods. There is a separate page contains [B]ID and Account Number[/B].This is included in a form and a "close account" button is there. When he clicks on that …

0
76
Member Avatar for pwnmercury

hello im new with python and i want to you ask a question. is there any function like switch on C++ ?

Member Avatar for vegaseat
0
236
Member Avatar for arctushar

Hello I m a civil engineer. I want to develop a site for civil engineering. But have no time for detailed level of php. Can anybody give the basic/ most important list of php function. I would be better if the list contain with examples.

Member Avatar for arctushar
-1
203
Member Avatar for guru_iyer

I've been trying to display the equivalent decimal number of the input binary number. I tried the below piece of code but am not achieving the result. I don't seem to understand why? Please Help!! [CODE] #include<stdio.h> #include<conio.h> #include<math.h> int a=0; int main() { char bin[8]; int i=0,len=0,r=0,w; printf("Enter a …

Member Avatar for volvo877
0
521
Member Avatar for sami.asanga

Hi, I need to print all the orders with the month in the Monthly Order Report.How should I do it.Can someone tel me how to do it... This is my query.Order date should equal to the relavent month... [code] $this->result = mysql_query("SELECT * FROM tbl_order,tbl_order_items WHERE tbl_order.order_id=tbl_order_items.order_id AND tbl_order.order_status='accepted' AND …

Member Avatar for mwasif
0
84
Member Avatar for Auraomega

I've never used inline assembly shockingly, and I'm just wondering how/if I can do something. Bit of background; I'm coding a basic OS kernel, I have various subroutines written in assembly and amongst others I have a puts subroutine that is an attempt at mimicking puts in C. In order …

Member Avatar for Auraomega
0
124

The End.