199,111 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for phphit

I am really in mess as I am unable to solve problem with Smarty Multi Dimension array. Below is the way I want to execute Smarty. First of all I will list all customers. Than I want list of all items purchased by that customer. I have two tables inside …

Member Avatar for lps
0
524
Member Avatar for Secone

Hello, I'm trying to have my program locate any duplicate strings in an array, say, there were two instances of the word 'man', it would add 1 to the Word Amount of that word, and move the duplicate to the back of the array in some way. The problem is, …

Member Avatar for vijayan121
0
242
Member Avatar for Riu 2009

how can i let image overwriting when uploading? and if uploading an image titeld different how can i make it to change to specific file tite?im trying to make an image replacement to change images on the web page like for example logo. how can i make the file name …

Member Avatar for Riu 2009
0
311
Member Avatar for daino

My initial thoughts on the default constructor are that it was called automatically. From what I can see, it seems that this is so but a constructor called automatically doesn't initialize int or char variables for exampe, to Zero as I originally thought. It appears that they initialize the variable …

Member Avatar for vijayan121
0
301
Member Avatar for sythez.orgz

Can you guys help me with this little thing. On a a form, i have a textbox1 and add button. If i click the add button, it will check if the textbox has a data and i am already done with that. Now my problem is, if it has a …

Member Avatar for Reverend Jim
0
110
Member Avatar for r0vanz01

I am trying to find the minimum number when the user enters any 5 numbers I am not sure why this code is not working, every time I run this function I always get 0. Can someone please tell me what is wrong! int i; int num1 = 5; int …

Member Avatar for r0vanz01
0
189
Member Avatar for pkfx

