89 Posted Topics
Re: 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. | |
Re: Try to use the array in the inventory and then add CD's to the array during each loop. | |
Re: Do you just mean the sql statement? Something like this... $sql="select * from table where name = ' " . $_POST[name] . " ' "; $sql = $sql . " and phone = ' " . $_POST[phone] . " ';"; | |
Re: 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 … | |
Re: It works fine for me. It just outputs the username. Do you get an error message or something? | |
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 … | |
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 … | |
Re: Did you create the jar file using a manifest file? e.g. >jar cvfm myjar.jar manifest.mf *.class | |
Re: 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; … | |
Re: 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. | |
Re: 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. | |
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. | |
Re: 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{ … | |
Hi can anyone point me in the right direction to redefine the tabbing element of <pre> tags please. | |
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. | |
Re: 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] | |
Re: 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] | |
Re: Wouldn't you just set the value to one higher then King e.g. King = 13, Ace = 14. | |
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 … | |
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. | |
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. | |
Re: Declare this ( JTextField area = new JTextField(20);) variable outside the constructor. | |
Re: 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 | |
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 … | |
Re: 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] | |
Re: 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. | |
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. | |
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. | |
Hi, does anyone know if there is any way to maximize the standard CLI in Ada. Thanks. | |
Hi, does anyone know how to set a JFileChoosers default filter back to accept all files after custom filters have been added? Thanks. | |
Hey, does anyone know what inteface is needed to listen for a file being loaded into a jtextcomponent. Thanks. | |
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. … | |
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. | |
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 … ![]() | |
Re: [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; … | |
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 … ![]() | |
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. | |
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: | |
Re: 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. |
The End.