545 Posted Topics
Re: 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) | |
Re: 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. | |
Re: 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. … | |
Re: 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 … | |
Re: @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 … | |
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?? | |
Re: what exactly is the problem in this code(if any)?what help you need from us? | |
Re: 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 … | |
Re: take a look at http://www.mkyong.com/jquery/how-to-add-remove-textbox-dynamically-with-jquery/ | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
| |
Re: 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> | |
Re: 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 | |
Re: 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 … | |
Re: 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> | |
Re: 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 | |
Re: jessicam your URL is incorrect...Please check if you are providing correct URL | |
Re: 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 … | |
Re: @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"> … | |
Re: 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 | |
Re: 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 … | |
Re: you can use google translate api https://developers.google.com/translate/v2/libraries | |
Re: 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 | |
Re: 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. | |
![]() | Re: 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 |
Re: 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) … | |
Re: take a look at http://stackoverflow.com/questions/3453831/how-to-logout-session-if-user-idle-in-php | |
Re: > 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 | |
Re: 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 = … | |
Re: 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 … | |
![]() | Re: 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; } } … |
Re: 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 | |
Re: @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 ) | |
Re: 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 … | |
Re: 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 … | |
Re: take a look at http://msdn.microsoft.com/en-us/library/windows/hardware/ff551948(v=vs.85).aspx | |
Re: 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 … | |
Re: 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 … | |
![]() | Re: 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 … ![]() |
Re: 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 … | |
Re: 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]); | |
Re: 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 | |
Re: 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 … | |
Re: @deceptikon : check this problem.I think so they are referring to this  | |
![]() | Re: 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 … |
The End.