89 Posted Topics

Member Avatar for Caled

I would suggest starting off small. Perhaps just implementing the browsing user that can view contents of a single table and then add to it as you gain experience and confidence. It's always easier to break the problem up into smaller parts.

Member Avatar for atplerry
0
95
Member Avatar for no1zson

Try to use the array in the inventory and then add CD's to the array during each loop.

Member Avatar for Ezzaral
0
216
Member Avatar for MitkOK

Do you just mean the sql statement? Something like this... $sql="select * from table where name = ' " . $_POST[name] . " ' "; $sql = $sql . " and phone = ' " . $_POST[phone] . " ';";

Member Avatar for dezignwork
0
167
Member Avatar for no1zson

The first error is saying that the CD Class doesn't know about the other class. This line isn't really necessary anyway. What i would do would make a float variable in the inventory class and every time you loop and insert another element into the array add it to the …

Member Avatar for no1zson
0
156
Member Avatar for muruganasm
Member Avatar for Cerberus
0
93
Member Avatar for Cerberus

I am trying to get this function to work and having a few problems. [CODE] if(function_exists("mysql_real_escape_string")) { $value = mysql_real_escape_string( $value ); } [/CODE] and i get an error: [B]Warning[/B]: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO) in w:\[B]pathname[/B] on line [B]11 [/B] Does anyone know how …

Member Avatar for Cerberus
0
98
Member Avatar for Cerberus

Hi, is it possible to set up a PHP development environment on a home PC. I assume you still need web server software, however, i only want it to practice my PHP coding and not open up my system to the Internet. I hope that makes sense. Anyway if someone …

Member Avatar for zaphod2003
0
156
Member Avatar for teklu
Member Avatar for teklu
0
169
Member Avatar for karlm

Here's a simplified way to do it in CSS. [CODE] <html> <head> <title></title> <style type="text/css"> a:link { text-decoration: none; color: red; background-color: yellow; } a:visited { text-decoration: none; color: black; background-color: blue; } a:hover { text-decoration: underline; color: green; background-color: gray; } a:active { text-decoration: none; color: silver; background-color: cyan; …

Member Avatar for karlm
0
140
Member Avatar for nhlagumbi

If you have some kind of description of the system a start might be to make a list of all of the nouns as candidate classes.

Member Avatar for jwenting
0
102
Member Avatar for genocide

How about a simple card game like blackjack! Make a class called card and initialize each one putting them into a container like a list. You could then implement an algorithm to shuffle the cards too.

Member Avatar for jwenting
0
151
Member Avatar for Cerberus

Hi, can anyone recommend me a good text book with information about setting up an online business with content such as methods of financial transaction, search engine optimization, web business models, etc. Thanks.

0
32
Member Avatar for dajiebuda

The class calling the method needs a reference to the other class. For example, ClassA instantiates ClassB (Below) and ClassB needs to call a method provided by ClassA. The 'this' keyword can be passed into ClassB's constructor to provide it with a reference to ClassA. E.g. [code] public class ClassA{ …

Member Avatar for ProgrammersTalk
0
128
Member Avatar for Cerberus

Hi can anyone point me in the right direction to redefine the tabbing element of <pre> tags please.

Member Avatar for Cerberus
0
66
Member Avatar for Cerberus

I want to use a slideshow on a web page, which could be implemented using either Javascript or an applet. Which on is the best option? Thanks.

Member Avatar for Cerberus
0
216
Member Avatar for Wibby

