199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for peter20

Hi, I am trying to read a file but I have a problem because it is read in the end an empty line (this line does not exist) My code is [CODE] $file_handle = fopen($newFilewithFolder, "r") or exit("problem."); $getfileInfo = fgetcsv($file_handle); $numcols = count($getfileInfo); // my file is opened again …

Member Avatar for fobos
0
911
Member Avatar for kukula

Hi everyone, I have problem with form at my site. When you fill the text boxes it works fine but when you click SEND, the site is refreshing, form is clear and no message has been sent. My knowledge about PHP is very low. I found the tutorial which shows …

Member Avatar for fobos
0
224
Member Avatar for Kristo.lane

Hi guys, I have written a program that writes a .csv file readable in Microsoft excel. Is there a way I can launch the file with Microsoft excel once I compile and run the program? [CODE] #include <iostream> #include <cstdlib> #include <fstream> #include <cmath> using namespace std; int main() { …

Member Avatar for Kristo.lane
0
270
Member Avatar for softDeveloper

Dear all, I'm passing a javascript String variable varname in a form inside a jsp to another page. [CODE] <form name="form1" action="nextpage.jsp" method="post "> <input type="hidden" name="varname" value="teste" /> <input type="button" value="button" onClick="document.form1.varname.value = function(window);"> <input type="submit" name="button" value="test1" /> </form> [/CODE] When I get the String in the next …

Member Avatar for softDeveloper
0
200
Member Avatar for StatikStasis

Hey Everyone! It's 6:29pm EST and I have been working on this same problem since about 9am. I'm usually able to Google my way to the solution- but I have reworded my search numerous times and went through mountains of forums trying different approaches but to no avail. Here is …

Member Avatar for StatikStasis
0
819
Member Avatar for Skretch

Trying to add a key keylistener to a program i am making but it wont work. cant find the reason :/ any help would be awesome:) Display.class [CODE]package com.mono.main; import java.awt.Graphics; import java.awt.Graphics2D; import javax.swing.JFrame; import javax.swing.JPanel; import com.mono.main.handler.Controller; import com.mono.main.handler.Game; import com.mono.main.handler.InputHandler; public class Display extends JPanel implements Runnable …

Member Avatar for Skretch
0
352
Member Avatar for Despairy

I cant seem to find anything useful on the web except adding outside libraries for this one help is required. I wrote a program that you can say builds a database of users and their passwords. the program loads the users from an existing file already into a hashtable. now …

Member Avatar for Caligulaminus
0
942
Member Avatar for dennysimon

hello all how to make window's short cut that call command line: java javaclassname.java thank you denny

Member Avatar for NormR1
0
202
Member Avatar for Wouto1997

[b]C# text encoder / decoder[/b] [i][u]Please note that I'm not a professional developer and I might make simple mistakes because of that, I'm also dutch, and 14 years old, so please keep that in mind before you reply. thank you C:[/i][/u] My brother came up with an idea to encode …

Member Avatar for Narue
0
527
Member Avatar for m1n1m3

Hi! I have a JS ajax function that goes into PHP file and returns (by echo) javascript code (a string data). All that is echo-d is in "return_data" variable. The problem is that returned JS code wont run. For example if i try to return simple JS function alert from …

Member Avatar for diafol
0
157
Member Avatar for Dorar

[B]My project is Housing reservation system for University I design the interfaces by VB and connect to my oracle data base account Oracle 11g, VB express edition are used The proble is with the login form [URL="http://im20.gulfup.com/2011-12-23/1324652639153.png"]http://im20.gulfup.com/2011-12-23/1324652639153.png[/URL] when I debug and enter the ID & password for User : according …

Member Avatar for dspnhn
0
513
Member Avatar for mynamewontfitin

Hey - Sorry if this is an irritatingly simple problem, but I'm a newbie to the Java language and I can't see where I'm going wrong with this. I get an error with my code when trying to define 'label3' - "cannot find symbol - class Jlabel". It seems to …

Member Avatar for mynamewontfitin
0
2K
Member Avatar for ravisangam

