138 Posted Topics
Re: 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 … | |
Re: 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 … | |
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 … | |
Re: To construct I normally would use: [code] L = new Library(); [/code] I've also seen others use the newInstance() method. | |
Re: Could you please show us the error? | |
Re: Have you tried the SELECT DISTINCT and possibly WHERE NOT EXISTS clauses? | |
Re: You can set the location of the Jframe under the mouse listeners so it will not move from that position | |
Re: Have you tried: [code] CREATE TABLE % (tableName) [/code] ? | |
Re: Have you tried: [code] "SELECT * FROM tblcustomer WHERE referenceno = 1003 ORDER BY lastname" [/code] ? | |
Re: 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 … | |
Re: 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 … | |
Re: Try: [code] foreign key (ssn) references Student(ssn), foreign key (courseId) references Course(courseId) [/code] | |
Re: Try setting the location of your frame under your listeners, so it will always stay in this position | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: Yes, I see that you've answered your own question whilst looking into this. This thread can now be closed! | |
Re: 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, … | |
Re: 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. ![]() | |
Re: Try line 42 without the, [code].newInstance();[/code] Hope that helps! Cleo | |
Re: 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] | |
Re: 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] | |
Re: 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 … ![]() | |
Re: 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] | |
Re: 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! | |
Re: 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] | |
Re: 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] | |
Re: Post the specific PHP erroneous code section and the error to be able to work from what you've got? | |
![]() | Re: On line 3 try: [code] Dim new_node As TreeNode new_node = parent_nodes.Add(child_node.Name) [/code] ![]() |
Re: 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] ![]() | |
Re: This code doesn't even include the select statement, debasisdas has already solved this really...Post the code with this select statement included. | |
![]() | Re: Post your erroneous code section to be able to work from what you've got? |
Re: 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 = … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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] | |
Re: 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 … | |
Re: 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] | |
Re: 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: … | |
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 … | |
Re: 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... | |
Re: 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 … | |
Re: 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 … | |
Re: 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? | |
Re: 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 … | |
Re: Centralised - database in one location Decentralised - database on more than one CPU There's lots of this topic online - research! | |
Re: 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. | |
Re: 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 … |
The End.