64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jacob.irwin

Earlier today I created simple database (user and login fields), login, and registration PHPs. Now I need help going about the following enhancement: In a nutshell: I am trying to create a registration form like facebook's with php code (and link it a mysql database)... 1.) My updated registration.php has …

Member Avatar for jkon
0
299
Member Avatar for selvis

Hii, After performing a logout action, my index page is continously refreshing, or it tries to load that page. Can you suggest a solution for this. It happens only on IE and I'm using struts1.3.8..... Thanks in advance

Member Avatar for selvis
0
271
Member Avatar for writerervin

i'm doing a rpg for fun but this one function is giving me problems. it compiles without problems, but when i test it, the hp stats done change. this is the code for the function. [CODE=c]void attack(dragon *d1, dragon *d2) { if(d1->getdef() < d2->getatk()) { d1->changehp(- ( d2->getatk() - d1->getdef() …

Member Avatar for writerervin
0
468
Member Avatar for ajinkya112

I need to know if it is possible to store click event of a button in a variable. I tried doing it but didn't get any solution. Please help Regards

Member Avatar for Momerath
0
187
Member Avatar for ajinkya112

Hi people I need some help here. Here is the CODE : [B]for Form1:[/B] [CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace practice { public partial class Form1 : Form { Form2 obj; public Form1() { InitializeComponent(); } …

Member Avatar for ajinkya112
0
123
Member Avatar for valter

Hi, I am seeking some advice about how to tackle a programming problem. I'm not wanting code just some suggested ways of handling the problem. I am trying to develop a program that displays images that have similar visual properties. For each image, and for each of the rgb colors …

Member Avatar for Momerath
0
109
Member Avatar for prajana

Hi. Can anyone help me with this code? I have a form which takes subject name, semester and class. I put this data in a database tables using 2 ADODC’s and the connections are as follows: ADODC3- LecturesAttended (StudentID, RollNo, Name, SubjectName) ADODC4- Student (StudentID, RollNo, Name,Class) I take studentid,rollno,name …

Member Avatar for AndreRet
0
128
Member Avatar for lianpiau

Who can teach me how to make Class to store database location When want to use just call the location. Everytime I will write again the connection. When database location is change, I will change the database location one by one. This is time consuming and difficult to maintain program. …

Member Avatar for lianpiau
0
478
Member Avatar for yoge911

hello guys, this is my first post asking for a help. Actually i am a PHP/Mysql developer. i am newbie to vb.net and i am trying to develop a application which asks for a password when the user tries to open any.exe file for example: [CODE]Private Sub Form1_Load(ByVal sender As …

Member Avatar for yoge911
0
228
Member Avatar for watery87

Hi all, I have some problems with my program, as it always compiles with segmentation fault after it run finishes. ANy help is appreciated [code] Program received signal SIGSEGV, Segmentation fault. 0x00375d37 in ?? () from /lib/tls/i686/cmov/libc.so.6 (gdb) bt #0 0x00375d37 in ?? () from /lib/tls/i686/cmov/libc.so.6 #1 0x0804992b in Chord::isValid(char*) …

Member Avatar for mike_2000_17
0
162
Member Avatar for anoopkh

Hi Sorry for my bad english. I am using a <tbody> section and I had set height of Tbody .But When the number of rows are small the height of the row will increase. I have tried to use max-height instead of height. But it doesn't works. I am using …

Member Avatar for anoopkh
0
104
Member Avatar for shawn130c

Hi all, I have been playing around with trying to create an english to pig latin translator. I am not really sure where to start, so right now I am just focusing on splitting a string and search for "A", if the word has "A" add "way" to the end …

Member Avatar for codeorder
0
940
Member Avatar for reemhatim

I'm doing a function that returns the index of the largest integer in the array it's an easy function.I've done it but I don't know why the output is always 10 although i want to return only the index of the largest number and here is my code: int MAX_INT(int …

Member Avatar for reemhatim
0
146
Member Avatar for AutoPython

Hey, I'm new to C++ (1 week, used to do Python), and it's very enjoyable, but I have an issue. In the following code: [CODE] int sizeofarray; cout << "Type size of array: "; cin >> sizeofarray; int myarray[sizeofarray]; ...........more code [/CODE] That isn't the code, but that is the …

Member Avatar for jonsca
0
166
Member Avatar for ajayb

#include<stdio.h> #include<string.h> void fn (int *ptr) { static int val=100; ptr=&val; } main() { int i=10; printf("%d", i); fn(&i); printf("%d", i); getch(); } The output of the above code is 10 10. why not 10 100? What is happening inside fn?

Member Avatar for Adak
0
100
Member Avatar for arezz09
Member Avatar for codeorder
0
130
Member Avatar for pseudorandom21

Is there a way to define a property with default get/set functionality for a variable?

Member Avatar for Momerath
0
99
Member Avatar for bkimbriel

Hey, I have basically zero knowledge of javascript, ajax, etc so any help is much appreciated. Basically I'm making a site that has an html option drop down list. I was wondering if there was a script out there / if one of you could write the script for me …

Member Avatar for bkimbriel
0
115
Member Avatar for Neversleepin

Hello, i would like to know how to implement the FileNotFoundException in my code. my code concatenate files from a Folder, it's working well even if there is no file. So i want to throw a message something like 'There is no file in the folder" If there is no …

Member Avatar for Neversleepin
0
178
Member Avatar for angelmichael4

Hi there, Does anybody know how to refresh a windows form after inserting into a database using a dataTableAdapter or any other method for that matter without having to close the form or use the fill method to reload the form? The problem with this is that you are taken …

Member Avatar for angelmichael4
0
112
Member Avatar for atticusr5

Hello all, So I am new to the whole STL List class, and I am a little confused. In the past I have always had two classes, a data class and a "linked list" class. So now I have a bit of a pickle when I try to make a …

Member Avatar for atticusr5
0
134
Member Avatar for Phil++

Hello, I'm trying to crate a login form that basically logs users in.. Now, I have created the database, and queried the table to see if the user exists.. But how do you check if the query returns whether it is or not? E.g. in PHP you'd use like.. [CODE] …

Member Avatar for Phil++
0
86
Member Avatar for pritpal.singh88

hi friends and seniors i want to play (add audio files, remove audio files,and other oprations) players(like vlc) through c++ coding in Ubuntu help me out. how do i do this. i don't even have idea... i know how to accept input from command prompt

Member Avatar for ravenous
0
422
Member Avatar for jonspeidel

so im taking the advice of 1ML, seems like a smart guy, and starting a second thread for the controversial, main calling, system calling, devil code, anyway i did take your guys advice and cut out the main calls and reduce everything to one fuction. however! ladies and gentlemen we …

Member Avatar for 1ML
0
399
Member Avatar for tomjrjones

hi i need help deleting files via php, i can delete files using php, but i want to be able to delete a file by typing in the name of the file. the directory i want to delete a file from is "users/" here is the unlink script i have …

Member Avatar for 84hd0ns
0
132
Member Avatar for FBG

I'm fairly new to PHP and I'm trying to create a simple database that gives the description and urls to articles I have put in my database. The problem is, when I put the column 'link' (with the resulting urls) between <a href> and </a>, the link is not yet …

Member Avatar for FBG
0
192
Member Avatar for Mr.BunyRabit

Hey there. I have a problem. But to make a Long story short, ill just say what i want to accomplish. I have a Datagridview, I can re-arrainge the data inside of it, by clicking the column headers to "auto-Sort" my data. But now i insert another database into the …

Member Avatar for Mr.BunyRabit
0
114
Member Avatar for Archenemie

I want to represent money which is usually to 2DP and I add up items using float values but whenever I have a value that is similar to the one used it only converts it to a string to 1DP. This seems like its going to be annoying to work …

Member Avatar for Archenemie
0
253
Member Avatar for bettybarnes

hi guys i wanna ask how to make warning messages when a user clicks the search button and found no record with what he input. here is my stored proc [CODE]ALTER PROCEDURE dbo.Searchbylastname /* ( @parameter1 int = 5, @parameter2 datatype OUTPUT ) */ ( @value1 varchar(50) ) AS /* …

Member Avatar for anucom
0
105
Member Avatar for MrConfused

I have VB 5 learning edition which has suited me fine thus far believe it or not! One thing has really been annoying me for quite some time. I can't find how to set the command buttons forecolor (at least with the VB version I have). Backcolor is no problem, …

Member Avatar for danomac
0
938
Member Avatar for WigglesMcMuffin

Hey, I'm trying to build my own calculator piece by piece, and I've currently got it to the stage where it'll add positive integers. Anyway, at the moment I'm trying to incorporate the keyboard into the program. What I've done is made is so that only my form can have …

Member Avatar for WigglesMcMuffin
0
105
Member Avatar for Neversleepin

hi, i try to run java program with ProcessBuilder but it works only with .exe file and with .jar or .java i use netbeans 6.9 why please? [CODE]import java.io.*; public class Mani { public static void main(String args[]) throws IOException, InterruptedException { try { Process p=Runtime.getRuntime().exec("javaw -jar D:\\NetBeansProjects\\GetIPAddress\\dist\\GetIPAddress.jar"); } catch(IOException …

Member Avatar for mKorbel
0
1K
Member Avatar for horserider
Member Avatar for TechSupportGeek

Hello, I'll be as clear as I can in this one. OK, here is what is going on: I'm kind of trying to create a programming language of some sort using a Console application. I have got most commands to work, but what I haven't got is the ability to …

Member Avatar for TechSupportGeek
0
176
Member Avatar for Tuloa

I can use the program fine without this code but I need to be able to take a line of text a file and read it into a variable. Here is the code causing the app crash: [CODE] string ReadLine() { getline(file, lineread); if (lineread.find_first_of("WSF_") != string::npos) { return lineread; …

Member Avatar for Tuloa
0
202
Member Avatar for jimu

i am a beginner .can anyone just give me a code to make a txt file using c code,that will create txt file with name same as the value of int variable.. consider like if int x=10,then file name created will be 10.text if x is assigned 45 then it …

Member Avatar for jimu
0
206
Member Avatar for horserider

How do I insert commas to numbers so I can convert 1000 to 1,000 or 1000000 to 1,000,000. [CODE] FileSize = GetSize(MyFile).ToString & " KB" [/CODE] the output would be "6652 KB" i m trying to get output 6,652 KB Plz try to modify this code only.

Member Avatar for horserider
0
273
Member Avatar for AngelicOne

I successfully implement in my application a listview that can get the values of selected items using a for loop [CODE] for (int i = 0; i < eventlv.Items.Count; i++) { if (eventlv.Items[i].Checked == true) [/CODE] and using this to get the specific value on my parameter [CODE]eventlv.FocusedItem.SubItems[0].Text[/CODE] Though, I …

Member Avatar for Mitja Bonca
0
5K
Member Avatar for iwanttolearnc

im currently studying having a python program supply data to a website. to do this, i am working with a simple example. as a disclaimer to you guys: im quite new with webservers and websites so please bear with me. 1. the python program simply generates a random number continuously …

Member Avatar for iwanttolearnc
0
180
Member Avatar for azegurb

hi all, i have registration script that registers user according their [B]user ID[/B]. if there more than one user id it returns false and says that this [B]user ID[/B] is taken. but if i submit different user ID and the same email address it accepts. how can i do that …

Member Avatar for azegurb
0
135
Member Avatar for KenyanRaphael

I've been teaching myself java using youtube videos of Starnford Engineering Everywhere. So far its been good, till the code started getting complicated and i got stuck. I need advice on how best to learn java.

Member Avatar for KenyanRaphael
0
221
Member Avatar for AngelicOne

How can I loop through a particular column of a datagridview? For example, I have three tables and I only need to get the selected items of the first column. I'll use for loop, right?

Member Avatar for Mitja Bonca
0
4K
Member Avatar for Jake.20

Guys, need help in autofill in my textbox, and the data is coming from the database, please tell me how will i do it. need help pleasee. thank you in advance.

Member Avatar for TechSupportGeek
0
144
Member Avatar for Silvanarix

I have only been diving into the C# language for roughly 3 days. I have alot of background with computers but never in a programming language. I am attempting to gain a foothold in C# by playing with it to learn a little about how it works before returning to …

Member Avatar for Silvanarix
0
73
Member Avatar for lexusdominus

i wrote this a couple of years ago when i was just starting to program. i didnt know any professional programmers and wanted to learn, so just experimented with the language. maybe it will give you an insight into how people program for fun. feel free to add to it, …

Member Avatar for mike_2000_17
0
140
Member Avatar for jacob.irwin

This is common code and I've searched all of the forums and cannot find the answer to fix my problem. I created 3 pages: 1.) Login [CODE]<title>Login</title> </head> <? /** * Checks whether or not the given username is in the * database, if so it checks if the given …

Member Avatar for jacob.irwin
0
169
Member Avatar for VernonDozier

I just learned about the AtomicInteger a few days ago. Didn't realize it existed before. I haven't tried it yet. I used to simply write my own MutableInteger class. Integer has no "set" method. AtomicInteger does, so I imagine that it can now replace my MutableInteger class. My question is …

Member Avatar for VernonDozier
0
1K
Member Avatar for CHOCHOCHO

Create a file that contains your favorite movie quote. Use a text editor such as Notepad and save the file as Quote.txt. Copy the file contents and paste them into a word-processing program such as Word. Save the file as Quote.doc. Write an application that displays the sizes of the …

Member Avatar for Momerath
0
347
Member Avatar for dennis.d.elston

For a homework assignment I need to write a function that computes the average value of an array of floating-point data: double average(double* a, int a_size) In the function, use a pointer variable, and not an integer index, to traverse the array elements. The code below is what I have …

Member Avatar for dennis.d.elston
0
190
Member Avatar for valter

Hi, I have a problem with filling a form dynamically. I have a form to which I add labels and textboxes. They are dimensioned globally as Label[] newlbls = new Label[30]; TextBox[] newtxts = new TextBox[30]; The first time I add controls there are four labels required. Everything works fine, …

Member Avatar for Mitja Bonca
0
192

The End.