138 Posted Topics

Member Avatar for de.ICeman

Actually go/log into the database to see if primary keys are set, show that print screen. When you wrote your queries, you included 'int not null' and primary key(whatever) lines (?). If then Netbeans is still not showing the primary keys, I would code the database link as it must …

Member Avatar for StephNicolaou
0
374
Member Avatar for davBro

To display only one particular type of news articles in a drop down menu, you need to ensure you have a category table and the news_category compound table in your database where all of the news articles are linked to a category. Then you can add the WHERE command to …

Member Avatar for davBro
0
299
Member Avatar for StephNicolaou

Hi all, This is also similar to web browsers which use the codes, &d for date, and &l&f&r for document name, etc. I would like to start the page number for 165, for example, is there a code to do this? (For within the print preview/page setup area). I've already …

Member Avatar for StephNicolaou
0
172
Member Avatar for mortanto

To construct I normally would use: [code] L = new Library(); [/code] I've also seen others use the newInstance() method.

Member Avatar for StephNicolaou
0
151
Member Avatar for 47pirates
Member Avatar for vishalkhialani
Member Avatar for vishalkhialani
0
159
Member Avatar for ajacintha

You can set the location of the Jframe under the mouse listeners so it will not move from that position

Member Avatar for ajacintha
0
90
Member Avatar for Sinnocence
Member Avatar for StephNicolaou
0
62
Member Avatar for shushi

Have you tried: [code] "SELECT * FROM tblcustomer WHERE referenceno = 1003 ORDER BY lastname" [/code] ?

Member Avatar for shushi
0
290
Member Avatar for sirlink99

Which part doesnt work, the frame removing or the game re-starting? If the frame does not close, then you could try the below methods, have a look at the JFrame class, (below). [code] f.dispose(); f.setDefaultCloseOperation(f.EXIT_ON_CLOSE); [/code] Or the update() method to call paint instead. [url]http://docs.oracle.com/javase/1.4.2/docs/api/javax/swing/JFrame.html[/url] Then once that works, you …

Member Avatar for sirlink99
0
143
Member Avatar for joy39

Here are some very good examples of how to link C client programs to MySql and create and populate databases, as well as fetch data: [B]Really good book:[/B] [url]http://www.kitebird.com/mysql-book/ch06-3ed.pdf[/url] [B]Really good site examples:[/B] [url]http://zetcode.com/tutorials/mysqlcapitutorial/[/url] [url]http://www.cyberciti.biz/tips/linux-unix-connect-mysql-c-api-program.html[/url] The main methods used are: mysql_config mysql_real_connect mysql_query mysql_use_result mysql_fetch_row I hope that helps, the …

Member Avatar for StephNicolaou
0
89
Member Avatar for divsok

Try: [code] foreign key (ssn) references Student(ssn), foreign key (courseId) references Course(courseId) [/code]

Member Avatar for StephNicolaou
0
123
Member Avatar for ajacintha

Try setting the location of your frame under your listeners, so it will always stay in this position

Member Avatar for dmanw100
0
85
Member Avatar for vijayram

Even though you're using PHP, you still you HTML to link a page, just use the <a> tag once you've uploaded the page to your server...You should have access to the file manager or FTP details. Look into researching PHP on the links provided or buy a beginners book, details …

Member Avatar for StephNicolaou
0
129
Member Avatar for seventhief

When all numbers are entered at once as a string, a possible solution is to use the following functions: 1. The Len(theString) Function 2. The Left(theString, 1) Function 3. The Cint(theString) Function 1. Gets the length count of the string 2. Gets the character, for each counted one, from left …

Member Avatar for StephNicolaou
0
111
Member Avatar for aiwasen

I prefer using an IDE so I don't have to keep checking for the classpath, path and changing the directory to compile the java files I need. The IDE will have these details always stored and know which files I'm compiling without having to specify directories. IDE's are a lot …

Member Avatar for stultuske
0
254
Member Avatar for rcbandit

Yes, I see that you've answered your own question whilst looking into this. This thread can now be closed!

Member Avatar for StephNicolaou
0
163
Member Avatar for laopi

Hm, I don't use NetBeans so I can only advise that you make sure the primary keys in the table are set to auto-increment. Also, if the New key worked when the primary key columns were visible on the form, just make them invisible, keeping them on the form. Otherwise, …

Member Avatar for StephNicolaou
0
154
Member Avatar for jabeen123

I would presonally advise you use a course number as a primary key. Otherwise you will have to use string algorthims to remove the spaces as a delimiter, reduce all characters to lower case, etc.

Member Avatar for diafol
0
78
Member Avatar for xanawa

Try line 42 without the, [code].newInstance();[/code] Hope that helps! Cleo

Member Avatar for stephen84s
0
232
Member Avatar for haimz

