545 Posted Topics

Member Avatar for iciaguevara

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

Member Avatar for ~s.o.s~
0
246
Member Avatar for abhi10kumar

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

Member Avatar for broj1
0
157
Member Avatar for TIM_M_91

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 …

Member Avatar for IIM
0
634
Member Avatar for rouse

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

Member Avatar for kindo
0
211
Member Avatar for harshi414

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

Member Avatar for Ancient Dragon
0
272
Member Avatar for ebanbury
Member Avatar for hwoarang69
Re: jsp

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)

Member Avatar for peter_budo
0
279
Member Avatar for uknown2

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.

Member Avatar for stultuske
0
221
Member Avatar for techyworld

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 …

Member Avatar for IIM
0
175
Member Avatar for davy_yg

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.

Member Avatar for IIM
0
95
Member Avatar for johang_80

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

Member Avatar for IIM
0
169
Member Avatar for StefanRafa0

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

Member Avatar for bguild
0
438
Member Avatar for Szabi Zsoldos

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();

Member Avatar for Szabi Zsoldos
0
249
Member Avatar for ukhostland

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

Member Avatar for oop_php
0
339
Member Avatar for levijoseph

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

Member Avatar for IIM
0
78
Member Avatar for mogaka

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

Member Avatar for IIM
0
90
Member Avatar for williampritchar

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.

Member Avatar for williampritchar
0
194
Member Avatar for rubai

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.

Member Avatar for rubai
0
2K
Member Avatar for showman13

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)

Member Avatar for showman13
0
206
Member Avatar for mmcdonald

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>

Member Avatar for mmcdonald
0
259
Member Avatar for dalilice

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.

Member Avatar for JorgeM
0
135
Member Avatar for liphoso

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 …

Member Avatar for IIM
0
150
Member Avatar for Tinnin

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

Member Avatar for Tinnin
0
138
Member Avatar for rinoy.new

[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

Member Avatar for debasisdas
0
164
Member Avatar for hckrwb

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

Member Avatar for deceptikon
0
301
Member Avatar for relu69
Member Avatar for toldav

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

Member Avatar for tux4life
0
335
Member Avatar for Prov1

Please show your code so that i can help you in this.Show how you are converting csv into sql

Member Avatar for broj1
0
97
Member Avatar for anestistsoukalis

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;}

Member Avatar for charlijoseph
0
162
Member Avatar for ChevaneHeadChefCooke

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

Member Avatar for tux4life
0
443
Member Avatar for harshedh

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, '"'); …

Member Avatar for IIM
0
205
Member Avatar for shibu2all

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

Member Avatar for shibu2all
0
335
Member Avatar for Start4me

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.

Member Avatar for andreas.bjorn
0
329
Member Avatar for <M/>

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

Member Avatar for <M/>
0
338
Member Avatar for mpc123

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 …

Member Avatar for mpc123
0
365
Member Avatar for meenal9

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 …

Member Avatar for csk19
0
151
Member Avatar for IIM

Realtime Member Activity Stream of Daniweb is not working at present. It is showing old logs.

Member Avatar for Dani
0
89
Member Avatar for lewashby

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

Member Avatar for lewashby
0
291
Member Avatar for ffej2ffej

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;

Member Avatar for diafol
0
289
Member Avatar for DeepAnalyzer

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

Member Avatar for peter_budo
0
148
Member Avatar for Dani

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

Member Avatar for IIM
0
4K
Member Avatar for djcrab

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 …

Member Avatar for IIM
0
666
Member Avatar for slasham

Keyboard must be plugged before system boots. Mouse is not mandatory. Plug in keyboard , then only it will work

Member Avatar for rubberman
1
2K
Member Avatar for javaprog200

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 …

Member Avatar for javaprog200
0
330
Member Avatar for migcosta

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

Member Avatar for IIM
0
114
Member Avatar for f_atencia

@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))); }

Member Avatar for IIM
0
198
Member Avatar for CreatorZeus
Member Avatar for IIM
0
191
Member Avatar for ayyazm64
Member Avatar for Limiter

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 …

Member Avatar for davy_yg
0
244
Member Avatar for asaidi

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

Member Avatar for asaidi
0
159

The End.