your could add some code like this [CODE]<html> <head> <style type="text/css"> <!-- .textstyle{ color: #aaaaaa; } --> </style> </head> <body> <a href="" class="textstyle">link</a> </body> </html>[/CODE]

Member Avatar for roryt
0
98
Member Avatar for Rikardsen02754

I think this is what you want. [CODE]import java.io.*; public class ReadLine { public static void main(String[] args) { try { InputStreamReader reader = new InputStreamReader(System.in); BufferedReader in = new BufferedReader(reader); System.out.print("enter text>>>"); String str = in.readLine(); System.out.println(str); } catch (IOException e) {} } }[/CODE]

Member Avatar for stultuske
0
141
Member Avatar for tripuraneni

Wouldn't you just set the value to one higher then King e.g. King = 13, Ace = 14.

Member Avatar for Phaelax
0
303
Member Avatar for Cerberus

Hi, i'm using a JTextPane that i've customized with a method to set up some tabstops. In my GUI class constructor i call the tabstop setup method and it works fine. I'm having a problem though when i load text into the TextPane. Even though i call the tabstop setup …

Member Avatar for Cerberus
0
66
Member Avatar for Cerberus

I can't seem to get access to images in my application when i pack the executable jar file. I've tried everything i can find in examples and nothing is working. Can anyone help please? Is there a way of specifying where images are in the manifest file.

Member Avatar for peter_budo
0
380
Member Avatar for Cerberus

Hi, can anyone recommend a 'simple' to use cross platform installer which is free. I've looked at a few but they look quite complex. Thanks.

0
48
Member Avatar for omoz4real

Declare this ( JTextField area = new JTextField(20);) variable outside the constructor.

Member Avatar for omoz4real
0
1K
Member Avatar for staneja

The error is saying that it can't find the 'main' method. Did you try to run the '.Java' file? try to run it without the extension E.g. java HelloWorld instead of java HelloWorld.java

Member Avatar for vinod_javas
0
142
Member Avatar for Cerberus

Hi, i've got a component that displays two JSpinners with a JOptionPane but the JSpinners are stretched across the dialog window. Does anyone know how i can format the JSpinners so they're smaller? Here's some of the code [code] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.text.*; public class TComponent …

Member Avatar for Cerberus
0
413
Member Avatar for jamello

I would find something you've written in C# (something not to complex) and try to implement it in Java. The Sun website provides lots of tutorials. [url]http://java.sun.com/docs/books/tutorial/getStarted/index.html[/url]

Member Avatar for Cerberus
0
102
Member Avatar for qwest21

If you're using Swing i don't think the layout matters because you apply the menu bar to the frame e.g. frame.setJMenuBar(myMenu) If that doesn't help perhaps you could post some of your code.

Member Avatar for qwest21
0
114
Member Avatar for Cerberus

I've been trying to install JOGL but can't seem to get it to work. Can anyone give me a simple expanation of how to install it please.

0
54
Member Avatar for Cerberus

Hi, could any one tell me how to model selection in communciation diagrams. I know sequence is achieved by numbering the messages and iteration with (*). Thanks.

Member Avatar for Cerberus
0
48
Member Avatar for Cerberus

Hi, does anyone know if there is any way to maximize the standard CLI in Ada. Thanks.

0
51
Member Avatar for Cerberus

Hi, does anyone know how to set a JFileChoosers default filter back to accept all files after custom filters have been added? Thanks.

Member Avatar for peter_budo
0
170
Member Avatar for Cerberus

Hey, does anyone know what inteface is needed to listen for a file being loaded into a jtextcomponent. Thanks.

Member Avatar for Cerberus
0
93
Member Avatar for Cerberus

Hello. I'm using a JOptionPane to display some application information when the user selects the Help-About menu option. If the about option has been selected and you click on an alternative application (e.g. a browser) when you return to the application the JOptionPane is lost and the application can't continue. …

Member Avatar for Cerberus
0
236
Member Avatar for Cerberus

Hi, i have a jtextpane and a JComponet that displays line numbers. Does anyone know how i can get the startline and end line of the text that is currently in view on the JTextPane? Thanks.

Member Avatar for Cerberus
0
77
Member Avatar for Cerberus

Hi, i have a page which is built from an asp script providing a thumbnail of an image from a database. I want to enlarge the image (when clicked on) in a new window and i can't work out how to do it using Javascript. Any help would be much …

Member Avatar for GreenDay2001
0
294
Member Avatar for Jessehk

[CODE]#include <iostream.h> #include <stdlib.h> void printNumbers(); const NUMBERS = 10; void main() { printNumbers(); system("pause"); } void printNumbers() { int numberArray[NUMBERS]; for(int i = 0; i < NUMBERS; i++) { numberArray[i] = i; } for(int i = 0; i < NUMBERS; i++) { cout << (numberArray[i] + 1) << endl; …

Member Avatar for Maidomax
0
990
Member Avatar for Cerberus

Hi i have a piece of code that checks to see if an indexed point in a string is white space.... if(Character.isWhitespace(c.charAt(0))) { return true } and i want to use the same technique to return true if an open chevron '<' is at a point in the document but …

Member Avatar for iamthwee
0
90
Member Avatar for Cerberus

Can anyone point me in the right direction to how you can add highlighing to a source code text editor. I don't know what language it's going to be written in. Java or c++ perhaps. Thanks in advance.

Member Avatar for Cerberus
0
131
Member Avatar for Cerberus

Stumbled onto this site and will probably need some advice over the next year. I'm a computing student going into my third year. :cheesy:

Member Avatar for happygeek
0
40
Member Avatar for linux

Just wondering as it's virtually the same subject where you would start to build a simple operating system whether it be a GUI or CLI. I'm considering attempting something like this for my degree project.

Member Avatar for Cerberus
0
76

The End.