545 Posted Topics
Re: Instead of txtScreen.setText(strApples + strOranges + strPomelos); //line 103 Try this:- txtScreen.setText(txtScreen.getText + "\n" +strOranges); OR txtScreen.append("\n"); txtScreen.append(strOranges); Similarly at other places | |
Re: Please check if there is any **"echo"** statement above any header.If there is then it will give this error or there might be some spaces. Check this [link](http://stackoverflow.com/questions/8028957/headers-already-sent-by-php). | |
Re: Why exactly you need infinite loop to take input.You should atleast have an exit criteria or number of input value and then take those many and calculate on that. Scanner a=new Scanner(System.in); int b=a.nextInt(); int sum =0; while(b>0) { BigInteger c=a.nextBigInteger(); sum+ = c; b--; } Or exit when input … | |
Re: take a look at [facebook api ](https://developers.facebook.com/docs/guides/web/). In this documentation you will get everything you required for using facebook | |
Re: > Your robot will have to have a micro controller It is not mandatory to have microcontroller.It all depends on the exact requirement of robot.You can simply make a robot with only few hardware requirements and connect it to system by using parallel port as once i have tried when … | |
Re: There might be problem in css of div id="mainbody".Look into that. ![]() | |
Re: This happens when there is problem with undeploying of previous war/ear and deploying the updated one. You must open command prompt and the go to apache location in command prompt. Then to bin folder. then \apache-tomcat-6.0.32\bin>shutdown.bat \apache-tomcat-6.0.32\bin>startup.bat This will forcefully close and then start. Take a look at [this](http://www.eclipse.org/forums/index.php?t=rview&goto=514491#msg_514491If) | |
Re: console application takes input and gives output in console(command prompt). Windows application is more of a GUI application with GUI components like textbox,radio button,checkbox.All input and output will be in proper GUI component. | |
Re: This is Jquery code that is making an ajax call to "php/search.php". Let us understand this line by line:- First line Specifies that it is an ajax call. **url**:URL to which the request is sent **async** : is not specified so by default: true **data**:Data to be sent to the … | |
Re: Yes Michael is right.If you are clear about your webpage design,then just see the source of page and just by editting some lines ,you will be ready to use it. | |
Re: instead of 2nd line use this line.It will work.But URL must be complete address otherwise it will search inside your folder. echo "<a href=".$_GET['feed'].">$_GET['feed']</a>"; | |
Re: You can just do it by javascript. Onclick event just change the element value with "". For eg:- <script> function makeBlank() { document.getElementById("search").value=""; } </script> <input type="text" value="Search" onclick="makeBlank();" id="search"> | |
Re: Set unique id of each td <td><input type="text" name="arr[]" value="1" id="name1"><a id="del">Delete</a></td> and then remove by ID var id = $(this).attr('id'); $($(this).attr('id')).remove(); | |
Re: @oop_php :- As per what i can see he is using correct:- <script type="text/javascript" src="ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> I just checked the page source and it is showing this. There is resource error:- > Failed to load resource: the server responded with a status of 404 (Not Found) http://www.garden-design.co.uk/static/css/img/nav_bg.gif > Failed to load … | |
Re: Triggers are database objects that are associated with specific tables. Triggers define actions that are to occur automatically as a result of an insert, update, or delete to the table or tables. Refer these two links to know about trigger. http://docs.oracle.com/cd/A57673_01/DOC/server/doc/SCN73/ch15.htm http://en.wikipedia.org/wiki/Database_trigger | |
Re: There is error in first line .Before **>** there must be **'**. Use the code below:- echo "<center><a href='report.php?date_range=$date_range&patient_id=$patient_id&proce_name=$proc_name'> <img src='google_favicon_128.png' alt='Print Lab Resutl' width='32' height='32'/>Print Report</a><center> </p></center>"; | |
Re: The problem might be using site height in width fixed size instead of using it in percent.Please check or else provide us the link. | |
Re: Yes broj1 is right,use **text file** if data is not that hugeand is constant(very rarely updated).But if data is huge and is changing consistenly then it will be better to use **datbase** only. | |
Re: print"<br>prod_id is ".$prod_id; // Error with $prod_id The line marked bold must be replaced with **$_POST['prod_id']** as the variable is passed from previous form and the method used is POST so it will be $_POST['prod_id'] . If method used is GET so it will be $_GET['prod_id'] . Refer [this](http://www.php.net/manual/en/reserved.variables.post.php) | |
Re: Instead of line 22-24 use the line below:- <input class="btn btn-primary" name="submitButton" type="submit" value ="Send Message"> or you can write a javascript onClick event of button <button class="btn btn-primary" name="submitButton" type="submit" onclick="form.submit"> Send Message </button> | |
Re: I am not sure about others but facebook like button shows how many likes are there. Show the link of website to get more info. | |
Re: You can refer [Click Here](http://onlamp.com/pub/a/php/2000/09/15/php_mysql.html?page=2) to see how to do this. Eg code:- <?php if ($id_files) { include "open_db.inc"; $sql = "SELECT bin_data, filetype, filename, filesize FROM tbl_Files WHERE id_files=$id_files"; $result = @mysql_query($sql, $db); $data = @mysql_result($result, 0, "bin_data"); $name = @mysql_result($result, 0, "filename"); $size = @mysql_result($result, 0, "filesize"); $type … | |
Re: Try looking at [PHPExcel](http://www.phpexcel.net/). This is a simple example that creates an Excel file with two sheets: <?php require_once 'PHPExcel.php'; require_once 'PHPExcel/IOFactory.php'; // Create new PHPExcel object $objPHPExcel = new PHPExcel(); // Create a first sheet, representing sales data $objPHPExcel->setActiveSheetIndex(0); $objPHPExcel->getActiveSheet()->setCellValue('A1', 'Something'); // Rename sheet $objPHPExcel->getActiveSheet()->setTitle('Name of Sheet 1'); // … | |
Re: [Oracle INSTALLATION](http://docs.oracle.com/html/B15521_01/toc.htm) To learn oracle just google [oracle tutorial](http://lmgtfy.com/?q=oracle+tutorial). For basic you can see W3School | |
Re: returns means returning back to calling method. cout is not returning,it is just an output stream meaning printing data in output stream. #include <iostream> using namespace std; int PrintName(string first, string last) { string fullname = first + “ “ + last; cout << fullname << endl; return 5; } … | |
Re: Use hashset if you don't allow user to enter same value again. So to check if user has guessed number,no need to do anything just keep on adding all guess to set. If number is already guessed,**Set doesnot allow duplicacy so add() method will return False**. | |
Re: Please show your code so that i can help you in this.Show how you are converting csv into sql | |
Re: Write th css afer right,then i will work Instead of .b{text-align:left;} .right{text-align:right;} try this .right{text-align:right;} .b{text-align:left;} | |
Re: @stultuske:-This is a constructor.What is your doubt about this line i am not clear. @Chevane:- I am not geting any error.Are you calling it properly.Because you have created constructor and there is no default constructor o you have to pass proper parameters. Eg:- Name name = new Name("sad","das"); System.out.println(name.toString()); I … | |
Re: It can be done in number of ways depending on data that you are storing. Like:- 1) addcslashes is useful when you want to store data containing data like C i.e., \n etc.More info at [manual](http://www.php.net/manual/en/function.stripcslashes.php). $originaltext = 'This text does NOT contain "" a new-line!'; $encoded = addcslashes($originaltext, '"'); … | |
Re: As per what i understand you want to use java progam then you can use like this:- here **com.test.TestJavaProjet** is the Java class <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ page import="com.test.TestJavaProjet" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> … | |
Re: Use regular expression and check for these values rather than using if-else:- Pattern pattern = Pattern.compile("[MmFf]"); Matcher matcher = pattern.matcher(input); Learn [more](http://docs.oracle.com/javase/1.4.2/docs/api/java/util/regex/Pattern.html) about regular expression. | |
Re: Use [Random](http://msdn.microsoft.com/en-us/library/ts6se2ek(v=vs.71).aspx) class to generate random number Take a look at [this](http://stackoverflow.com/questions/4213385/random-function-in-c-sharp) example | |
Re: I can think of one solution that i have tried .First of all copy database from source to destination server and then import database into MySQL. So both of these can be automated by using batch code and then adding the process to windows scheduler to schedule to execute batch … | |
Re: Syntax of for loop:- for(variable initialization;condition_check;increment/deccrement){ //set of statements to be executed } So,first of all you will set initial value to start looping,then condition is checked,if the condition returns true then the statement written inside curly braces is executed and finally increment/decrement of variable takes place. Then condition is … | |
Realtime Member Activity Stream of Daniweb is not working at present. It is showing old logs. | |
Re: Spell mistake,Replace optoin with option <optoin value="AL"> AL - Alabama</option> to <option value="AL"> AL - Alabama</option> Do the same thing at all option tag | |
Re: yes save the page name in session with userid as key. eg:-if you are user then save session as <?php session_start(); $_SESSION['ffej2ffej'] = "page1.html"; ?> Then before opening page2 check what was last referred page i.e.,value of $_SESSION['ffeej2ffej']. Click [here](http://www.php.net/manual/en/reserved.variables.session.php) for more information on SESSION from php manual; ![]() | |
Re: After maven download,extract it ,place it at any location and then add that path(till bin) to system environment path and you are ready to use. [Refer](http://maven.apache.org/download.cgi#Installation) make sure that JAVA_HOME exists in your user variables or in the system variables | |
Re: > Warning > FALSE is returned both in the case of an error and if unserializing the serialized FALSE value. It is possible to catch this special case by comparing str with serialize(false) or by catching the issued E_NOTICE. > > Warning > Do not pass untrusted user input to … | |
Re: Here is an example [Click Here](http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-JLabel.html). You are right,just use HTML tags and it will work. There is another [example](http://www.daniweb.com/software-development/java/threads/423941/how-do-i-make-jlabel-bold-and-italic-at-the-same-time) in this forum only. This shows using setFont to set font of JLabel Code snippet for the same LayoutManager layout; private JPanel panel [] = new JPanel [5]; private GridLayout … | |
Re: Keyboard must be plugged before system boots. Mouse is not mandatory. Plug in keyboard , then only it will work | |
Re: package com.daniweb; import java.awt.*; import javax.swing.*; import java.applet.Applet; public class Game extends JApplet { LayoutManager layout; private JPanel panel [] = new JPanel [5]; private GridLayout grid; private JButton button [] = new JButton [10]; private JLabel label [] = new JLabel [5]; private JTextField field [] = new JTextField … | |
Re: * Even if someone drags the image a bit away from your drop box,it is validating it. * Second thing ,it can be modified as position can be modified by bot and he can modify and check as there are only 5 images and it is fixed so there is … | |
Re: @radha:- Better solution will be:- **Steps** * first replace '%'charecter with empty charecter in the given number string by using replace('%',''); * convert then string to decimal and then typecast decimal to integer. function convertToInteger(c) { c= c.replace('%',''); alert(Math.floor(parseInt(c))); } | |
Re: Just remove line 5 as suggested by Broj1 then it will work fine. | |
Re: Provide complete table structure then only I can help u | |
Re: you can insert php code similar to HTML ,but the file extension must be .php And another point is you shouldnot directly code into server.Take a backup of your code and develop in your local system. Install MySQL,PHP or you can install wamp server which contains both along with apache … | |
Re: where serial_no=$netw AND ( pulser1_input_type=2 OR pulser2_input_type=2 OR pulser3_input_type=2 OR pulser4_input_type=2) I think so u want to check either of 4 input type = 2 and serial no = value padded |
The End.