Im trying to increase a dynamic array by 1 element and assign a integer variable to it but recieve a heap overload error. Any advice would be appreciated. void CardSet::AddCard(int cardNum) { int* tmp; nCards++; tmp = new int[nCards]; for(int i = 0; i < (nCards - 1); i++) { …

Member Avatar for Ancient Dragon
0
186
Member Avatar for dreday92

///Can someone tell me why I am having an issue calling my functions?!?!?! #include <iostream> #include <iomanip> #include <string> using namespace std; struct Players { string name; int numPlayer; //Number of the Player int numPoints; //Point's scored by Player }; const int SIZE = 50; const int MAXPLAYERS =3; typedef …

Member Avatar for Ancient Dragon
0
174
Member Avatar for cee.gee.50

Hi everyone. I have not done any type of coding in some years and can use some help with a simple yet frustrating task. I am trying to allow registered users to upload a "profile" photo to the server and insert the path into the database. I would like to …

Member Avatar for arrgh
0
247
Member Avatar for weemy

i have tow tables, posts and sections, i want to get the last 10 posts WHERE section = 1, but use the 10 results in different places, i make a function function sectionposts($section_id){ mysql_set_charset('utf8'); $maxpost1 ="SELECT max(id) from posts WHERE section_id = $section_id ORDER BY ID DESC LIMIT 10"; $maxpost10 …

Member Avatar for weemy
0
208
Member Avatar for sean.downes.96

Hello. Ive got a listview with columns etc and ive managed to sort the coding out so when i open a form, fill in the details in the relevant box then press save it transfers some of that data into the relevant columns, which is great. However i would like …

Member Avatar for sean.downes.96
0
107
Member Avatar for Carpetfizz

Hello, I learned a lot of basic C++ programming through Code Blocks and I think it is a fantastic IDE. I decided to switch to VS2010 Professional for various reasons, and because I am able to get it free from Dreamspark. I had created another post a while back similar …

Member Avatar for Suzie999
0
167
Member Avatar for corby

when i execute this code and lets say i enter "hello", then "world", and then "dude", when i traverse through the list, it only prints out: dude dude dude and not this: dude world hello Any help would be much appreciated! #include <stdio.h> #include <stdlib.h> struct Node { void *data; …

Member Avatar for WaltP
0
120
Member Avatar for cafegeo

Hello everyone. I am starting a class that utilizes Java for software design. I have no previous java experience, although I have taken c++ prior to this and appreciate all the help I have received in the past. I also would like to thank everyone in advance for all your …

Member Avatar for NormR1
0
215
Member Avatar for ceck30s

I have a text file that contains something like this: # Comment # Comment # Comment # Comment # Comment Comment # Comment #Raw SIFs at Crack Propagation Step: 0 # Vertex, X, Y, Z, K_I, K_II, K_III, 0 , 2.100000e+00 , 2.000000e+00 , -1.000000e-04 , 0.000000e+00 , 0.000000e+00 , …

Member Avatar for hughesadam_87
0
338
Member Avatar for Bile

-->>Hi everyone,I'm having this problem with updating records in my application my code is: SQL = "UPDATE Ministers SET User_Name='" & txtUser_Name.Text & "',Password='" & txtRetype_Password.Text & "',Prefix='" & cmbPrefix.Text & "',Passport='" & NewPicture_Name & "';" Call dbConnect Conn.Execute SQL Conn.Close Set Conn = Nothing -->>The SQL and Conn variables …

Member Avatar for Bile
0
1K
Member Avatar for sharathg.satya

any one help me in completing my program on FLAMES game i am not getting how to complete it please help me

Member Avatar for NormR1
0
2K
Member Avatar for javalover

Hi friends, I want to create an auto-evaluator for java.. If I submit java program, it has to run and show the output or exceptions(if so).. I tried in some simple ways, it doesnt works out. please give some suggestions how to start and progress... Thanks in advance...

Member Avatar for NormR1
0
773
Member Avatar for arcticM

I have a table like this: tableA: id, a, b, c sample data: 1, x, y, sample1-get-by-y 2, x, y, sample2-get-by-y 3, x, '', sample1-get-by-x 4, x, '', sample2-get-by-x 5, '', '', saple1-general 6, '', '', saple2-general I want to get the data like this: if I have data where …

Member Avatar for smantscheff
0
141
Member Avatar for monish.punjabi

<?php include("connection.php"); $sql="UPDATE detail SET 'user_name'='".$_POST['user_name']."','password'='".$_POST['password']."' WHERE 'id'='".$_GET['id']."'"; $result=mysql_query($sql); mysql_fetch_array($result); ?> <html> <head> <title>login</title> </head> <body> <form method="post" action="index.php?id=<?php $_GET['id']; ?>"> id:<input type="text" name="id" value="<?php echo $_POST['id']; ?>" /><br/> user_name:<input type="text" name="user_name" value="<?php echo $_POST['user_name']; ?>" /><br/> password:<input type="password" name="password" value="<?php echo $_POST['password']; ?>"/><br/> <input type="submit" value="submit" /> </form> </body> …

Member Avatar for diafol
0
133
Member Avatar for vijayram

Hi everybody, I created form.the form fields records are saved in database.if select <div id="privacy_create" > this field add some datas in another table [PrivacyProfilePlanpeople] i have no issue.but records store only in first table. privacyprofileplanpeople table no records are added. what is the problem. anybody plz help me. public …

Member Avatar for diafol
0
148
Member Avatar for Dark007

I wrote a server class and a client class. again i wrote 4 different JFrame class which were connected with each other and some Puzzle game codes were written on this classes. I want to add those classes with the server. and want to play those games from the client. …

Member Avatar for Dark007
0
190
Member Avatar for cumadhu

Hi All, I have specific requirement in C#. I have to return two values from a single variable/method. How to do it? If you can help me, you are most welcome. Thanks and with regards, Madhusudhan.H.K.

Member Avatar for Michael27
0
549
Member Avatar for Goldfinch

I have this code: static String format(String number, int decimalLength) { char[] decimal; System.out.println(number); String[] formatA = number.split("."); System.out.println(formatA.length); StringBuilder cents = new StringBuilder(""); int dollars = 0; dollars = Integer.parseInt(formatA[0]); decimal = formatA[1].toCharArray(); for (int i = 0; i < decimal.length; i++) { if (i < decimalLength) { cents.append(decimal[i]); …

Member Avatar for stultuske
0
183
Member Avatar for riccardo-m

Hi, I've been trying to send a long integer from an Arduino to my C++ program via the serial port. There seems to be many examples of this when i search, but I've not had much luck except for one example. This example seems to work, but not when I …

Member Avatar for riccardo-m
0
3K
Member Avatar for chandrasekhar p

`Inline Code Example Here` **how to run the c program on note pad shall any one give me answer**

Member Avatar for deceptikon
0
191
Member Avatar for lse123
Member Avatar for I_m_rude

The publicity team for Technozion is in full swing. Like every year, this time too, the team is planning to visit N different colleges in India. This publicity campaign shall involve the members of the team giving presentations about Technozion. For the publicity trip, the team has decided to come …

Member Avatar for I_m_rude
0
280
Member Avatar for KyleSmith10

Hi, I've two tables, one called users and one called playerweapons. In `users` it carries information and is defined by a Username field. In `playerweapons` it has the same define with using Username. I want it so when I update the Username field in `users` it will then update the …

Member Avatar for urtrivedi
0
217
Member Avatar for rtyui

Hi. I am trying to assign the value returned by asctime(struct tm \*) to a string. But when the program is run, I got segmentation fault. GDB shows: Program received signal SIGSEGV, Segmentation fault. 0x0000003e6d6aa192 in __offtime () from /lib64/libc.so.6 What could be the reason? Can't we assign the value …

Member Avatar for deceptikon
0
384
Member Avatar for pattilupwned

Hello, I am having trouble passing a file into parallel arrays. Based on the code below, I get a bunch of jumbled numbers on my cout screen that don't even show up in the input file. I have attached a PNG of the console output. I am at a loss …

Member Avatar for Suzie999
0
439
Member Avatar for maple23

I am trying to learn multi-dimensional arrays in C/C++, but am not having much luck. I think I understand the way this type of array works, but I am having problems. [code]#include <stdio.h> #include <stdlib.h> #define MAX_NAME_COUNT 10 #define MAX_NAME_LEN 100 int main(){ char *names[MAX_NAME_COUNT][MAX_NAME_LEN]; int x; printf("enter the names …

Member Avatar for richard_arnold
0
769
Member Avatar for consc197

I need some help with the following. I have a form called frmMain that has a couple of icons, one of the icons when clicked loads frmNotes within a Panel, frmNotes has a ListView and i want to load data from a Microsoft Access Database Table into the ListView I've …

0
87
Member Avatar for HunainHafeez

i have a signup form which needs user to submit his academic information also. academic info table in database is like this : tbl_acadinfo ![tblacademic](/attachments/small/3/tblacademic.jpg "align-left") now how would i fill this table via asp.net (as a part of signup form with title ACADEMIC INFO) ? bcz educationlevels are many …

Member Avatar for HunainHafeez
0
194
Member Avatar for Mubusher

Salaam to everyone! dear i am having a problem i am having a form and datagridview now the problem is that when form load and iam write something like saniplast so data of datagriview select similar saniplast when i pressed enter so the datagridview_keypress coding cannot execute here is coding …

Member Avatar for niravn
0
651
Member Avatar for rotten69

Hi everyone, I just found something interesting in my code but I ain't sure why JavaScript. var input= 0; // But in my case, the input variable is getting the value from a field in a form if(!Number(input)){ document.write('it is not a ZERO'); } This is something similar to my …

Member Avatar for rotten69
0
148
Member Avatar for nithyananthanaiker

Hello mates, Currently Im in my 4th year of Bachelor studies for Computer Science majoring in Information Systems. For this final year, I will need to do a project that will enable me to complete my studies. As for that, I need some of your guidance in choosing the right …

Member Avatar for nithyananthanaiker
0
217
Member Avatar for HunainHafeez

In sql server 2008, i have a store procedure which has insert statement , now i want to insert multiple records at a time into table via EXEC. MY Store Procedure: insert into tblUser(fullname, email, loginID, password, DOB, question, answers,doc,roleid) values (@fullname,@email,@loginID,HASHBYTES('sha512',@password),@dob,@question, @answers, GETDATE(),@roleid ) Now how to insert multiple …

Member Avatar for HunainHafeez
0
244
Member Avatar for tahirkhanafridi

I am getting Copying issue with my code, when i use only one single url it works but if i get multi url from explode function and call them it gives me an error please help me i have a problem in my copy() function let me show my code. …

Member Avatar for urtrivedi
0
159
Member Avatar for Summer995

I have come across an error code, after building during debug, it shows: System.NullReferenceException was unhandled HResult=-2147467261 Message=Object reference not set to an instance of an object. This problem is located at the end of the program, on the else if statement. Any suggestions as to how I could easily …

Member Avatar for Summer995
0
492
Member Avatar for milkypolar

Hi all, just wonder is there any way to have a constructor parameters that having another classes with parameter? for example like class Player { public: Player(char = 'X', char = 'O'); }; class Board { public: Board(int, Player); };

Member Avatar for milkypolar
0
113
Member Avatar for HunainHafeez

i have this page in hard form and i need to make a table for it in DataBase (Sql Serber 2008), i tried alot but couldn't find any way to make table for it in data base. + i have also user table in DB, so userid should b also …

Member Avatar for HunainHafeez
0
134
Member Avatar for agachhayat

//This programm is for testing function overloading #include <string> #include <fstream> #include <iostream> using namespace std; class Text { string str; public: Text (); Text (string); string contents (); }; Text::Text (string st) { ifstream in (st); getline (in, str); } string Text::contents () { string ret; ret=str; return ret; …

Member Avatar for np complete
0
84
Member Avatar for Ahmed Sarwat

Dear All, I have a question about array which let me confused and I think it needs deep understanding of arrays. I would like to know why it is possible to use array of char as pointer without a fixed size and also without dynamically allocating memory for it and …

Member Avatar for WaltP
0
173
Member Avatar for Mahkoe

I've used malloc countless times, but as far as I know, reading and writing to memory that isn't expressly yours (which is in fact done by the malloc function) causes a segfault. If I wanted to make my own dynamic allocation functions my computer would probably just laugh at me …

Member Avatar for WaltP
0
240
Member Avatar for jumboora

Hi, I have two text files. Textfile1 has data line by line (50000 lines) and in each line, there are 500 numeric values. Textfile2 has only one column (only numeric data) which matches the first column of Textfile1. Textfile2 may have 5000 lines (Each line has one numeric value). Now …

Member Avatar for jumboora
0
161
Member Avatar for brihyn

First off, I'm really new to development...sys-admin is really my thing. With that said, though, I'm hoping this is just a simmple mistake I'm trying to write a nice little vb.net app with VS2010 to work as a photobooth. The problem I've run into is, when the user hits the …

Member Avatar for Reverend Jim
0
126
Member Avatar for melissa.kapolka

void getScores(float **scores, int num) Can someone help me understand what this means? Especially the **scores.... I know what a float is and that it is to get scores inputed in by the user. Thanks

Member Avatar for melissa.kapolka
0
97
Member Avatar for andigirlsc

I am having trouble getting MS Visual C++ to recognize my input for the 2nd getline I have listed. It already recognizes getline(cin, firstName) and allows for input, but won't recognize the second instance of getline. When the program gets to that line of output, it bunches the next two …

Member Avatar for deceptikon
0
389
Member Avatar for gujinni

Hi there. I have a problem in randomly falling an object. I want my program to randomly fall an image and I only have 1 image fall. The code I've used for falling an object is here. `Inline Code Example Here` Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As …

Member Avatar for gujinni
0
368

The End.