Yes there are many ways (such as XFBML, Iframe, HTML, etc.) and tutorials online to at least get you started! Look at the youtube guide or web resources provided and then post any errors received: [url]www.youtube.com/watch?v=KzzqJrrdL5o[/url] [url]http://www.devshed.com/c/a/PHP/Facebook-PHP-API-Applications-Basic-Introduction/1/[/url] [url]http://www.squidoo.com/facebook-like-button-php[/url] [url]http://developers.facebook.com/docs/reference/plugins/like/[/url] [url]http://utterlyboring.com/archives/2010/04/27/facebook_like_b.php[/url]

Member Avatar for StephNicolaou
0
90
Member Avatar for Sherif1410

You have to change the encoding and use a stream reader. Look up internalisation and how to convert non-UTF back to UTF: Oracle tutorials: [URL]http://docs.oracle.com/javase/tutorial/i18n/index.html[/url] [url]http://docs.oracle.com/javase/tutorial/i18n/text/convertintro.html[/url]

Member Avatar for ~s.o.s~
0
8K
Member Avatar for sammrat23

Have you cleared your cache? If you have removed the .php file from your file manager/server then it should stop displaying once you've deleted temporary files. If you haven't removed it from your file manager it may also show up if you haven't updated your internal web links. Also DNS …

Member Avatar for diafol
0
177
Member Avatar for shamsidah

On line 10, it should be input type="text". and you can also echo at the same time. [code]echo $check["defect_code"] . " " . $check["totalDaily"][/code]

Member Avatar for Jay-Kandari
0
105
Member Avatar for ad_rulz

Look into the java.util.zip import. You can then use the GZIPInputStream/GZIPOutputStream with your stream: [code]InputStream in = new GZIPInputStream(new FileInputStream(file)); [/code] I've also seen the TarInputStream being used before. There are a few tutorials out there: The class file: [url]http://www.jajakarta.org/ant/ant-1.6.1/docs/en/manual/api/org/apache/tools/tar/TarInputStream.html[/url] Oracle: [url]http://java.sun.com/developer/technicalArticles/Programming/compression/[/url] Dev Daily: [url]http://www.devdaily.com/java/jwarehouse/javatar-2.5/source/com/ice/tar/TarInputStream.java.shtml[/url] Good luck!

Member Avatar for StephNicolaou
0
2K
Member Avatar for swissknife007

PHP.Net is also good. They have a manual including a Getting Started guide... [url]http://uk.php.net/manual/en/[/url] [url]http://uk.php.net/manual/en/getting-started.php[/url]

Member Avatar for rotten69
0
415
Member Avatar for phpDave

If you are currently echoing every age option under 100, do you want the selected age? Have you tried the get method? [B]$_Get Variable on w3s:[/B] [url]http://www.w3schools.com/php/php_get.asp[/url] [B]Session Variables:[/B] [url]http://www.w3schools.com/php/php_sessions.asp[/url] [code] echo $_GET['age']; or $var = intval($_get['age']); [/code]

Member Avatar for phpDave
0
184
Member Avatar for trektrak

Post the specific PHP erroneous code section and the error to be able to work from what you've got?

Member Avatar for rotten69
0
78
Member Avatar for hueikar

On line 3 try: [code] Dim new_node As TreeNode new_node = parent_nodes.Add(child_node.Name) [/code]

Member Avatar for hueikar
0
102
Member Avatar for Buppy

Post the error.. Have you tried making a public function, returning then echoing the value you want? [code] echo $name -> functionName(); or protected _values = whatever; echo $name -> _values; [/code]

Member Avatar for diafol
0
151
Member Avatar for bonzo2008

This code doesn't even include the select statement, debasisdas has already solved this really...Post the code with this select statement included.

Member Avatar for StephNicolaou
0
94
Member Avatar for philip.s
Member Avatar for StephNicolaou
0
89
Member Avatar for kbj123

I usually set db = CurrentDB, store the the db path in a string variable named path, (including the db extension at the end) and then when I set the recordset I can just do this, which will select all of the tables in your database: [code] Set rs = …

Member Avatar for hkdani
0
265
Member Avatar for vaironl

If you are on a tight deadline, I would say to just carry on and worry about this after you've finished as your teacher has advised. You're not scored on this so you will limit the score you can achieve by delaying on this. If the components are huge on …

Member Avatar for vaironl
0
146
Member Avatar for Kmutax

Make sure you are using the correct version of the sql connector, Connector/J 5.1.18 is the latest: [url]http://www.mysql.com/downloads/connector/j/[/url] Check whether you connection is correct, your path, username and password are correct. Instructions are provided below: [url]http://www.mkyong.com/jdbc/how-to-connect-to-mysql-with-jdbc-driver-java/[/url] I don't use Netbeans, I would package it in command line so see if …

Member Avatar for StephNicolaou
0
245
Member Avatar for peter20

