199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gouki2005

I want to fill a Drop-downlist with a list look heres my list code [CODE] public List ListaEmpresas(){ SessionFactory factory = HibernateUtil.getSessionFactory(); Session session = factory.openSession(); Transaction transaction = null; transaction = session.beginTransaction(); Criteria crit = session.createCriteria(Empresas.class); List empresas = crit.list(); List list = new LinkedList(); // Doubly-linked list list …

Member Avatar for gouki2005
0
134
Member Avatar for bobytch

Hello everyone in this activity i should use if, else if, Boolean, for loop, do while loop ok here is the OUTPUT i must do: GRADING SYSTEM! 96-100 =1.00 94-95 =1.25 92-93 =1.50 90-91 =1.75 88-89 =2.00 86-87 =2.25 84-85 =2.50 82-83 =2.75 80-81 =3.00 78-79 =3.25 75-77 =3.50 74-below …

Member Avatar for CSloan7597
0
192
Member Avatar for mr.ch

basically here is a code, what the question asked to do is to create a graph in quickdraw using the data given to us. now the problem is when i run the program it gives me a few errors. i am new at this and any help would be appreciated. …

Member Avatar for mr.ch
0
107
Member Avatar for Alviery

Can anybody help mi getting the area so that I display it on a message? Here is the driver: import javax.swing.JOptionPane; public class Driver { public static void main(String[] args) { Rectangle tennisCourt = new Rectangle(); { JOptionPane.showInputDialog(null," Enter Lenght: " + tennisCourt.setLength() ); JOptionPane.showInputDialog(null," Enter Lenght: " + tennisCourt.setWidth() …

Member Avatar for stultuske
0
124
Member Avatar for roXy101208

Hi, I'm new to asp.net and C# and I want to ask how to implement a session login using asp.net and C#. where i will connect it to my database. Please advise. Thanks.

Member Avatar for crishlay
0
234
Member Avatar for saad_sinpk

hi i have call ajax in other page like this [CODE]<script type="text/javascript"> //////////////////////////////// // // Refreshing the DIV FANBOO2 // //////////////////////////////// function refreshdiv_fanboo2(){ // Customise those settings var seconds = 1; var divid = "fanboo2"; var url = "http://pickthefights.com/fanboo2/?id=<?php echo $idvar ?>"; // Create xmlHttp var xmlHttp_two = AJAX(); // …

Member Avatar for saad_sinpk
0
275
Member Avatar for pmehalik46

hi everyone. i am writing a small caeser cipher program in java for a lab is my cs class. I am sure that most of it is generally okay, but when i run the program it will not return the newly encrypted or decrypted code. Why??? is there something wong …

Member Avatar for JamesCherrill
0
738
Member Avatar for davy_yg

I am trying to save data (link & picture) in banner manager. banner_manager.php [CODE] //SIMPAN DATA if (isset($_POST['simpan'])){ $id = $_POST['id']; $link = mysql_real_escape_string($_POST['link']); //$gambar = $_POST['gambar']; //print_r($_POST); die(); echo $link; echo $gambar['name']; } //Cek apakah ada file yang diupload if((!empty($_FILES['uploaded_file'])) && ($_FILES['uploaded_file']['error'] == 0)){ //$gambar = uploadPicture('uploaded_file'); $target_path = …

Member Avatar for davy_yg
0
212
Member Avatar for tr4nquility

I would like to build a simple highlighter program. The idea is to set an image to change the cursor so that it will look like a highlighter. And then, when we move the cursor, it will trace a line along with our movement. The requirement here is to be …

Member Avatar for tr4nquility
0
908
Member Avatar for SummerNight

Hi, I would really appreciate if I could be helped on the following PHP code. I have two arrays. 1) $user 2) $usertotal $user can have as many names stored in it. Example: $user[0]="John"; $user[1]="Sean"; $user[2]="Nick"; $user[3]="Jay"; ................ ................ Similary, $usertotal can have as many amount stored in it. Example: …

Member Avatar for diafol
0
137
Member Avatar for ziggystarman

Passing Managed ByteArray to Native C++ DLL Anyone could help regarding passing ByteArray containing image data from axis camera to Native C++ DLL, Both compile OK, but DLL does not write ByteArray data to file?, just wondering if this is the correct way to pass ByteArray's to C++ DLL's here …

Member Avatar for ziggystarman
0
2K
Member Avatar for JSR

Hi Guys, new to this forum, kinda new to PHP in general haven't been using it long, mostly creating forms for database and custom CMS modules. Anyway, i'm building a html email tool from the ground up and just need some help with one thing. How do i convert values …

Member Avatar for sush.princess
0
372
Member Avatar for begueradj

Hello I found this : [CODE]INSERT .... ON DUPLICATE KEY ...[/CODE] What does [B]'ON DUPLICATE'[/B] mean ? Thank you

Member Avatar for rotten69
0
67
Member Avatar for phoenix_2000

Hello, I'm currently working on a database application where the application can show a number of risks and counter-measures. Now i'm updating the application so it is possible to upload new risks without having to open the database. However, each risk has an riskID, a number that was being put …

Member Avatar for phoenix_2000
0
136
Member Avatar for MaSSaSLaYeR

Hello! I'm making an IRC Client with DCC Capabilities. The DCC Specifications say this about receiving files: [b] The recipient should acknowledge each packet by transmitting the total number of bytes received as an unsigned, 4 byte integer in network byte order.[/b] In do this with the following code: [code]typedef …

Member Avatar for MaSSaSLaYeR
0
170
Member Avatar for architact

Hello Guys I want to connect two databases at the same time but it looks like the php is only picking up the second database. One database is on my localhost and the other one is on server, I want to transfer the data from my localhost database to the …

Member Avatar for vamsy143
0
240
Member Avatar for drewpark88

Hey Guys, I haven't touched PHP in awhile so I am kinda rusty. I made a validation method within my new request invite class and need some help. I took out all the other code that works so we can focus on checking if email exists. I am trying to …

Member Avatar for drewpark88
0
161
Member Avatar for nickThebeginner

I am using window 7 as a operating system and i run this code in same os it shows the problem related to file handling but this problem wasn't occurred on xp and vista whats the problem ........???????????? try to run on win 7 and xp you will get the …

Member Avatar for mazzica1
0
186
Member Avatar for naveedqadri

Dear Experts, Thanks in advance for helping me I have installed an application (APWebGrabber) on my VPS, that application is being used in my website. APWebGrbNET.DLL is already in BIN Folder of my site. I am getting this error. Plz Help Me. ERROR CODE: Compilation Error Description: An error occurred …

Member Avatar for crishlay
0
269
Member Avatar for naveedqadri

Dear Experts, May be this thread is not related to this forum, BUT THERE IS LINK WITH THIS FORUM. I am using ASP.Net with Third party Application "WegGrabber" I traced out the ERROR oon VS 2008; At this point [COLOR="Red"]Server.Execute(pg, wtr);[/COLOR] [code] <%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1" %> <%@ Import …

Member Avatar for crishlay
0
184
Member Avatar for hovestar

I am a new programmer and I wanted to start by writing a Tic-tak-Toe program I have more to add but here it is so far. [CODE] import random board = """ 1 | 2 | 3 ---+---+--- 4 | 5 | 6 ---+---+--- 7 | 8 | 9 """; …

Member Avatar for TrustyTony
0
8K
Member Avatar for homer.favenir

Hi, hope someone has an answer to my problem. my add and edit function is fully working. but after a successful edit, another edit attempt has already an error. Error: Procedure or Function has too many arguments specified [CODE]Private Sub global_edit() '- Is_with_ref_doc Dim ref_docCheckBox As Integer If Is_with_ref_docCheckBox.CheckState = …

Member Avatar for homer.favenir
0
321
Member Avatar for Alviery

How do I set a new salary and a new department for the emp1 object class using a setPosition method. Everything works except that for some reason I just can't show the results on Message. Here is the Driver: import javax.swing.JOptionPane; public class Employee { public static void main(String[] args) …

Member Avatar for thines01
0
100
Member Avatar for John23

HI.. I have been able to save images into MYSQL database using php but I am having problems with retrieving images from mySQL ...Can anyone help thks

Member Avatar for veedeoo
0
156
Member Avatar for danielgr

I have started the familiarize myself with WPF and have gotten stuck with the ListView I've read a lot of documentation about binding and I can't seem to find how to populate a ListView programmatically. It seems like a lot of work to create the binding and classes, etc, just …

Member Avatar for danielgr
0
1K
Member Avatar for Srinivas0

i am trying to print multiplication table by using for loop but it is showing only the last one instead of displaying all. :( [CODE]#include <iostream> using namespace std; int main() { int i,j, k; cout<< "enter i value"; cin>> i; for(j=0;j<20;j++) k=i*j; cout<< k <<endl; return 0; } [/CODE]

Member Avatar for frogboy77
0
131
Member Avatar for baig772

hi all i want to create facebook like iamge gallery in my website. i.e. as facebook displayes images, i want to display images in the same way in my website

Member Avatar for mathieu89
0
78
Member Avatar for poojavb

Hello All, I need to create a java code for auto numbering. A value will be mentioned in a table in database eg 10000. The java file has to retrive the database value and start the auto numbering from that particular number. It should increment by 1 for the next …

Member Avatar for poojavb
0
397
Member Avatar for java.util

I have this try-block [CODE]try { FileReader textFileReader = new FileReader(filename); BufferedReader textReader = new BufferedReader(textFileReader); String post = textReader.readLine(); int weeknumber = Integer.valueOf(post); if (weeknumber != weeknmbr) { System.out.println("Wrong weeknumber."); return false; } post = textReader.readLine(); while (post != null) { insertPost(post); post = textReader.readLine(); } textReader.close(); }[/CODE] but …

Member Avatar for java.util
0
114
Member Avatar for jaxi

I'm working on a simple encryption/ decryption program for class. When I try to compile, I get a number of "expected areas" directed towards the following segment of code: [code] public static char encrypt(char c, String k) { String fullcrypt = (k + "abcdefghijklmnopqrstuvwxyz"); for (int i = 0; i …

Member Avatar for jaxi
0
200
Member Avatar for morph214
Member Avatar for daldrome

I have created a program to generate a set of characters in an array. The objective is to move all vowels generated by the array to the left, for example: given the following array: A B C D E F G H I J K L M O P Q …

Member Avatar for daldrome
0
161
Member Avatar for umsungun

[code]import java.util.*; import javax.swing.JOptionPane; import java.text.*; class playGames{ public static void main (String [] args){ Fermi fermi; fermi = new Fermi(); int num1 =fermi.fermi1(); int num2 = fermi.fermi2(); int num3 = fermi.fermi3(); boolean playGame = true; int firstGuess; int secondGuess; int thirdGuess; String inputStr; inputStr = JOptionPane.showInputDialog(null, "Enter the First …

Member Avatar for NormR1
0
196
Member Avatar for edgar5

I am working on a WIN32 (not MFC) project. Currently it uses the default XP and earlier file dialogs. In attempting to add the option, under Win7/Vista, to use the new-style file dialogs, I have come to a stumbling block. The only code examples I can find come from here: …

Member Avatar for edgar5
0
2K
Member Avatar for maurya10

Filename is "htb.java". Here is the code:- import java.io.*; import java.util.*; import java.lang.*; public class htb{ public static void main(String[] args) throws Exception{ File f= new File("dyna.txt"); BufferedReader in = new BufferedReader(new FileReader(f)); String[] line = new String[40000]; line[0] = in.readLine(); int i=0; while(line!=null) line[++i] = in.readLine(); String[] mem_add=new String[100000]; …

Member Avatar for NormR1
0
239
Member Avatar for nsyncpilu

Hy , I am using netbeans to create an app. I wanted to eliminate the windows buttons (minimize , maximize , exit) so i could have full control on the exit button , and i used setUndecorated(true) in the PuppetApp.java (main app that netbeans creates). Now i created a exit …

Member Avatar for NormR1
0
1K
Member Avatar for Violet_82

Hi guys, I would like to add sth to my website but I am not sure what's the best way to achieve this. It is a kind of image gallery, say I have 10-20 images and I want to display all of them one after another one from the beginning …

Member Avatar for Violet_82
0
505
Member Avatar for gikonyo

please help. i want pass variables from a php form to an online shopping payment systems this is the url i have [url]https://usd.swreg.org/cgi-bin/s.cgi?s=133537&p=133537-2&q=1&v=0&d=0&Variable[/url] Pricing=<?php echo"$price";?>" the url links the php form to the swreg.org but it doesn't transfer the price. how can i modify the code to transfer the price …

Member Avatar for gikonyo
0
324
Member Avatar for blahbla

hi i'm having trouble creating a drop down menu using data from the database and i dont understand where the problem is [CODE] <?php .... $conn ...blah blah blah... mysql_select_db ...blah blah blah... .... $query = mysql_query("SELECT * FROM teamdb WHERE sports='Basketball'"); $options = ""; while($row = mysql_fetch_array($query)) { $teamid …

Member Avatar for simplypixie
0
112
Member Avatar for Stefano Mtangoo

Is it possible to export MySQL database to SQLite? If possible, how do you do that?

Member Avatar for Stefano Mtangoo
0
76
Member Avatar for nchy13

here, there are two functions in branchpredictor class namely predictor and trainer. [B]what i have pointed out is that predictor is working fine but trainer is not updating the variables of the above class. is it that only first function can access the variables. [/B] if not, can any one …

Member Avatar for JamesCherrill
0
169
Member Avatar for beeho

Hi all, I'm having a problem here!! I've attended a lecture on Implementation of stacks in c++ using arrays and it wasn't really hard to understand, but now I'm supposed to know how to Implement a stack using linked list, that's the problem. help please?:confused:

Member Avatar for beeho
0
281
Member Avatar for parimalnarayan

Hi! I have made a website which allows users to register. I want to check the functionality of the site, so I want to create a database on my computer using mysql and link it to my site. I have already created the registration form and login form, but I …

Member Avatar for nHulk
0
229
Member Avatar for skatamatic

I am just wondering if anyone has any pointers on how to index my database. It's for a piece of instrumentation software that loads in large amounts of sensor data (sometimes over 3 days worth of recording at 1 second intervals for 90 sensor's doubles). Right now it can load …

Member Avatar for skatamatic
0
126
Member Avatar for elbeato

Hi there, I'm using php to try and take two separate arrays ($colors and $message), write them to a single multidimensional array ($endline), and then write the resulting md array into a csv. This works fine on my localhost, but for some reason it doesn't work through my web host. …

Member Avatar for elbeato
0
386
Member Avatar for walid86

i'm writing some values which are global to the whole app. these values can change depending on the user. [CODE] // create GLOBAL SETTINGS public static class MyGlobals { public static string userName = "userName"; public static string pdfPath = @"C:\mypdfs\"; // deafult value, changes public static string FontName = …

Member Avatar for skatamatic
0
176
Member Avatar for bossie09
Member Avatar for james1700

Description: ------------ in my php pages i am using aes_encrypt which works fine. The issue i am having is with aes_decrypt. I have been searching for days to try and resolve this problem but need more help. The following string in my php will not bring any results back at …

Member Avatar for skraps
0
610
Member Avatar for amit_as
Member Avatar for theCompiler

i dont have idea what string function must be used to find consecutive characters . example is the word commit it will output the letter m . tnx for th help :D

Member Avatar for nHulk
0
5K

The End.