3,927 Posted Topics

Member Avatar for hunkychop

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?

Member Avatar for Anonymusius
0
87
Member Avatar for gurusamy

Your question isn't very clear. You want to convert an array of a specific type, like String[], to an array of Object[] ?

Member Avatar for christokavi
0
80
Member Avatar for sam18

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.

Member Avatar for Ezzaral
0
160
Member Avatar for nil_gh_80

Try the following tutorial on uploading files: [url]http://www.goodphptutorials.com/track/257[/url]

Member Avatar for Ezzaral
0
39
Member Avatar for bigbluesky

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.

Member Avatar for Ezzaral
0
79
Member Avatar for ndeniche

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.

Member Avatar for w_3rabi
0
460
Member Avatar for autocrat

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.

Member Avatar for autocrat
0
240
Member Avatar for JyotiC

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 …

Member Avatar for JyotiC
0
123
Member Avatar for phobia1

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.

Member Avatar for phobia1
0
90
Member Avatar for javakeith

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 …

Member Avatar for w32.sysfile
0
124
Member Avatar for Firestone

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.

Member Avatar for nyashaC
0
137
Member Avatar for nil_gh_80

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 …

Member Avatar for mikeSQL
0
161
Member Avatar for Ghost

[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 …

Member Avatar for bryantpurdin
0
1K
Member Avatar for w32.sysfile

The GridBagLayout would accomplish this very easily. [url]http://java.sun.com/docs/books/tutorial/uiswing/layout/gridbag.html[/url]

Member Avatar for w32.sysfile
0
98
Member Avatar for piers

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'; …

Member Avatar for piers
0
92
Member Avatar for icecuban
Member Avatar for Ezzaral
0
17
Member Avatar for pantero

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 …

Member Avatar for Ezzaral
0
54
Member Avatar for arkaprava

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]

Member Avatar for arkaprava
0
304
Member Avatar for CurtisBridges

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 …

Member Avatar for jwenting
0
1K
Member Avatar for mimsc

[inlinecode]userData.endsWith(">")[/inlinecode] perhaps? Edit: yeah, charAt(userData.length()-1) works just as well

Member Avatar for mimsc
0
119
Member Avatar for kahilw

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 …

Member Avatar for Phaelax
0
155
Member Avatar for jnora

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 …

Member Avatar for jwenting
0
86
Member Avatar for bappa_ayan

[quote=lasher511;421809]lol i dont need cobalt developers.[/quote] They're toxic anyway - I'd stay clear of them.

Member Avatar for Salem
-1
125
Member Avatar for jeffro25

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.

Member Avatar for jeffro25
0
143
Member Avatar for Agita
Member Avatar for The Dude

[quote=EnderX;420031]You would prefer that substances be tested on human beings instead?[/quote] ... some of them... :P

Member Avatar for quintoncoert
0
249
Member Avatar for Mr.UNOwen

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]

Member Avatar for Mr.UNOwen
0
146
Member Avatar for pmhayden

[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.

Member Avatar for jwenting
0
105
Member Avatar for apontutul

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?

Member Avatar for Ezzaral
0
245
Member Avatar for abar_sow

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.

Member Avatar for Ezzaral
0
79
Member Avatar for Mr.UNOwen

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 …

Member Avatar for Ezzaral
0
3K
Member Avatar for stevex

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.

Member Avatar for Lardmeister
-2
294
Member Avatar for Abominatos

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.

Member Avatar for ~s.o.s~
0
105
Member Avatar for mattyd

[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. …

Member Avatar for jwenting
0
582
Member Avatar for flo-0001
Member Avatar for flo-0001
0
130
Member Avatar for gwong

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 …

Member Avatar for gwong
0
167
Member Avatar for taran30

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.

Member Avatar for iamthwee
0
82
Member Avatar for naahamm

Well, you mention three different languages there. Maybe if you posted some code someone could help?

Member Avatar for Ezzaral
0
58
Member Avatar for karan sharma

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 …

Member Avatar for Ezzaral
0
112
Member Avatar for mimsc
Member Avatar for apontutul

You cannot define a method inside another method - and that is what your code is trying to do.

Member Avatar for apontutul
0
6K
Member Avatar for Hosmer23

Home - 19" Viewsonic CRT (LCD still weren't up to games very well when I bought it) Work - 3 19" LCDs

Member Avatar for computeonline
0
243
Member Avatar for lasher511

[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... :)

Member Avatar for Serunson
0
790
Member Avatar for baltazar

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".

Member Avatar for anamika_nagpur
0
113
Member Avatar for soco_chic16

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.

Member Avatar for Phaelax
0
93
Member Avatar for A Day Old Bagel

If you are speaking in terms of game programming, C++ is still the king. C#, Java, and Python are also valid choices.

Member Avatar for wvgoethe
0
137
Member Avatar for The Dude

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 …

Member Avatar for EnderX
0
416
Member Avatar for PoovenM

Sorry, no personal experience parsing hex, but maybe this info could be helpful: [url]http://mindprod.com/jgloss/hex.html[/url]

Member Avatar for PoovenM
0
207
Member Avatar for staneja

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]

Member Avatar for staneja
0
124
Member Avatar for wireshop

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 …

Member Avatar for clearstatcache
0
148

The End.