199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Na'Vi

Hi, I'm having some problems with my program and I'm not sure how to fix them. I have a main method that starts out with a frame. [CODE]public class Cryptography { public static void main(String[] args) { CryptoMainMenu mainMenu = new CryptoMainMenu(); JFrame frame = new JFrame("Cryptography"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().add(mainMenu); frame.pack(); …

Member Avatar for Na'Vi
0
123
Member Avatar for showman13

Good Early Morning (just barely) I have an issue with a javascript function in <head> portion of a script apparently sending something to the browser that is preventing a redirect from working the way it was before I added this JS... Here is the JS that I added [CODE] <link …

Member Avatar for showman13
0
191
Member Avatar for seemeamal

Dear all, The first query works while the second doesnt, am not able to figure, can u please help me out. 1) // $query3="insert into ttrough(am,pm) select ttam.subject,ttpm.subjectpm from ttam,ttpm where ttam.class != ttpm.classpm limit 1";// this one actually takes two columns from different tables and checks whether they are …

Member Avatar for seemeamal
0
114
Member Avatar for Farhan_B

Currently i am working and using a filter function for my search however i not sure how to do it using a query the sql statement is [CODE]cmd.CommandText = select * from tblcustomer where customerName like "'& textbox1.text &'"[/CODE] I no there is some bits missing but i am not …

Member Avatar for Farhan_B
0
214
Member Avatar for aianne

So I'm trying to create a PHP and MySQL program where users can add, update, delete, view and search records. But the problem is I can't update records whenever I click update button. Here's my code --> [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Update Record</title> </head> …

Member Avatar for rajeevphp2011
0
321
Member Avatar for OldDeveloper01

Im creating a community website and have a little problem working out what my if statment should look like. there is a default profile image and the one that is stored in the users directory. so basically i want to display the image which is in the users directory, but …

Member Avatar for rajeevphp2011
0
142
Member Avatar for PF2G

Hi, i have this code which is a table with login form, history of website and the news. ths news are here: [CODE] <td> <h2>DESTAQUES</h2> <table> <tr> <td> <?PHP include "db_connect.php"; $sql_destaque = "SELECT data_destaque, descricao_destaque FROM destaques ORDER BY cod_destaque DESC LIMIT 4"; $executa=mysql_query($sql_destaque,$connect); $dados = array(); while ($linha …

Member Avatar for broj1
0
105
Member Avatar for patrick1981

I have three table that are linked like this. Each content is linked to a category and each category is linked to a section. Like this sections_table -section_id -section_name categories_table -category_id -section_id -category_name contents_table -content_id -category_id -content_title -content_description I want to write a query to display only content from a …

Member Avatar for rajeevphp2011
0
189
Member Avatar for shean1488

Hi everybody, Tryed to make this program: Simple browser: you type the URL at the top and then get a new window with this web page. But my output is just JFrame(Even color did not get changed) help me please to find the problem. [CODE]import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; …

Member Avatar for 117
0
203
Member Avatar for nonshatter

Hey guys, I have this code which grabs categories from my category table of the database and populates the category drop-down box. I was hoping someone could tell me how I could populate the second drop-down box depending on what was selected in the first box. E.g. If "Networking" is …

Member Avatar for prash21m
0
151
Member Avatar for aianne

Hi everyone! So, I'm trying to create a program which users can add, update, delete, view, and search records but I am having a hard time about updating records in my database. In my Update form, I've got 1 dropdown menu or option that contains ID number and when I …

Member Avatar for aianne
0
4K
Member Avatar for QuietShot59

I have made a cipher substitution program which would take some input and print a coded output. however,the required output is not coming. My program first asks for input.then it converts it into a list as it is mutable.ALso,a string of all the alphabets is declared too. [CODE] #cipher code …

Member Avatar for woooee
0
187
Member Avatar for PoolShark1

[B]Note: see lines 26-28 in ResistorMain.cpp file this is pertaining to my question[/B] Note: driver file ResistorMain.cpp was given to me as well as some of the functions in Resisitor.cpp. I keep running around this and cannot seem to get this one part to compile correctly. This code requires a …

Member Avatar for PoolShark1
0
201
Member Avatar for preeti anand

How to convert automatically system genrated string to int in c# code.

Member Avatar for Mitja Bonca
0
122
Member Avatar for 117

Hello, I'm trying to make a JPanel with JFrame capabilities, such as resizing, and moving, Everything seems to work fine, altough there are minor flickering inside the JPanel, I have numeral repaints and I have a method called update(), which uses absolute position to arrange Containers and Components. Whenever the …

Member Avatar for 117
0
4K
Member Avatar for thehorseman123

Hi my php code is not working on my computer, i cannot see any problem with my code either. when loading my code, it just shows my code printed onto the browser <?php $yourname = check_input($_POST['yourname']); $email = check_input($_POST['email']); $likeit = check_input($_POST['likeit']); $comments = check_input($_POST['comments']); ?> <html> <body> Your name …

Member Avatar for weekendrockstar
0
180
Member Avatar for coroll

Hi all, Im trying to remove from a HashTable by providing key and to get by proving key. And i tried as follows for removing, Caharcter ch=p.charAt(i); but gives these errors. myOwnBm.java:60: cannot find symbol symbol : method Remove(char) location: class java.util.Hashtable myHash.Remove(p.charAt(i)); ^ myOwnBm.java:77: inconvertible types found : java.lang.Object …

Member Avatar for JamesCherrill
0
157
Member Avatar for Sonia kh

I have mentioned the code for checker board made on visual studio .I dont know whats the problem with this code .. it just draw only one row of checker board on the drawing window :( help me //#include <windows.h> // use as needed for your system //#include <gl/Gl.h> #include<stdlib.h> …

0
148
Member Avatar for Labdabeta

I am working on a game making (or really just general program making, but my question applies to games) DLL for opengl. It is almost done but the collision detection is a little bit slow since it has to calculate bounding boxes for each object repeatedly. I was thinking of …

Member Avatar for Labdabeta
0
170
Member Avatar for Violet_82

Hi guys, I wonder if anybody can give me an advice. I am working at a photography site (as many of you might know by now :)) and I realized I made a pretty bad mistake, for the second time in a row unfortunately, which is to rely on javascript …

Member Avatar for Violet_82
0
201
Member Avatar for Farhan_B

Hey i am just a little confused. I am creating a system where customers order items and i have just realized that i cannot add more than one item per order how do i get around this i am using sql and vb thanks

Member Avatar for Reverend Jim
0
128
Member Avatar for vizz

[CODE]<!DOCTYPE html> <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ var ele = $('#scroll'); var speed = 25, scroll = 5, scrolling; $('#scroll-up').mouseenter(function() { // Scroll the element up scrolling = window.setInterval(function() { ele.scrollTop( ele.scrollTop() - scroll ); }, speed); }); $('#scroll-down').mouseenter(function() { // Scroll the element down scrolling = …

0
106
Member Avatar for needjavahelp

Hi i need to add crosshairs to my code, like draw 2 lines across the screen on a JPanel, i also need to be able to turn them on and off with a checkbox which is on a JPanel. the other panel needs to be drawable on like a paint …

Member Avatar for zeroliken
0
470
Member Avatar for huskarit
Member Avatar for gagirl1105

Hi! I'm working on a school project and ran into a problem. We're creating an ArrayList of basketball games where each game is set up as: [CODE] public Game (String homeTeam, int htScore, String opponent, int oppScore) { this.homeTeam = homeTeam; this.htScore = htScore; this.opponent = opponent; this.oppScore = oppScore; …

Member Avatar for gagirl1105
0
115
Member Avatar for salem13

hi please I need help how to sort int line by line & get number of int in each line I have Input 4 2 32 8 6 10 7 9 21 2 3 14 1 5 Output must be 2 4 6 8 32 count = 5 2 3 …

Member Avatar for salem13
0
135
Member Avatar for CriticalError

[CODE] Private Sub TimerZoominOut_Tick(sender As System.Object, e As System.EventArgs) Handles TimerZoominOut.Tick Dim zoom = Document.ZoomFactor Select Case zoom Case zoom = 63 toolBar_zoomin.Enabled = False Case zoom < 63 toolBar_zoomin.Enabled = True Case zoom = 1 toolBar_zoomOut.Enabled = False Case zoom > 1 toolBar_zoomOut.Enabled = True End Select End Sub[/CODE] …

Member Avatar for CriticalError
0
118
Member Avatar for bhallarahul

hello everyone i have wrote a code but it shows [B]"org.apache.tomcat.dbcp.dbcp.SQLNestedException:"[/B] error org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) at listener.MyContextListener.contextInitialized(Unknown Source) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at …

Member Avatar for bhallarahul
0
367
Member Avatar for bhallarahul

hello frnd i am wriing program on in which i try to connect mysql with servlet but it gives error here is my code [CODE] [B]Test.java[/B] package my; import java.io.IOException; import java.sql.Connection; import java.sql.SQLException; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.sql.DataSource; …

Member Avatar for bhallarahul
0
1K
Member Avatar for mmazeemahmad

Hi i am making a stored procedure with multiple select statements when i execute them than different resultset are maken for each select statement all i need is to get one resultset from all select statements of sql quries in the stored procedure......HERE is the SP code..[CODE]SET NOCOUNT ON; Select …

Member Avatar for adam_k
0
293
Member Avatar for grabit

Hi CF people and a prosperous New Year to you all I have the following query on an action page: <cfquery name="getimage" datasource ="#dsn#"> SELECT ID, partImage, ImageAlt FROM engReconParts WHERE ID=#form.ID# </cfquery> when i run this page i get this error - Element ID is undefined in FORM. I …

Member Avatar for arrgh
0
104
Member Avatar for t_thakar

I'm new to regular expressions. could any one suggest where to start and any tutorials or books they can recommend. Also need to start learning frameworks I'm good with PHP with mvc pattern but need to learn RegX and frameworks is Zend good?

Member Avatar for diafol
0
144
Member Avatar for tubby123

Hi, I don't understand why we typecast malloc. For example, while creating a string/character array, we normally do, [CODE]line = (char*)malloc(200 * sizeof(char));[/CODE] assume we have already declared char* line; I was just reading the malloc man pages and it says that malloc allocates that much memory and returns a …

Member Avatar for tubby123
0
166
Member Avatar for balajirs

Below is a part of an experiement. I am trying to mprotect the whole of the stack area but mprotect needs page aligned space. I can get the address of the current pointer using ucontext.uc_mcontext.gregs[REG_ESP] . But how do I get the page-size aligned address to use in the mprotect …

Member Avatar for gerard4143
0
746
Member Avatar for BeeKeeper18

I know how to search a text file for a specific line, but what I don't know is then how to delete that line? Can anyone help? My text file is set up as such: 021,Donovan,56 Eynesford Crescent,Bexley,SE5 1TR,09/08/1967,13 March 2012,Bronze 062,Fredrikson,6 Freil Road,Gravesend,GR9 TRB,12/06/1995,13 March 2012,Silver So I know …

Member Avatar for Reverend Jim
0
356
Member Avatar for P.manidas

Dear Sir/Madam, I have two form in my application form1 and form2. Here, i want to show the form2 from form1 by using a button. And i want to reverse back to my form1 from form2 using same technique. But i want to close form1 (Not visible=false or hide) after …

Member Avatar for P.manidas
0
862
Member Avatar for metagoth

Hi friends.. Is there a way in vb.net to check whether new memory pages have been created inside a process(such as winlogon, svchost etc) For eg : if i there is a certain value that may change if new memory pages are created inside the process. Then i can compare …

Member Avatar for M.Waqas Aslam
0
172
Member Avatar for andreanah1

my problem in here is that i want to input chairs for the barber shop, there should be input chairs button and i will input how many chairs i want, and if for example i will input 4 and press ok, the barber chairs will become 4 also , and …

Member Avatar for andreanah1
0
240
Member Avatar for choboja621

I need ideas on how to create program for CPU Scheduling particularly preemptive scheduling. Thanks in advance for the idea.

Member Avatar for M.Waqas Aslam
0
78
Member Avatar for paldss

Hello everyone. I am working on a site that has a backend allowing the client to use a rich text editor to change the content of her pages. The editor page has a form that looks like this: [code=html]<form name="edit" method="post" action="processedit.php"> <textarea name="editor" id="editor" cols="50" rows="10"> <?php echo $content; …

Member Avatar for AcT-Cyrus-COA
0
332
Member Avatar for johnsnrose

Parse error: syntax error, unexpected $end in /home/wmsumo/public_html/student_profile.php on line 394 IN THIS PROGRAMME.... <?php @session_start(); include('mysql.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="css/style.css"/> </head> <body> <div class="overall_container"> <div class="div_head" style="border-bottom: 0px solid red;"><img src="images/header.jpg"/></div> <div class="div_menu"> <div class="div_menu_right"> <?php $id = $_GET['user']; $query = "SELECT …

Member Avatar for OldDeveloper01
0
106
Member Avatar for chandnigandhi

how to place controls next to next for images in a steps?like 1 main image consisting of different sub images.

Member Avatar for Bchandaria
0
91
Member Avatar for darthswift00

Hi, I'm having a problem with my forms. Basically I have one form that adds,deletes,updates transactions that are made when a registered member makes a request. Doing this then gets saved in the database under a transaction table. I then have another form which then calculates my transactions based on …

Member Avatar for darthswift00
0
146
Member Avatar for choosechrist

I create an xml file on startup in my application which contains the connection string of the database. [CODE] Dim contactDoc As XDocument = <?xml version="1.0"?> <database server=<%= TextBox1.Text %> name=<%= TextBox4.Text %> userid=<%= TextBox2.Text %> password=<%= TextBox3.Text %>> </database> Dim str1 As String str1 = Application.StartupPath contactDoc.Save((str1 + "\data.xml")) …

0
107
Member Avatar for ananth88

Hi, I just want to know which is the best way to transfer files between clients and server. My server is accessed from client through internet. I found some results after googled as using tcp/udp/ftp... So , i just want to know which one is best and why ? . …

Member Avatar for ananth88
0
873
Member Avatar for chirag_mittal

Hello, I was given a question a few few days back to write a program that lets a user enter a value for an angle and quadrant in which the angle lies is printed using switch statement. I was able to make this program using if-else very easily but making …

Member Avatar for chirag_mittal
0
469
Member Avatar for japeeps

I have this Code... ifsDAO.java [CODE]package source; import java.sql.*; import java.sql.SQLException; import java.util.*; public class ifsDAO { private Database database; public ifsDAO(Database database) { this.database = database; } public List<ifsBean> list() throws SQLException { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; List<ifsBean> ifs_array = new …

Member Avatar for javaAddict
0
401
Member Avatar for dilse4sk

Hi every one. I need help with regards to application distribution. The application i have made is in vb.net with sql server as database. I have 2 laptops . i want to install the application on both computer So that one computer will be for administrator and other for employee. …

Member Avatar for M.Waqas Aslam
0
141
Member Avatar for hwoarang69

i am reading from file called inputfile and storeing in char array line. Lets say the word in char array line is "black cat". than I am strtok word "black" and puting in ch. After that iam testing if the 1st word is black or not. Inside the if statment …

Member Avatar for hwoarang69
0
75
Member Avatar for C0ding

Hello guys, Have anybody seen a program with a small button (Like us on Facebook)? well i would like to accomplish something like that on one of my projects. to be honest i haven't click on any program with that little like button.. So i was wondering if they just …

Member Avatar for C0ding
0
90

The End.