199,111 Archived Topics
Remove Filter ![]() | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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++) { … | |
///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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 , … | |
-->>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 … | |
any one help me in completing my program on FLAMES game i am not getting how to complete it please help me | |
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... | |
![]() | 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 … |
<?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> … ![]() | |
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 … ![]() | |
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. … | |
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. | |
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]); … | |
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 … | |
`Inline Code Example Here` **how to run the c program on note pad shall any one give me answer** | |
to license my Android app, must use google api(in Project Built) even not use maps etc??? | |
![]() | 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 … ![]() |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
i have a signup form which needs user to submit his academic information also. academic info table in database is like this : tbl_acadinfo  now how would i fill this table via asp.net (as a part of signup form with title ACADEMIC INFO) ? bcz educationlevels are many … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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); }; | |
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 … | |
//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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … |
The End.