How can get the contents of YUI rich text box in HTML format to POst.php page. [CODE]index.php <?php if (isset($_POST['submit'])) { echo 'You entered: <br />'; echo 'name: ' . $_POST['name'] . '<br />'; // this works fine echo $_POST['message']; // this does not work } ?> <!DOCTYPE html PUBLIC …

Member Avatar for diafol
0
338
Member Avatar for minitauros

I would like to execute some Javascript after the document has loaded and even after the document.onload functions have been executed. Situation: I'm loading a text-edit field through ajax. When the user submits the form, he is redirected to a PHP file. That PHP file redirects him back to "file.php" …

Member Avatar for minitauros
0
108
Member Avatar for deepanbecse

Hi, I have bound the data in the grid view using the following code [CODE] gvHolidaysLst.DataSource = dsHoliday; gvHolidaysLst.DataBind(); [/CODE] But I wanted to add a new column with check box control in the grid view.An error occurs while filling the grid view because the data source contains only 3 …

Member Avatar for cocoll
0
126
Member Avatar for dynw

hi can someone help me to make a calculator as required? Create class Calculator. This class must contain the following features: constant PI constructor that accepts two integers, operand1 and operand2 method for writing values ​​and operand2 operand1 methods for calculating the four operations - addition, subtraction, division and multiplication …

Member Avatar for mohamed.farag
0
229
Member Avatar for varun45

I am having difficulties with placing images on Buttons using Java Swing. I have placed all images in a package named icon. The frame is loading as well as the buttons. I cant seem to get the images on the buttons. Can anyone point out my mistake please. [CODE]public Launch(){ …

Member Avatar for varun45
0
990
Member Avatar for pushpap7

//create the images folder and past all images into that u want to display... import java.awt.Color; import java.awt.Dimension; import javax.swing.ImageIcon; import javax.swing.JFileChooser; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.SwingConstants; class my { public static void main(String args[]) { JFrame f=new JFrame("Web layout..."); ImageIcon pic1 = new ImageIcon ("images/3d.png"); ImageIcon …

Member Avatar for JamesCherrill
0
4K
Member Avatar for shamsidah

[CODE]<form id="form1" name="form1" method="post" action="updatebodyNo.php"> <table width="356" border="0" align="center"> <tr> <td width="94"><span class="style12"><span class="style12 style57">BodyNo</span></span></td> <td width="155"><span class="style12"><span class="style12 style57">Defect Code</span></span></td> <td width="93"><span class="style12"><span class="style12 style57">Quantity</span></span></td> </tr> <tr> <?php include ("connection.php"); // get value of id that sent from address bar $bodyNo=$_GET['bodyNo']; $sq1 = mysql_query ("SELECT * FROM paintshop WHERE …

Member Avatar for urtrivedi
0
134
Member Avatar for terence193

I am trying to store data from two variables in a text file .. and then try to get the data back and output it on screen but somehow the following program is not working as supposed to be. I first enter data in the two variables n1 and n2 …

Member Avatar for zeroliken
0
94
Member Avatar for fika

hi, there.. i have few problems here... i have 2 table in my database.. and i want to take few data from first table and insert it into second table... how can i do that?? i don't want the user write it twice in different form... is there any way …

Member Avatar for fika
0
124
Member Avatar for squares86

I an a newbie to assembly language, been reading jeff duntemann's book, and I have been trying to write some code by myself too. There is an example in the book on converting binary values to hex values. I decided to re-write the code again by myself for self-practice but …

Member Avatar for squares86
0
163
Member Avatar for sanjaypandit

hi i have below structure in my database table id eve_id cat_id member add_date 1 Tel1 5 1,2,3,4,5 0000-00-00 2 Acc2 2 3 0000-00-00 3 For3 3 1 0000-00-00 4 Acc4 2 5 0000-00-00 5 Acc5 2 6 0000-00-00 now my query is as below [CODE]$memque="select * from tblevent where …

Member Avatar for simplypixie
0
160
Member Avatar for aldeene

my program freezes when I put this code on a button, but when I put it in the main it doesn't what could be the problem? protected void EstablishClient() { try { skt = new Socket("some.ip.of.me", 4444); out = new PrintWriter(skt.getOutputStream(), true); in = new BufferedReader(new InputStreamReader(skt.getInputStream())); txtRecvd.append("Received string: '" …

Member Avatar for aldeene
0
113
Member Avatar for nHulk

I am trying to import all the classes present in a user defined package, by using the statement as import mypack.*; but it's not working in my program. [B][B]Its Giving error : C:\Users\Nitin\java>javac AOTest.java AOTest.java:6: cannot access AOperation bad class file: .\AOperation.java file does not contain class AOperation Please remove …

Member Avatar for nHulk
0
203
Member Avatar for adnysam
Member Avatar for mnNewbie

I need to basically rewrite grep command: method is suppose to take an exact string and an exact filename as the 2 arguments grep<string><filename> then it has to search through the file for the string and print out the "line" and the "line number" the string is in. example #grep …

Member Avatar for WaltP
0
290
Member Avatar for Dmiller071

The title says it all. Basically what I'd like to do is have a JComboBox drop down with a list of items. When the user clicks on that item it will redirect them, or open a new browser tab, of the url to that specific item. Quick example (these sites …

Member Avatar for Dmiller071
0
178
Member Avatar for tejaspandey

[CODE] #include <stdio.h> #include <stdlib.h> int main() { FILE *fp; char ch; fp=fopen("exp.txt","w"); while( (ch=getchar()) !=EOF) { putc(ch,fp); } fclose(fp); return 0; } [/CODE] I am using gcc compiler in linux mint This code is not working only exp.txt is created which is empty.

Member Avatar for Gaiety
0
148
Member Avatar for fusionking

I am writing a C# program that reads in a text file of a list of events followed by a date and time, delimited by a comma and prints it out to a textbox along with how much time is left till that date and time happens. It must read …

Member Avatar for BhuvanRam
0
348
Member Avatar for jhellr13

Hey guys I have to write this program for AP Computer Science. It involves writing a main where it brings in a txt file with values, and reads all of them. Eventually, I have to modify it to read the values in to an array. Right now, I can't get …

Member Avatar for Trentacle
0
161
Member Avatar for sasho648

And the question is - how to include a window inside the window? I want to include at my main window with options and buttons one other with Direct3d graphics on another thread.

Member Avatar for sasho648
0
137
Member Avatar for kshahnazari

I am new to c# so please don't laugh at me :icon_biggrin: i have a database called database1 in my program , when i create a setup file and lunch it in another computer because the database isn't attached i will get many errors , how can i attach it …

Member Avatar for hericles
0
94
Member Avatar for ThomsonGB

////////////////////////////////////////////////////////////////////////////////// // Now I have an idea how to get my strings from the file so that I can properly // play with them (with fstream I did not have the string "in my clutches" quite // the way I wanted it). However, now I have a problem with my …

Member Avatar for ThomsonGB
0
358
Member Avatar for Morley93

Hi all, I'm a long time reader of the forums and thought this would be a good place to ask a question. For the record, I am very new to Java! Basically, I have a [I]MainClass[/I] which inherits JFrame, the constructor for which sets window size, title etc. It also …

Member Avatar for Morley93
0
555
Member Avatar for shwee

[code] main() { if() { if() { if() { something () /* something so that the program executes the last line means last printf without using goto ststement */ } } } printf("hello"); } [/code]

Member Avatar for Narue
0
165
Member Avatar for Raisefamous

Hi, I'm using Codeblocks as a compiler. So when i'm creating a new class by following File>New>Class it creates two files xxxx.h xxxx.cpp Ok, code is simple. [CODE]#include <iostream> #include "Sally.h" using namespace std; int main(){ Sally so; } [/CODE] Sally.h [CODE]#ifndef SALLY_H #define SALLY_H class Sally { public: Sally(); …

Member Avatar for Raisefamous
0
223
Member Avatar for gerchi152

Hello! can you give me some ideas on how I can make the field values to field names?

Member Avatar for adam_k
0
201
Member Avatar for badface

Hey guys!!! Am building a system that user will be searching data from database..I want to display those data in table where a whole row will be a link to a specific data.For example a table will list some members of a community and each row is a link to …

Member Avatar for broj1
0
104
Member Avatar for puneet2

I have two For loop, first For loop does is creates a customer and input the customer info and then the second for loop within the first for loop does the follows which is capture the customer name and verify the with the data within the datatable. The problem I …

Member Avatar for hkdani
0
249
Member Avatar for madhub2v

hi Friends can you pl help me to create a simple snake game. give me with step by step creation. thanks.

Member Avatar for Ezzaral
0
2K
Member Avatar for creative_m

Hi I have a class which has alot of tasks related to multiple classes. the tasks are add, modify ,delete, write on a file and read array from a file.all theses methods operates on objects of other classes as a member variables. In other words, I have to perform a …

Member Avatar for creative_m
0
119
Member Avatar for raichand

Hi i am looking for simple intranet project in java with mysql.Can anyone post this kind of project or suggest some sites. Appreciated if u replay on this. Cheers!

Member Avatar for Ezzaral
0
165
Member Avatar for Mudzy

I want to extend JFrame needed for my GUI program but i get this.. [URL="http://imageshack.us/photo/my-images/209/screenshot20111226at163.png/"]http://imageshack.us/photo/my-images/209/screenshot20111226at163.png/[/URL] how do i solve this?

Member Avatar for JamesCherrill
0
187
Member Avatar for Srinivas0

i am trying to write a program for friend functions but it isnt working. :( [CODE] #include <iostream> using namespace std; class Z; { private: int a; friend void fn(); }; void fn() { Z one; one.a=5; cout<<a<<endl; } int main() { fn(); return 0; }[/CODE] can someone please tell …

Member Avatar for Srinivas0
0
137
Member Avatar for Chuckleluck

Alright, I decided to try ClanLib. I've been reluctant to use it, because it requires Visual C++, which is foreign to me. I usually use Code::Blocks. Anyway, I'm trying to get the hang of VC++. It seems to have a lot of features I haven't dealt with, like solutions. To …

Member Avatar for Chuckleluck
0
491
Member Avatar for ohyeah

I've got a .txt file with lots of passwords in, in the following format: (passwords must be between 12-15 characters) password1 password2 password3 i want to use a text box that allows the user to enter a password & upon the correct password being entered they are allowed to proceed …

Member Avatar for NewUserVB.Net
0
188
Member Avatar for baig772

Hi all What is ORM (Object Relational Mapping)? I have just heared the name ORM, but don't know what it does :)

Member Avatar for chrishea
0
105
Member Avatar for sumit3gupta

Hi, I want to know how to make a C++ wrapper class. Ex. Plugin.hpp if i have coded for Plugin.h and Plugin.cpp

Member Avatar for Mr_Null_andVoid
0
317
Member Avatar for auwi987

hi guys trouble again, i want to print year from 1980 up to 2050 using loop in richtextbox and apply newline every print. thnx in advance guys

Member Avatar for auwi987
0
122

The End.