545 Posted Topics

Member Avatar for thewayoftheduck

Create an instance of MyPoint class and then call the methods,instance variables using instance of MyPoint class(take care of the Access modifiers: public, protected, and private of MyPoint)

Member Avatar for stultuske
0
266
Member Avatar for vingan

Take a look on .submit() form event in jquery http://api.jquery.com/submit/ This contains example that shows how can you prevent form from submit and return error on particular condition.

Member Avatar for IIM
0
114
Member Avatar for kakalahori

the error is in the single quote you are using .PHP supports the character '.For both startting and ending you have to use this single quote. Also double quote at the start and end of string must be ". Just chnage your line to if ($message) echo '<p class="error">' .$message. …

Member Avatar for IIM
0
369
Member Avatar for razib8bd

I am not sure what exactly you are asking. If you are asking for using net of your mobile to computer then there are different ways like connect your mobile using bluetooth and share net via nokia PC suite for Nokia mobiles. If you are asking for making your mobile …

Member Avatar for oalee
0
163
Member Avatar for toldav

@toldav:- set your instance variables from the value passed in constructor this.dollars = dollars;//line 8 this.cents = cents;//line 9 You cannot use Our.dollar. Call the contructor of superclass and by that you can send value to Money() class.(you cannot directly call dollars as its scope is hidden) dollars = max.getDollars();//line …

Member Avatar for IIM
0
227
Member Avatar for IIM

Change the concept of downvoting.There might be option that only person in the conversation can downvote because if he/she is downvoting then they must have reason for that and solution for that.What you say that Dani??

Member Avatar for deceptikon
0
275
Member Avatar for mical700

what exactly is the problem in this code(if any)?what help you need from us?

Member Avatar for stultuske
0
492
Member Avatar for rolanduk

the problem is because of line 52 header('Content-Disposition: attachment; filename="'.$data['name'].'"');//on commenting this your program will work but not as expected that is downloading the attachment file.Check if somewhere you are using any html content or echo or print statement before this statement.Although adding ob_start() and ob_end_flush() will solve.I have added …

Member Avatar for CodeAngry
0
330
Member Avatar for Venter

take a look at http://www.mkyong.com/jquery/how-to-add-remove-textbox-dynamically-with-jquery/

Member Avatar for IIM
0
66
Member Avatar for rsridhar420

getElementById returns all elements with element name attribute as specified in the double quotes. Take a look at quote from w3.org > The getElementsByName(name) method takes a string name, and must return a live NodeList containing all the HTML elements in that document that have a name attribute whose value …

Member Avatar for IIM
0
139
Member Avatar for ajay09payal

either run this and there check the size of upload_max_filesize http://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize <?php phpinfo(); ?> Or you can check it in config file of php php.ini . Check the size,if you want to change it,directly change the size there. Also there is restrictions on maximum number of files allowed to upload.So …

Member Avatar for IIM
0
181
Member Avatar for tanya1989

It seems that there are some "." separated values that only has one column,thats why it is returning out of bound exception. Do one thing ,instead of System.out.println(values[0]); Frist print length of array to see if your input is correct System.out.println(value.length); Check if it is less than 2 at any …

Member Avatar for stultuske
0
335
Member Avatar for rolanduk

This error is because you are using somewhere header() method which is used after outputing some value > Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. It is a very common error to …

Member Avatar for rolanduk
0
445
Member Avatar for sagisgirl

no sagisgirl.you don't have to put this in phpmyadmin. place this code in your php file as mysql doesn't recognises php variable and syntax.

Member Avatar for masterjiraya
0
361
Member Avatar for Daniel Claff

Please enclose your code in Code tag so it is in proper format to read. By the way,as per your problem,just use anchor tag of html with href as the data from database <?php echo "Please enter a genename"; $Genename = mysql_real_escape_string($_POST['name']); $ID= mysql_query("SELECT ID FROM database.nodefinal WHERE Genename='$Genename'"); $ID …

Member Avatar for masterjiraya
0
271
Member Avatar for mferarri
Member Avatar for Daniel Claff

you have used echo in href so it was referring to localhost/project/echo.So remove inner echo <?php $Geneprocess="http://google.com"; echo "<a href= '$Geneprocess'>$Geneprocess</a>"; ?> or you can write it in simple way inside html tags <html> //write head ,body section <a href = "<?php echo '$Geneprocess';?>"><?php echo '$Geneprocess';?></a> </html>

Member Avatar for Squidge
0
250
Member Avatar for HelloPeople1

you can enclose method with with if-else condition or switch case condition(Note:- java 7 supports string in switch case.) and depending on calue call methods

Member Avatar for JamesCherrill
0
290
Member Avatar for chdboy

Connection Timeouts (assuming a local network and several client machines) typically result from a) some kind of firewall on the way that simply eats the packets without telling the sender things like "No Route to host" b) packet loss due to wrong network configuration or line overload c) too many …

Member Avatar for chdboy
0
909
Member Avatar for Mrewan79

