- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 4
- Upvoting Members
- 5
- Downvotes Received
- 11
- Posts with Downvotes
- 9
- Downvoting Members
- 8
- Interests
- ********pr0graMminG*********
105 Posted Topics
Re: you can use an array to enter numbers and print that array in reversible order | |
Hello, I am having trouble fetching content from a web-page, actually i wanted to fetch all the inner text from div name 'displaybody' but my code doesn't seems working, it is fetching all the content of the page and after 4 page successfully fetched i get an error, [CODE][B]Fatal error: … ![]() | |
I am trying to figure out the way to use the nested loop in a proper way but so far i am failed, The loop run to infinity when i run the program which i definitely don't want to do, here is my code, .MODEL SMALL .STACK 100H .DATA var1 … | |
There are so many services which can be used with the interrupt 10h, I'd like to ask the question about two of them whom with i am confused First is, AH = 06H SCROLL UP WINDOW AH = 07H SCROLL DOWN WINDOW While coding in DOS what is meant by … | |
here i've created the first applet but it is not working, [CODE] import java.applet.Applet; import java.awt.*; public class FirstApplet extends Applet { public void paint(Graphics g) { g.drawString("Look at me, I'm a Java Applet!",10,50); } } [/CODE] i am getting no errors but when i am opening the html file … | |
I have a form having two radio buttons and one heading, [CODE]<form name="f1" method="POST" action="<?php echo $PHP_SELF;?>"> Family filter: <ul> <li><input type="radio" name="r1" value="o" onclick="submit();">On</li> <li><input type="radio" name="r1" value="p" onclick="submit();">Off</li> </ul> </form> </div> [/CODE] CSS, [CODE]#filterbox {border-radius:8px; width:208px; margin-bottom:15px; background-color:#e1f6fa;} #filterbox ul{margin: 0; padding: 0; list-style-type: none;} #filterbox ul li … | |
I have a basic question regarding javascript, i need to generate the time table of input number, here is the question have a look at the attachment I'm not achieving the desired output , please help me out, here is the code but it isn't working please provide me with … | |
I've the following code for the two radio buttons but it isn't working i don't know why :S If 'On' is selected it displays 'ON is selected' and so on but it isn't working :S and i want one button to be selected at a time but when i run … | |
Ok, I have two radio buttons 'A' and 'B' and user have a choice to select anyone of them, by default button 'A' is selected but when user come to my website and selects 'B' then selection changes to button 'B' however the problem is, when the user move to … ![]() | |
OK, i wanted my page to post a random post in every 24 hours , so i found that code over the internet, I was trying to understand the code and added the comments to those lines which i understood, however i am not able to understand the complete program, … | |
here why should we have to write [B]c=1[/B] ?? i couldn't understand the logic of writing c=1 :s... please just explain the logic [CODE]void main(void) { int a,b,c=1; a=5; for ( b=a; b>0; b--) { c*=b; } printf ("The Factorial of %d is %d\n",a,c); getch(); }[/CODE] | |
Hello Everybody, please explain me what is pass by reference ,i know what does it mean but i could not find any of its simple example that differentiate between pass by reference and pass by value :( please help me i have spent almost 4 hours searching for it but … | |
Hello everyone, i was reading java tutorials on the internet then i saw this program, [CODE] class Cat { private String mCatName; Cat(String name) { mCatName=name; } public String getName() { return mCatName; } public void setName(String strName) { mCatName = strName; } public void messWithCat(Cat kitty) { kitty = … | |
Re: for a loop, [CODE] for (int i=0; i<5; i=i+2) [/CODE] | |
Hello, I am damned confused about the versions of PHPs , which version include Object oriented PHP ? and which PHP is better to learn ?? please explain | |
i was reading tutorials about php date() function, i wonder how could i write the code that show total number of days of my age till today ? but i am stuck here, [CODE]<form method="POST" action="<?php echo $_SERVER['PHP_SELF'] ?>"> Example: 2010/18/12 </br> <input type=text name="year" value="Year">/ <input type=text name="day" value="Day">/ … | |
Re: you are required to install php, mysql to run .php files so simply download XAMPP and install it into your local machine | |
Hello I have developed a form , i want the user to only input number if a user input any alphabet or symbol ad submit the form the error must appear on the same page, i have done this with form action but i want the error to be shown … | |
this is the simple php for loop, [CODE]<?php for ($a=1; $a<=10; $a++) echo $a . ", "; ?>[/CODE] the output of this program is 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, i want to remove ',' from the last value i want the output should be, 1, … | |
please look at this code, [CODE]for ($count=$num1; $count<=$num2; $count++){ for ($count1=1; $count1<=2; $count++){ echo $count1; } } [/CODE] why this is never ending loop ? when i run this code my browser hanged, why it is happening ?? | |
php url and pagination i have a problem in my code, when i click on page number the page is opening correctly but there are only 6 pages but there is no 7th page but when i am replacing the page number in the url to '7' the page is … ![]() | |
Re: use urlencode and urldecode to display data as url for field_2 , url will be, [iCODE]echo $row['field_2'] ." "." <a href= 'abc.php?field=" . urlencode( $row['field_2'] ) . "'>Click Here</a>";[/iCODE] now create another page and call it 'abc.php' and decode the url in it, [CODE]$link = urldecode( $_GET['field'] ); echo "<center><h1>" … | |
look at the code first, [CODE]<?php $name=$_POST['name']; ?> <form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <input type="text" name="name"> <input type="submit" value="GO" name="submit"> </form> <?php include ('db.php'); if(isset($_POST['submit'])) { mysql_query ("INSERT INTO example (name) VALUES('$name')") or die(mysql_error()); } if (!isset($_GET['startrow']) or !is_numeric($_GET['startrow'])) { $startrow = 0; } else { $startrow = (int)$_GET['startrow']; … ![]() | |
Re: mark it as solved ans speicfy the solution , thats all :) | |
i want my code to Prevent fetching data on page refresh [CODE]<?php $name=$_POST['name']; ?> <html> <body> <form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <input type="text" name="name"> <input type="submit" value="GO" name="submit"> </form> </body> </html> <?php include ('db.php'); if(isset($_POST['submit'])) { mysql_query ("INSERT INTO example (name) VALUES('$name')") or die(mysql_error()); } if (!isset($_GET['startrow']) or !is_numeric($_GET['startrow'])) … | |
php mysql simple form help whats wrong with my code ?? every time i refreh my page a new field is created in database 'example' i want my code to create new field in database only if something is insert in text field here is my code [CODE]<?php $name=$_POST['name']; mysql_connect("localhost", … | |
i've installed a script in my website, here is the script description, [ICODE]http://community.serverstack.net/files/file/13-likeengine-free-facebook-like-script/[/ICODE] and here is the Demo of the script, [ICODE]http://likeengine.ssdemos.info[/ICODE] see the demo, all the results (likes) are appearning on main page and there is no next page option, i want the script to show a next page … | |
i have downloaded a php script , it includes just checksum.md5 file, index.html, file_id.diz and favicon.ico this script requires to add databse and other config , how can i use this script without any config file or php files ? | |
i want to make a calculator in which a user allowed to input two numbers in text fieldand on pressing the particular operation button the operation performed.but how could i restrict user to input only numbers and no strings ?? [CODE] import java.awt.*; import java.awt.event.*; import java.applet.*; public class calsc … | |
what does it mean , use printf in JNI from C ??? i searched alot and found this, [url]http://java.sun.com/docs/books/jni/html/start.html[/url] but didn't find the specific answer :( i need the answer by tomorrow !:( help! | |
In this program i have input name and code in super class and print it, it also print in sub class [iCODE]Manager[/iCODE] I created the object for super class to input name and code, and another object to input Manager's Data, but in the output the Name is showing null … | |
From what I gather as a Java beginner, when accessing instance members, the "this" keyword may apparently be used. see this program, [CODE]class sphere{ static final double PI=3.142; static int count=0; double radius,xcentre,ycentre,zcentre; sphere(){ xcentre=0.0; ycentre=0.0; zcentre=0.0; radius=1.0; count++; } sphere(double xcentre,double ycentre,double zcentre){ this(); // what does this mean … | |
Setter getter ..? what is this and what it does ? i searched over google but didn't find the suitable answer...! | |
Our teacher really sux, he just wrote this down on the board but didn't explain the program :(...after a lot of search i finally understand what is try and catch but what is the meaning of [iCODE]byte b=new byte[255];[/iCODE] in this program ? and why the program is not working … | |
I've coded this program but i am getting this error, EmployeeeMain.java:57: non-static method getdata() cannot be referenced from a s tatic context Manager.getdata(); ^ 1 error I've used the same technique in other program , it is working fine but this program is not working !! Why I am getting … | |
Re: create different classes | |
Re: Huh...exactly same question asked there, [url]http://www.daniweb.com/forums/thread316921.html[/url] are you a same guY ? | |
Re: you simply need to apply [iCODE]If[/iCODE] condition to shut the program if array index equals to 5. Please provide little more details about the program and a piece of code so we can understand a little more what you wanted to do...! | |
Re: Show us your efforts and we'll be glad to help you ! :) | |
I've create a program for the array of objects, here is the code..! [CODE]import java.io.*; class Student{ int rollno; String name; public void setValues (int rollno, String name){ this.rollno = rollno; this.name = name; } public Student getValues(){ Student s = new Student(); s.rollno=this.rollno; s.name=this.name; return s; } } class … | |
Re: use Array.length() to loop through the array , create a temporary variable to arrange (Sort) the numbers..! you've created a garbage program try to create Array loop! | |
Re: [QUOTE=poornimashobana;1352666]hi , this is Poornima i am a trainee in java i want many questions for banking problems in java to get trained where can i get that plz help me else plz send some questions[/QUOTE] please specify you problems | |
In this program how can i overload the pop() method to use two pop() methods (int and float) in a program as i used two push() methods ? [CODE] class Stack{ int StackArrayI[] = new int[3]; float StackArrayF[] = new float[3]; int tos=-1; public void push(int value){ if (tos==2) System.out.print … | |
i've learned arrays, loops, Creating objects and classes, creating methods, Encapsulation, Polymorphism Overloading constructors, Stack what next should i learn ?? | |
Re: please post your errors with line numbers | |
Re: use nested for loop to print, input number of rows from command line argument ! [CODE]for (int i=0; i<5; i++){ // '5' is number of rows !!! for (int j=0; j<i+1; j++){ System.out.print ("*"); } System.out.println (""); }[/CODE] | |
Re: [iCODE]StringTokenizer[/iCODE] is not a constructor there !! | |
Re: Use Math.random() to generate random numbers, create an integer array with 1 row and 6 column ! set each value in array to 0, Switch the random number use 6 cases (1,2,3,4,5,6) if random number equals to 1 then increment to the first position of Array if random number equals … | |
In my program I've created two methods , one with integr type and other with float (line # 20 and 29) !! [CODE]class Stack{ int StackArrayI[] = new int[2]; //0,1,2,3,4,5,6,7,8,9 float StackArrayF[] = new float[2]; //0,1,2,3,4,5,6,7,8,9 int tos=-1; public void push(int value){ if (tos==1) System.out.print ("Stack already Full..!\n"); else StackArrayI[++tos] … |
The End.