199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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() { … | |
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 … | |
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 … | |
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 … | |
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 … | |
hello all how to make window's short cut that call command line: java javaclassname.java thank you denny | |
[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 … | |
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 … ![]() | |
[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 … | |
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 … | |
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 … ![]() | |
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" … | |
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 … | |
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 … | |
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(){ … | |
//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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: '" … | |
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 … | |
How can I get SQL Date and time into statusstrip with timeer control | |
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 … | |
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 … | |
[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. | |
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 … | |
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 … | |
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. | |
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 … | |
////////////////////////////////////////////////////////////////////////////////// // 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 … | |
![]() | 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 … ![]() |
[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] | |
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(); … | |
Hello! can you give me some ideas on how I can make the field values to field names? | |
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 … | |
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 … | |
hi Friends can you pl help me to create a simple snake game. give me with step by step creation. thanks. | |
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 … | |
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! | |
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? | |
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 … | |
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 … | |
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 … | |
Hi all What is ORM (Object Relational Mapping)? I have just heared the name ORM, but don't know what it does :) | |
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 | |
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 |
The End.