Are you saying you want to send some other value on select of drop down.Instead of text use value. var bodytype=document.getElementById("bodytype"); alert(bodytype.options[bodytype.selectedIndex].text); alert(bodytype.options[bodytype.selectedIndex].value); document.getElementById("bodytype").value=bodytype.options[bodytype.selectedIndex].text; Your html <select id="bodytype" name="bodytype"> <option value="F">fat</option> <option value="L">lean</option> <option value="SL">slender</option> <option value="S">short</option> <option value="T">tall</option> </select>

Member Avatar for IIM
0
144
Member Avatar for marcel.gybels
Re: hpp

It seems there is no error in above line.Error might be in lines that you have not included.Check that. As per error,you are missing commas(,)check that

Member Avatar for Ancient Dragon
0
150
Member Avatar for jessicam93xx

jessicam your URL is incorrect...Please check if you are providing correct URL

Member Avatar for skliz
0
924
Member Avatar for jessicam93xx

phpMyAdmin lets you define foreign keys using their "relations" view. But since, MySQL only supports foreign constraints on "INNO DB" tables, the first step is to make sure the tables you are using are of that type. To setup a foreign key so that the PID column in a table …

Member Avatar for IIM
0
291
Member Avatar for B0716L

@JorgeM: you are correct but it will not work as he is explicitly changing margin to 0. <div id="a" style="margin: 0; "> @B0716L: remove style from your div id "a" and then add what JorgeM in your css or you can just replace that in your div also. style type="text/css"> …

Member Avatar for B0716L
0
117
Member Avatar for hbm11

As pritaeas said you are missing quotes in line 10 and 12. <?php include_once("template_pageTop.php"); ?> //missing closing double quote after php <div id="pageMiddle"> </div> <?php include_once("template_pageBottom.php"); ?>//missing closing double quotes

Member Avatar for hbm11
0
247
Member Avatar for NardCake

I have worked with many horrible codes with almost no comments.All Javascipt code in a single line.Many ope source projects are based in similar fashion.Some of them with on which i have worked on are tinyMCE editor,CKEditor,.... Easy way to use them is to use any IDE and format them.I …

Member Avatar for deceptikon
0
565
Member Avatar for StefanRafa0

you can use google translate api https://developers.google.com/translate/v2/libraries

Member Avatar for StefanRafa0
0
177
Member Avatar for cobbinaloic

check http://en.wikipedia.org/wiki/Mashable to have ide about this site http://www.freewebsitereport.org/www.mashable.com to view earnings of mashable.com from ads

Member Avatar for IIM
0
201
Member Avatar for MuthuM123

i think so you are referring to make 2 linked drop down.So for that you have to make ajax call and then it will work fine.

Member Avatar for IIM
0
253
Member Avatar for ChargrO

validation is correct but i think you are taking wrong value of Verb Use var Verb = VerbSelect.options[VerbSelect.selectedIndex].value;//you are using .text ,it will return text but you want value

Member Avatar for radhakrishna.p
0
142
Member Avatar for cyberdaemon

you can place where clause after your last line at the end or after line 92. SELECT distinct MATERIAL ,Description ,Material_Type -- ,Requested_Delivery_Date ,ATP_check ,Delivering_Plant ,Order_Quantity ,Held_by_Finance ,Rejected_OOS ,Rejected_Others ,ISNULL(Open_Order_Quantity,0) AS Open_Order_Quantity ,ISNULL(Order_Quantity_NKA,0)as Order_Quantity_NKA ,ISNULL(Order_Quantity_RKA,0) AS Order_Quantity_RKA ,ISNULL(Order_Quantity_Others,0) AS Order_Quantity_Others ,ISNULL(Stock,0) AS Stock ,ISNULL(DSD_Delivery,0) AS DSD_Delivery ,ISNULL(OUtBound_Haulage,0) AS OUtBound_Haulage ,ISNULL(Total_OutBound_items,0) …

Member Avatar for cyberdaemon
0
294
Member Avatar for Martin C++

take a look at http://stackoverflow.com/questions/3453831/how-to-logout-session-if-user-idle-in-php

Member Avatar for pritaeas
0
212
Member Avatar for ddanbe

> When a switch statement contains more than one switch section, you must explicitly terminate each section, including the last one, by using one of the following keywords: > return > > goto > > break > > throw > > continue http://msdn.microsoft.com/en-us/library/vstudio/843c4c28.aspx

Member Avatar for ddanbe
1
366
Member Avatar for hanan-kh

after line 5 you are not executing the mysql query. Call the method mysql_query($strSQL ); See the php manual http://php.net/manual/en/function.mysql-query.php Also there are few more erros .Check the code from line 5 $strSQL = "SELECT * FROM yourtable WHERE ID=" . 1; $result = mysql_query($strSQL);//missing this line while( $row = …

Member Avatar for hanan-kh
0
233
Member Avatar for jithinjohny

