64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Mve83

Hi I am somewhat a noob when it comes to php and have stumbled on something I cannot see how to do. I have a script which plugs into joomla and extracts orders from redshop using direct mysql access. This means that the source code is all mine on my …

Member Avatar for Mve83
0
1K
Member Avatar for bettybarnes

hi i'm a vb.net programmer trying to learn C# for now. Let me ask you about simple questions in C# How do you do this in C#? this is a vb.net code: [CODE] TextBox1.Text = 1 [/CODE]

Member Avatar for Mitja Bonca
0
187
Member Avatar for Ravic85

I'm having a bit of trouble figuring out what i'm doing wrong with my overloaded operators Header file [CODE]#ifndef SavingsAccount_H #define SavingsAccount_H #include <string> using namespace std; class SavingsAccount { friend istream &operator >>(istream& input, SavingsAccount & ); friend ostream &operator <<(ostream& output, const SavingsAccount & ); public: SavingsAccount(); SavingsAccount(string, …

Member Avatar for Ravic85
0
1K
Member Avatar for soham.m17

I'm using ArrayList. But the problem is that the indexOf function is not working in a for loop. It's showing 0 for all the elements or objects. Code goes like that for a FOR loop : [CODE]for(or_data or : counts.or_gates) { if (or.isHit(x, y)) { mutual=counts.or_gates.indexOf(or); set_move_cursor(); or.addX(dx); or.addY(dy); System.out.println("Got …

Member Avatar for soham.m17
0
222
Member Avatar for Mopikope

I am having a problem with trying to copy a "char array to an int array". I have a code to randomly picked an amount of character and (in progress) print out how many occurrences, even if it's not in there a letter has. For now I'm only doing upper …

Member Avatar for Mopikope
0
120
Member Avatar for Zssffssz

Well I noticed recently that the more unusual bool operators arnt there. How would I use them? Ex: xand, NAND, nor, etc.

Member Avatar for mike_2000_17
0
102
Member Avatar for cvanithakpm

plz help me to know..whether this pointer in c++ is public access or private access

Member Avatar for gerard4143
0
119
Member Avatar for kalyanchandra

Hi, I have a text file with content as [CODE]---------------------------- BEGIN REPORT: report1 r1a r1b END REPORT: report1 ---------------------------- BEGIN REPORT: report2 r2a r2b END REPORT: report2 ----------------------------- BEGIN REPORT: report3 r3a r3b END REPORT: report3 -----------------------------[/CODE] How can I read and Overwrite this text file such that "BEGIN REPORT: …

Member Avatar for ddymacek
0
140
Member Avatar for OmniX

I have tried to research this and im always running into old articles. What I have come across are (possibly more): md5, sha1, hash, crypt and mcrypt Now I have used md5/sha1 before and have 32/40 character long strings the others I dont know too much about but in short, …

Member Avatar for Stefano Mtangoo
2
2K
Member Avatar for cisumma

Hello I was working through a Netbeans tutorial : [URL="http://java.sun.com/developer/technicalArticles/java_warehouse/single_jar/"]http://java.sun.com/developer/technicalArticles/java_warehouse/single_jar/[/URL] I am having a problem understanding adding my properties and xml dependencies contained in an xml dir in my project (Please find screen print of dir) I jar my app and it can not find these files or dir. java …

0
126
Member Avatar for mfozmen

First of all i wanted to say hello to Daniweb community because this is my first thread here. I need to design a web site that clients can easily drag & drop pre-defined user controls and create a simple web site for themselves. Users will also upload their data to …

Member Avatar for mfozmen
0
320
Member Avatar for c-tech

Hi everyone, Please assist with this issue that I'm having. I am trying to create a simple web interface to allow me to send sms's from a browser window. I am using gammu ([url]http://wammu.eu/[/url]). I am able to execute the code below when using the php cli on the linux …

Member Avatar for c-tech
0
506
Member Avatar for prit005

Now I want to add the number of picture boxes to windows form dynamically. for eg. when user put the input in text box such as user enter 4 then Four picture boxes are added to the form at run time. also I don't know how handle the context menu …

Member Avatar for Mitja Bonca
0
136
Member Avatar for 68thorby68

I'm using PHP 5 and apache 2.2 on XP prof, but did not install zip extension during the initial php/apache installation. I have downloaded and extracted Pecl-5.16-win32zip package and extracted the contents (including php_zip.dll) to c:\PHP\ext. I have also amended the php.ini and included the line extension=php_zip.dll I have checked …

Member Avatar for rajibmaity
0
2K
Member Avatar for swathys

Hi, How do i write to xml format for the below data. This is sample parsing data that i need to save in xml format. Please guide me ! [CODE]<field id="0" value="0210"/> <field id="2" value="00"/> <field id="3" value="320000"/> <field id="4" value="000000068519"/> <field id="5" value="000000000000"/> <field id="7" value="5465464545"/> <field id="11" value="000021"/> …

Member Avatar for swathys
0
203
Member Avatar for soham.m17

I am building a Circuit Editor using Java. I'm now at very first stage. Now I'm building a simple editor like Paint. I've implemented a drawing-pad where you can draw straight line and continue the line until you click an right click, by a "WIRE" Button click in the frame. …

Member Avatar for soham.m17
0
4K
Member Avatar for Ehtesham Siddiq

Hi, I have a simple query but im just not able to get it right. Have a look at my sample code below [CODE] Sub Function1 My Code Here Function2(Year,Month) End Sub Sub Function2(Year,Month) Dim Str as String() for 1 to 30 Dim MyDate As New Date(Year, Month, i) Str …

Member Avatar for Mitja Bonca
0
541
Member Avatar for hugo17

Hello, I'm working on a litle program. While working I stumbeled upon some problems. I would like to check if two Arrays are equal to each other. I tried this one, but it didn't work properly. [CODE] int control(int x1,int y1,int x2, int y2)//x1,y1 and x2,y2 -> coordinates of a …

Member Avatar for D33wakar
0
114
Member Avatar for havoc433
Member Avatar for havoc433
0
166
Member Avatar for nickliutw

I'm running to compiler error while I'm trying to use Enum to create a program that display a deck of cards. The compiler mistake is "Cannot find symbol", but I did call the constructor and use method call to call the method in card class. It still give me compiler …

Member Avatar for ~s.o.s~
0
204
Member Avatar for ssreevidya.m

Hai, I Have an sp like this: [CODE]ALTER procedure [dbo].[SP_ClassInsertion] @ClassType varchar(50), @ClassTypeId varchar(50), @ClassName varchar(50), @SchoolId varchar(50), @ClassID varchar(50), @BatchId varchar(50), @Userid uniqueidentifier, @ClassCategoryId varchar(50), @SchoolClassCategoryId varchar(50) as declare @STATUS int begin if exists(select Class_Id from SCH_Class where Class_Name=@ClassName and School_Id=@SchoolId and Is_Valid=1) begin set @STATUS=0 end else begin …

Member Avatar for ssreevidya.m
0
303
Member Avatar for walid86

hi, i have a panel with controls and richtextbox's within it. When the user clicks the save button, i take panel1 and DrawToBitmap, then add the image to a pdf created using abcPDF7. My problem is that i have recently change textbox's with richTextBox's to enable the user more functionality, …

Member Avatar for walid86
0
363
Member Avatar for jdm

I'm working on a program that will find the prime factors to an unsigned integer that is entered by the user. I just have to make sure the program can handle a number up to 1000. I'm writing assembly in x86. I have already got a prompt for the user …

Member Avatar for jdm
0
4K
Member Avatar for Syrne

Hey guys. I am getting a fair amount of errors when trying to create this menu. I am not sure whether or not I am going about it correctly. Without further adieu: [CODE]package assignment.pkg2; import java.util.Scanner; public class Assignment2 { public static final int MAX_NUM = 10; public static void …

Member Avatar for Taywin
0
153
Member Avatar for lbgladson

I have an assignment to reverse the sequence of coins in a purse. I cannot use any methods from the Collections or Arrays Class. I have the following code but have no idea what to do from here to get the purse contents to reverse. [code] import java.util.ArrayList; public class …

Member Avatar for Taywin
0
172
Member Avatar for Wilha

My goal is to output monthly cost insrance for entered employee id, but my program keeps giving me a error idk why [CODE]import sys #empfile=raw_input("Enter Emp.file Name:") #emp=sys.argv[1] #print emp #usage : run it as follows from command line. #python db.py employee.txt InsurancePlans.txt InsurancePolicies.txt def dict2(lines): dict={} for l in …

0
86
Member Avatar for TheFearful

Hey, guys. I'm new to this forum and this is my first post ever on this site. I am currently a freshman in Penn State University and I am having trouble with my C++ class. I have a group project but have no idea where to start with this program …

Member Avatar for TheFearful
0
463
Member Avatar for asif49

For the website I'm working on, I've included a "search the site" section. Once the user searches a keyword or a phrase, the php processes all the content in the mysql database and prints out the title, content and a link to the page with the article containing that specific …

Member Avatar for asif49
0
115
Member Avatar for minimi

Here is the instruction to the assignment: [url]http://dl.dropbox.com/u/43732846/Instruction.txt[/url] I think I got up to the part to initialize array and set length to 0 but I'm not sure how to do a for loop to print. I tried like strlen(month), printf(month[i]), etc, but none of them seems to work. And …

Member Avatar for hkdani
0
135
Member Avatar for Archenemie

I would like to use a non-final variable in an On-click listener and converting the variable to final is not an option because the variable is an ArrayList<String> which i will be altering and editing throughout the coarse of the program. This is an overview of the code I have …

Member Avatar for Archenemie
0
1K
Member Avatar for wissam.ashkar

Hello, I am updating a DataGridView using [CODE](dAdapter).Update(dTable);[/CODE] How to check if update is done successfully in order to display a message box.

Member Avatar for wissam.ashkar
0
80
Member Avatar for mehargags

Hi all, I'm having trouble getting POST value from dynamically generated txtinput[] and MultiSelect since they form an array. I read so many articles but I get confuse.. a short form of my code is given below.. Pls help me with best way how I can get array values in …

Member Avatar for diafol
0
363
Member Avatar for -==Zero==-

Hello I Need To Know how to Retrieve Random Data From A Table In Database i have a table called actiongames i need a code to retrieve random data from this table

Member Avatar for -==Zero==-
0
120
Member Avatar for dfn77

NOTE: If this is too long, scroll to the last paragraph where hopefully I've summarized my problem. I have a simple problem. I have two tables, one is for the "header" and one is for the "details" of the header. I need a view to return all details and the …

Member Avatar for adam_k
0
200
Member Avatar for extemer

hello friends may peace on you ! I have a little problem in my code.i want display the fetch value from db in a textfield after pressing load button.i am using ajax post method for it but cant figure it out what the problem.please help me ! Thanks, [B]Index.php[/B] [CODE] …

Member Avatar for ddymacek
0
213
Member Avatar for jen140

Hello. I've been doing a small application that will go (using only unsigned integer values) from 0 to 4026531840 and print them out. My code is next: [CODE]#include <stdio.h> #include <inttypes.h> int main(void){ uint64_t cnt; for(cnt=0;cnt<=4026531840;cnt++){ printf("%d\n",cnt); } } [/CODE] The only problem that i have is the last numbers …

Member Avatar for jen140
0
187
Member Avatar for phfilly

Hi All! I got a problem with one of my files where I can't upload a file to my database. I want to save the path in the db but it gives me an error and says the "Filename cannot be empty". In my .html [CODE] Upload a profile picture(50px …

Member Avatar for diafol
0
194
Member Avatar for gahhon

[CODE] public class Planet { private String planetName; private int travelDay; public Planet(){ planetName = "Earth"; travelDay = 365; } public Planet(String planetName, int travelDay){ this.planetName = planetName; this.travelDay = travelDay; } public void setPlanetName(String planetName){ this.planetName = planetName; } public String getPlanetName(){ return planetName; } public void setTravelDay(int travelDay){ …

Member Avatar for gahhon
0
130
Member Avatar for stereomatching

[code] void test(std:shared_ptr<some_type> A) {.....} [/code] would make a copy of a shared_ptr what if we pass a shared_ptr into a function like [code] void test(std:shared_ptr<some_type> const &A) {.....} [/code] Is this safe? Thanks a lot

Member Avatar for stereomatching
0
190
Member Avatar for Squit

hello i have a problem with the % sign in to the url links for example my url is [code]http://www.site.com/1411/The-trafic-is-increased-to-20%-this-year[/code] that % is used like a variable in browsers and is not clickable in IE 8 or it gives errors in others browsers! removing % is not an option because …

Member Avatar for Squit
0
1K
Member Avatar for phfilly

Ola! I'm still kind of new with the whole assembly language and just need some help with this program i'm writing. What I want it to do is to ask a question -like for a number and then store that inserted number in a variable. And then test whether its …

Member Avatar for AceStryker
0
1K
Member Avatar for fredfletcher

[I][B]Hello,[/B][/I] I would have contacted the website's owner, but there's no email on the site. I'm looking for someone's help on this. By looking at the code below, the link(s) open in a new window, and wanted to know if there's something that can either be added, modified or deleted …

Member Avatar for ddymacek
0
235
Member Avatar for Zssffssz

When on the digital mars website he advertzed that their compiler could use all 80bits of a 32bit machine. What the heck does this mean?

Member Avatar for Narue
0
63
Member Avatar for linhj

Hi All, I am tring to using the below function to read in a .txt file, which consist of a 10x10 matrix number. I just cannot find out where goes wrong, it appears such a funny number -858993460... [CODE]void readinput(int in[][MAXCOLS]) { int row ,col,ip; //Declare row,col, ip as int …

Member Avatar for linhj
0
3K
Member Avatar for Efficience

I have written a code for checking vfork in unix. But I am getting the ambiguous behavious. When I am using exit(0) in child process , output is fine i.e; output :- Before fork I am a child My name is parent child PID=> 23133 kValue => 2 ] But …

Member Avatar for Efficience
0
296
Member Avatar for gomedigap

Hi all. I've been trying to get this code to post to a https url for some time without any remedy. I'll give you all a basic rundown, I have a site that we're trying to generate leads off of, and we have a 3rd party crm system that we …

Member Avatar for gomedigap
0
6K
Member Avatar for Zssffssz

Ok simple question. Google didn't bring up much and I need this. This is the question: How do I interact with non-text files in a simple console app?

Member Avatar for vijayan121
0
175
Member Avatar for nikita.

I want to write a shell script to automate the ftp session, in that it should take the inputs like the server ip , username , password from a different file who path i'll pass. and also the validations that if the server path exits or not.

Member Avatar for nikita.
0
207
Member Avatar for i2u2me

Why do you think the Java language chooses to treat file data as a stream rather than as a single object?

Member Avatar for i2u2me
0
75
Member Avatar for rajandass65

hi i am working on db design of multilingual site. For creating multilingual site we usually use xml or different col in table represting language. I am thinking of using diferernt db for each languge,it will simplifies many things. so my question is that, is this thing of using muliple …

Member Avatar for smantscheff
0
81

The End.