Peter, <!-- This is a comment --> The DTD problem is with your track+ element where you have not stated it's additional track elements, e.g. <!ELEMENT track (element1, element2, element3) > If you do not need any 'child' elements for the 'parent' track element, then remove the +. See DTD …

Member Avatar for peter20
0
192
Member Avatar for rahulindia17

If you have started this, then keep going at it and post any code with the error you are struggling with (in code tags). Don't panic about the project, work at it and you'll get into it.

Member Avatar for StephNicolaou
0
37
Member Avatar for ravsau

Try to use the getSource() method prior to your isSelected if statement (within your actionlistener). I would also make your price integers public. [code] if ((e.getSource()) == package1) { if ((package1.isSelected()) { ... [/code]

Member Avatar for ravsau
0
420
Member Avatar for spades0001

You seem to already know how to get the data entered from a dialog box as the method is already in your code, line 210: [code]String str = JOptionPane.showInputDialog(null, "Enter tag: "); jLabel2.setText(str);[/code] Just do the same for the text area. I'd keep it as a label really. Use the …

Member Avatar for StephNicolaou
0
221
Member Avatar for cvanithakpm
Re: java

1) yes, make sure you've constructed the frame then you can use setVisible(true) 2) Java Web Server - try port 7001 3) Yes. Google is your friend. Use it. [B]Servlets:[/B] [url]http://docs.oracle.com/javaee/1.4/api/javax/servlet/http/package-summary.html[/url] [url]http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-First-Servlets.html[/url] [B]Oracle JWS Annotation Reference:[/B] [url]http://docs.oracle.com/cd/E13222_01/wls/docs90/webserv/annotations.html[/url] [B]Oracle Internal Frames Tutorial:[/B] [url]http://docs.oracle.com/javase/tutorial/uiswing/components/internalframe.html[/url]

Member Avatar for StephNicolaou
0
135
Member Avatar for gourav1

Exam details can be found here [URL="http://www.whizlabs.com/scjp/scjp.html"]http://www.whizlabs.com/scjp/scjp.html[/URL] and you can buy the study guide 'SCJP Sun Certified Programmer for Java 6 Exam' 310-065 by Katherine Sierra, Bert Bates. Also, it is now known as Oracle Certified Professional Java Programmer where the Exam Topics can be found on the Oracle site: …

Member Avatar for stultuske
0
161
Member Avatar for StephNicolaou

Hi, I have a simple query I've used again and again previously, but in this case it's telling me that it is too complex. I've output this sql string into a message and cannot see any problems with the syntax, I'm completely baffled with this one so any help would …

Member Avatar for StephNicolaou
0
85
Member Avatar for riahc3

I don't know about JNA but there isn't a suma or sum method in Java. Usually you need to create a sum integer variable and calculate sum = a+b and print out the variable, System.out.println(sum). You also need to initiate and assign a and b values...

Member Avatar for riahc3
0
154
Member Avatar for asif49

Need a lot more information to put a whole UML diagram together. All you have here is the object 'Employee' in the many/* multiplicity of a Class or Object diagram. You don't just put a line of Java code into a diagram. I advise some research on UML diagrams, and …

Member Avatar for StephNicolaou
0
98
Member Avatar for beshoo

Okay so in your Java, you use try catch statements, while statements and variables. PHP is capable of all this so all you have to do is put it into the PHP syntax. Look at these helpful websites. How to create variables in PHP: [URL]http://www.w3schools.com/php/php_variables.asp[/URL] How to do try, catch …

Member Avatar for stultuske
0
2K
Member Avatar for Spiere

When you move your image 'base' left or right, you have updated/repainted its x, y position under key pressed, it the image moving? Is the problem that it's not moving?

Member Avatar for StephNicolaou
0
330
Member Avatar for spades0001

Yes, I would say so. With the mouse listener (mouse Clicked event) you could get the x,y co-ordinate for when you display the name of the person when the mouse rolls over the image (mouse entered). You could also draw a rect graphic in the paint method (that facebook has …

Member Avatar for StephNicolaou
0
164
Member Avatar for lena1990

Centralised - database in one location Decentralised - database on more than one CPU There's lots of this topic online - research!

Member Avatar for StephNicolaou
0
73
Member Avatar for shiroshiro

Have you got a method that orders the rank of "Trainee", "Junior", "Senior", "Administrator" ? It's still ordering by alphabetical order because they are not numbered in any way so it won't know the rank of these nouns.

Member Avatar for shiroshiro
0
109
Member Avatar for matt1117

You need to actually initiate a number for each case and create a shared/global phone number string to add this number (as a string) to. Then finally output it. e.g. [case1 = 5, phonenumber = phonenumber & case1], [case2 = 10, phonenumber = phonenumber & case2]. That's not the exact …

Member Avatar for StephNicolaou
0
3K

The End.