yes even i too agree with both james. I would suggest you not to go with any IDE until you are proficient enough,because it will not only hinder you from understanding the syntax but also makes you dumb enough to be dependent on IDE for errors.You may use Notepad++ or …

Member Avatar for jwenting
0
1K
Member Avatar for ChargrO

the problem is there in your element name.there is no element with name "bodytype".Here according to your problem,there must be a checkbox whose name must be "bodytype". for (var i=0; i < document.LimGenerator.bodytype.length; i++)//there is no element with name bodytype { if (document.LimGenerator.bodytype[i].checked) { var body_val = document.LimGenerator.bodytype[i].value; } } …

Member Avatar for radhakrishna.p
0
226
Member Avatar for SomSamui

there are errors in your code <select name='select1' onchange="formName.submit()"> It should be <select name='select1' onchange="form1.submit()">//the name of the form

Member Avatar for SomSamui
0
237
Member Avatar for t_thakar

@pixel : there is only one table.You have to use alias of one table and join the table. Actually it must be using a same table The query can be something like this SELECT * FROM yourtable WHERE PID NOT IN ( SELECT ID FROM yourtable )

Member Avatar for pixelsoul
0
153
Member Avatar for rakwel10

The reason for that be the div size greater than the page and it results in scroll bar.If you do overflow:hidden ,it will not fix error,but just hide it. So better fix the size of your container. I can't see the problem in your site so can't tell the exact …

Member Avatar for rakwel10
0
716
Member Avatar for subhashini.sathish.12

How is JavaScript different from Java? The JavaScript programming language, developed by Netscape, Inc., is not part of the Java platform. JavaScript, does not create applets or stand-alone applications. In its most common form today, JavaScript resides inside HTML documents, and can provide levels of interactivity to web pages that …

Member Avatar for IIM
0
132
Member Avatar for Fix_It

take a look at http://msdn.microsoft.com/en-us/library/windows/hardware/ff551948(v=vs.85).aspx

Member Avatar for Fix_It
0
129
Member Avatar for unikorndesigns

There are many things that you must keep into consideration while coding.Security doesn't depends on what you are using but how efficiently you are using that language. * It depends on how securely you are writing code for your project.If you are taken basic injections,sql injections taken into consideration while …

Member Avatar for deceptikon
0
246
Member Avatar for cheesy_ninja45

you can get a lot of result by just searching google.Take a look http://lmgtfy.com/?q=fibonacci+series By the way in fibonacci series:- The next number is found by adding up the two numbers before it. The 2 is found by adding the two numbers before it (1+1) Similarly, the 3 is found …

Member Avatar for somjit{}
-2
207
Member Avatar for ChargrO

First of all correct line from line 122-128.**<h3>** must be used.And instead of just id add any tag like div or span.For now i have taken as div. <td><h3> <div id="LimerickOutput"> There was a fat butcher called Bill Who cooked more than he wanted to kill One day he sat …

Member Avatar for ChargrO
0
209
Member Avatar for thewayoftheduck

public static int FindBegingMarker (String Genome, int begin)//line 36 variable name should not be enclosed by double quotes. public static int FindEndingMarker (String abc, int begin)//line 42 variable name should not be enclosed by double quotes. public static boolean IsAGene(String Gene)//line 63 variable name should not be enclosed by double …

Member Avatar for thewayoftheduck
0
275
Member Avatar for thewayoftheduck

method name are case sensitive,it is charAt() not CharAt.Line 51 and 52 .also if condition must be boolean not integer.So use == operator if (ChosenWord.charAt(p)== Letter.charAt(0)) display.setCharAt(p, Letter.charAt(0)); in line 52 ,use proper syntax of array.it must be square brackets System.out.println(status[num]);

Member Avatar for IIM
0
329
Member Avatar for Dani

Even child birthday on todays date is taken as prank. My friends birthday was today,noone believed that and dashed him down for making false story.Later he got a birthday wish from his manager.Then we all realised that he was not telling lie and making fool out of us. :P

Member Avatar for pritaeas
0
324
Member Avatar for pixelsoul

there are many bugs:- 1) > returned '0 seconds'; instead of this it should be return '0 seconds'; 2) error in line 8.array index should not be there. It should be $a = array( 12 * 30 * 24 * 60 * 60 => 'year', http://php.net/manual/en/language.types.array.php 3) > ifelse ($d …

Member Avatar for pixelsoul
3
363
Member Avatar for asifalizaman

@deceptikon : check this problem.I think so they are referring to this ![3d9e7f76cceaa05b18209adc98415cf6](/attachments/large/3/3d9e7f76cceaa05b18209adc98415cf6.png "3d9e7f76cceaa05b18209adc98415cf6")

Member Avatar for IIM
2
380
Member Avatar for ChargrO

the error is in lin 7. Why are you using eval function here?? > The eval() function evaluates or executes an argument. > > If the argument is an expression, eval() evaluates the expression. If the argument is one or more JavaScript statements, eval() executes the statements. this is the …

Member Avatar for IIM
0
207

The End.