3,927 Posted Topics
Re: You don't have any output statements in there at all. You need to use print or echo (or some other appropriate stream output methods) if you want any output. What are you wanting to do with the data? | |
Re: Your question isn't very clear. You want to convert an array of a specific type, like String[], to an array of Object[] ? | |
Re: You have this same question going in two threads. Please limit these to a single thread to avoid confusion. I have responded in your other one. | |
Re: Try the following tutorial on uploading files: [url]http://www.goodphptutorials.com/track/257[/url] | |
Re: You just need to move the call to setSize() after pack(). Read the method description on pack() and you will see where the sizing issue is coming from. | |
Re: I would suspect this lack of a semi-colon might be causing your problem[code=php] <?php include("dbconnect.php") ?>[/code] though I'm not sure why you aren't getting an immediate script error from it. | |
Re: Basic XML parsing is not really that difficult if you just get in and play with it. It's well worth your time to learn it. | |
Re: For detailed information on object-oriented programming in Java, this free online book is a good resource: [url]http://www.smart2help.com/e-books/tij-3rd-edition/TIJ3.htm[/url] It does not cover new things that have been added with 1.5 and 1.6, but it is still very relevant to the language basics. For small code examples of all kinds of "how … | |
Re: Have you tried copying the $sql string to phpMyAdmin and running the query directly? If you are getting no errors, perhaps your WHERE criteria are not selecting the row you intend. | |
Re: This is due to a missing or incorrect classpath. Classpath tells where to find the files required to compile your program. You specify it by either setting an environment variable CLASSPATH or by using the -cp switch on the javac command:[code] javac -cp ./;c:/myProjectDir;c:/otherFilesDir MyProgram.java[/code] If it is a single … | |
Re: As Anon said above, drop in a print_r or var_dump of $names to see what you have there. Also, [code]foreach ($names as $to) { mail($to, "Branches and Roots Weekly Newsletter", "Testing"); }[/code] would make your loop a bit easier. | |
Re: Since numbers are valid characters, if you don't want them in the field then you will have to check for that prior to saving them to the table. The int(3) spec does not limit the values to three or less digits. Here is the section describing what it does from … | |
Re: [quote=bryantpurdin;424432]Sorry, didn't mean to hijack - I just figured since we were both having the same exact problem, I'd let you know I was interested in anything you found out. Unfortunately, I can't really paste my code. It's about 800 lines long, and I'm not really allowed to by my … | |
Re: The GridBagLayout would accomplish this very easily. [url]http://java.sun.com/docs/books/tutorial/uiswing/layout/gridbag.html[/url] | |
Re: For one, you don't show any <form> or submit button. Secondly, your php is setting the variables after your HTML has been processed, so the variables in there have no value yet. The following revision works [code] <?php $ch1 = 'unchecked'; $ch2 = 'unchecked'; $ch3 = 'unchecked'; $ch4 = 'unchecked'; … | |
Re: You might look into Joomla: [url]http://www.joomla.org/[/url] | |
Re: That depends on how the data is generated. Does it go to an output window? File? The program you are working on will need to establish some form of input stream from the output of the exe. You would need to provide some more detail if you need more specific … | |
Re: You might want to take a look at this for distributing your MySQL database: [url]http://dev.mysql.com/downloads/connector/mxj/5.0.html[/url] | |
Re: Firstly, I do not see anywhere in your main() method where you create a SoftWareSales object. You will need such an object to store the properties and call your methods on. As far as using getter/setter [code] SoftwareSales someSoftware = new SoftwareSales( <all that constructor info here - I'm not … | |
Re: [inlinecode]userData.endsWith(">")[/inlinecode] perhaps? Edit: yeah, charAt(userData.length()-1) works just as well | |
Re: I'm sure that it is possible, yes, but the real question would be why? There is probably a more appropriate arrangement of your UI elements that would be less troublesome. When embedding components into a JTable, there are many cases where you will have to make sure events are forwarded … | |
Re: Your question is not clear at all. Is the table you posted your "customer_table" or the output that you require? If that is the desired output you will need to post the structure of the customer_table as well if you need help with the query. Also, post your current queries … | |
Re: [quote=lasher511;421809]lol i dont need cobalt developers.[/quote] They're toxic anyway - I'd stay clear of them. | |
Re: Are you not storing the user id with the post? If you are then you just need to display the name associated with that id. The name (id) associated with a post should not have any dependency on whether a user is logged in. | |
Re: [quote=EnderX;420031]You would prefer that substances be tested on human beings instead?[/quote] ... some of them... :P | |
Re: Never used any of the media APIs myself, but here is the guide for the Java Sound API [url]http://java.sun.com/j2se/1.5.0/docs/guide/sound/programmer_guide/contents.html[/url] | |
Re: [quote=jwenting;422092]Ditch JBuilder 3. There's no reason whatsoever to still use that dinosaur.[/quote] Definitely. It dates to JDK 1.1/1.2 I believe. | |
Re: As masijade said, you can do that with an ActionListener, however I have to wonder why you are writing a Java program just for a login and then opening a web application. Why not simply login in to the web application? | |
Re: The error would be that you have not imported the classes SlideShow and Slide. I assume you have some library with these classes like POI? You must import the classes to use them and make sure the jar file is in your classpath. | |
Re: Well, it won't wait but you can keep track of it for yourself with something like this[code=java] // class level long lastKeyPress = System.currentTimeMillis(); int lastKey=0; // whichever keys you need final static int KEY_1 = KeyEvent.VK_A; final static int KEY_2 = KeyEvent.VK_B; // whatever interval you need for "at … | |
Re: stevex, your poll makes no sense whatsoever - much like the rest of what you posted.... That has to be some of the most useless drivel I have read in some time. | |
Re: Also, if you are aiming for web development, I would recommend learning PHP instead of C++. C++ has a much higher learning curve and is generally used for standalone application development, not web development. | |
Re: [quote=darkagn;420233]My experience with NetBeans is that the generated code when building GUIs in particular is extremely difficult to read and subsequently maintain. [/quote] That depends on the layout that is selected for the container. I don't find the generated code more difficult to read than any other complex layout code. … | |
Re: Dreamweaver should open the php scripts just fine. Just open the file. | |
Re: Yes, there are several Java formatters available. [URL="http://java.sun.com/javase/6/docs/api/java/util/Formatter.html"]Formatter[/URL] is a generic formatter like printf or sprintf. It can be used with String.format() or also PrintStream's printf() function. NumberFormat, DecimalFormat and DateFormat are also available for formatting string representations. Edit: Or, yeah, see the template library jwenting posted above if you … | |
Re: Sorry, until jwenting completes his project generator, you will need to come up with your own project idea. Perhaps if you read a lot of the threads here you will get an idea. ![]() | |
Re: Well, you mention three different languages there. Maybe if you posted some code someone could help? | |
Re: The easiest way is to create an ImageIcon from the image file and then add that to a JLabel in your frame. See the following Sun tutorial for examples of doing this: [URL]http://java.sun.com/docs/books/tutorial/uiswing/misc/icon.html[/URL] If you mean pasting from the clipboard at runtime, you will need to do a bit more … | |
Re: You are selecting one column but trying to read two. | |
Re: You cannot define a method inside another method - and that is what your code is trying to do. | |
Re: Home - 19" Viewsonic CRT (LCD still weren't up to games very well when I bought it) Work - 3 19" LCDs | |
Re: [quote=~s.o.s~;408274]James there is a limit to going off topic. The topic is _Parents_ and you people are talking about _Motherboards_ !![/quote] Well... it does have "mother" in it at least... :) | |
Re: Yes, as masijade mentioned, initialize the array elements to the value you want to represent "empty" before you start filling it. You didn't say what the valid range for your number entries was, but filling with -1 or Integer.MIN_VALUE can be useful values to represent "unset". | |
Re: I would imagine the technical support forums at World of Warcraft do. This forum is just general game development questions. You would get much more specific help asking on the WoW tech forums as they are much more familiar with their own products. | |
Re: If you are speaking in terms of game programming, C++ is still the king. C#, Java, and Python are also valid choices. | |
Re: Yes, for all that I loathe Bush and what this administration has done, I am not aware of any law which he has broken - except those of trust, responsibility, and decency. If there are specific criminal charges outlined, then they could impeach them, but short of that it's all … | |
Re: Sorry, no personal experience parsing hex, but maybe this info could be helpful: [url]http://mindprod.com/jgloss/hex.html[/url] | |
Re: Did you add the servlet and servlet mapping entries to your web.xml? Example:[code] <servlet> <servlet-name>myServlet</servlet-name> <servlet-class>servlet.myServlet</servlet-class> <init-param> <param-name>load-on-startup</param-name> <param-value>0</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>myServlet</servlet-name> <url-pattern>/myServlet</url-pattern> </servlet-mapping>[/code] | |
Re: From comment posted in POSIX regular expressions section of PHP Manual: [quote] I was having a ton of issues with other people's phone number validation expressions, so I made my own. It works with most US phone numbers, including those with extentions. Format matches any of the following formats: 5551234567 … |
The End.