radhakrishna.p 29 Posting Whiz in Training

hi nadiam,
i think you are using $rw variable out of the scope. let me know is $rw globally defined variable in your php page?

pls notice

  $rw = mysql_fetch_array($sql);  // you defined here
}  // closed loop here
}  // closed loop here
?>
Event Name : <input type="text" name="ename" value="<?php if($rw) {echo htmlentities($rw['event_name']);} ?>" required />

that might be a problem check it once

let me know the status

happy coding

radhakrishna.p 29 Posting Whiz in Training

hi nadiam ,
first you have to know one thing about radio buttons functionality
if you want select one radio button among three or group of radio buttons then you should go like as follows (name of radio buttons are same)

<input type="radio" name="status" value="unconfirmed"> unconfirmed
<input type="radio" name="status" value="attended"> attended
<input type="radio" name="status" value="not attended"> not attended

from the above group you can select only one

similary what i am understanding from the given picture & the code is
for example your giving the same names(suppose unconfirmed column) to all the radio buttons of unconfirmed column in all rows so you could select only one from the entire unconfirmed column not on each record

try to change your code to give different names to each row column group

what i mean is try to give as follows for each row

<input type="radio" name="status[some_dunamic value_for_this_row]" value="unconfirmed"> unconfirmed
<input type="radio" name="status[some_dunamic value_for_this_row]" value="attended"> attended
<input type="radio" name="status[some_dunamic value_for_this_row]" value="not attended"> not attended

so that you can achieve your functionality successfully.

pls try do as above said

let me know if you any doubts in my clariification

note : sorry for my poor written skills

note: comments are appreciated

radhakrishna.p 29 Posting Whiz in Training

hi BenWard ,

i dont know exact solution for your problem but try with this

pls replace this £ symbol with '&pound' word at php side and send these results to your webpage through AJAX as it is it will produce the currency symbol as you expected

i am not sure but its work fine

let me know the status

have a great day

go through this URL it gives better clarification

http://webdesign.about.com/od/localization/l/blhtmlcodes-cur.htm

note : comments are appreciated

radhakrishna.p 29 Posting Whiz in Training

hai KamiNuvini,

you have to modify your script code as follows so that you will get your answer

$(document).ready(function(){

    $("button").click(function(){
        var long_url_txt = $("#longurl").val();  // reading value from your text field here
        $.ajax({
            url:"shortify.php",                  // where you want to pass your request
            data:"long_url_value="+long_url_txt,   // passing textfield values to desired php page
            success:function(result){
              $("#shorturl").html(result);  // fetching and placing your result
            }
        });
    }); 

});

please go through the bellow url you will find more information regarding this requirement

http://www.w3schools.com/jquery/ajax_ajax.asp

let me know the stauts

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai Albert Pinto

please go thru this url it may helps you in this regard

http://cakebaker.wordpress.com/2006/04/15/file-upload-with-cakephp/

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai Maideen,

i think the following statement(at line no 26 in Search.php) might be the problem

you need to change from this

while($row = $stmt->fetch());   

to like this

while($row = $stmt->fetch()){
// your code goes here ....

}

i think you got the point and reason too

let me know the status

radhakrishna.p 29 Posting Whiz in Training

hai Webville312

you havn't set the minDate Property in your code
try to change your code as follows its work fine for myside

$( "#datepicker" ).datepicker({ dateFormat: 'yy-mm-dd',changeYear:true,minDate:0,changeMonth:true,yearRange:'1900:2002'});

check it once and let me know the status
happy coding

[edited]

radhakrishna.p 29 Posting Whiz in Training

hai Webville312,

i think u need to set the minDate property for achieving this like as follows (incase if you are using Jquery Datepicker)

$("#datepicker").datepicker({ minDate: 0 });

let me know the status

happy coding

radhakrishna.p 29 Posting Whiz in Training

please mark this thread as solved if you got answer

radhakrishna.p 29 Posting Whiz in Training

hai rexmatthew,

just suggestion only:

please try to do like as follows

change from this

 <script>
    jQuery.noConflict();
       // Put all your code in your document ready area
       jQuery(document).ready(function($){
            // Do jQuery stuff using $
          $("div").hide();
        });
     // Use Prototype with $(...), etc.
      $('someid').hide();
</script>

to this (we have to use the $.noConflict() this way i think )

 <script>
jQuery = $.noConflict();
    // Put all your code in your document ready area
   jQuery(document).ready(function(){        
        jQuery("div").hide();
   });
   // Use Prototype with $(...), etc.
  jQuery('someid').hide();
</script>

let me know the status

any comments are appreciated

radhakrishna.p 29 Posting Whiz in Training

hai joseph.lyons,

i dont know whether you got my point or not

no problem at all i think you are in the learning stage

i said use either of one way but you included both

i mean in your code use this line (in this case you have to enter your input in the dialog box)

String pubName = JOptionPane.showInputDialog("Please Enter the pubs name you wish to search.");

or this line (in this case you have to enter your input at command prompt)

String pubName = sc.next();

thats it

please do accordingly and let me know the status as well as if you have any doubts in my clarification

any comments are appreciated

radhakrishna.p 29 Posting Whiz in Training

hai chdboy,

as above experts said

you may also try like this

import java.sql.DriverManager;
import java.sql.Connection;

public class connectionDB 
{
    public static Connection getCon()throws Exception 
    {
       Class.forName("your_database_driver_name_goes_here");
       Connection con = DriverManager.getConnection("your_connection_string_here","user_name_here","password_here");
       return con;
    }
}

call the getCon() method wherever you want by using its class name directly as follows

Conncetion con = connectionDB.getCon()

let me know the status

any comments are much appreciated

radhakrishna.p 29 Posting Whiz in Training

hai ASWEDAN,

i have a small doubt

let me know what does the statement means at line no 7 ?

If Con.State = ConnectionState.Closed Then

in the above statement r u going to assigning values are comparing values

i donot have a great knowledge in vb.net but it seems to be invalid condition check

i think it will be like as follows

If Con.State == ConnectionState.Closed Then

check it once let me know the status.

radhakrishna.p 29 Posting Whiz in Training

hai ChargrO,

small suggestions: (along with above updates of your code)

you got the values of dropdownlist Direction,Verb,DirectionRhyme correctly

you have to do exactly same thing for the remaining drop down boxes

but you are displaying the values of remaining dropbox values directly like

f.occupation.value , f.Cname.value , f.Rname1.value .... etc

please do same as above for the remaining dropdown box values before displaying the values by using document.write()

thats the only thing you have to do for getting the desired result as you wish

please do those modifications in your script code

let me know the status after the modifications as well as if you have any doubts in my clarification

happy coding

radhakrishna.p 29 Posting Whiz in Training

have you tested your code(after adding sqljdbc.jar to your project build path)?

and let me know the status

radhakrishna.p 29 Posting Whiz in Training

hai joseph.lyons,

you need to take the input value for pub name to search from either of the one mechanism

by using this way-1

 String pubName = JOptionPane.showInputDialog("Please Enter the pubs name you wish to search.");
 // this mechanism expects value for pubname from its input box

or using this way-2

String pubName = sc.next();    // this mechanism expects input value for pub name from the command prompt

i think this might be the one reason:

when you came after the vale given into the JoptionPane.ShowInputDialog() method your programs is waiting for the user input which takes from command prompt until you enter the value (i mean this sc.next() makes your program like that)

but you did not do that i think.

thats the reason your program was stopped there without executing the remaining statements

please use one of the above ways for getting input from the user

and make changes to your program accordingly the ways what i described above

i think you will get my point

let me know if you have any doubts in my calrification as well as the status after the modification of your program

any comments are appreciated
[modified]

radhakrishna.p 29 Posting Whiz in Training

could you please mark this thread as solved if you got your answer

thanks

radhakrishna.p 29 Posting Whiz in Training

hai silvercats,

instead of onblur() use onkeyup() or onkeypress() for this requirement

check it once by adding any of the actions to the feild

let me know the status

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai Naruse,

the following URL may helps you

http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.getpixel.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1

let me know the status

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai milkman93

as somjit{} said along with that, you may use static block concept for your requirement like as follows

class SampleTest
{
  static{
       ArrayList<String> arr = new ArrayList<String>()
       arr.add("A"); 
       arr.add("B"); 
       // code for printing these array list values values
  }
}

and these static blocks are executed while class is loading without creating object

let me know if you have any dioubts in my clarification

radhakrishna.p 29 Posting Whiz in Training

hai jmw5598,

i am not much aware of Connector J but
i forgot to tell one more thing

you need to add/copy/include the mysql related jar file to your project libraries that jar file you can find in your database installation folder

i mean YOUR_DB_instalation_folder/lib/ (please check there you can find it there)

please try to do like that

and let me know the status

haooy coding

radhakrishna.p 29 Posting Whiz in Training

hai chdboy,
please do as follows

Right click on Your Project
    ->then click on BuildPath
      -> then go to Libraries
       ->then click on Addexternaljar  
       and then click ok 

thats it

radhakrishna.p 29 Posting Whiz in Training

hai chdboy,

please add/include sqljdbc.jar file to your project build path

check it once after adding the jar file to your project

let me know the status

radhakrishna.p 29 Posting Whiz in Training

hai jmw5598,

i think you have not loaded the mysql related driver in order to provide communication between your application and databse

for this , add this line before at line 20 in your ConnectionManager class

Class.forName("com.mysql.jdbc.Driver");

then everything goes fine

please refer this url it explains everything

http://www.vogella.com/articles/MySQLJava/article.html

check it once and let me know

radhakrishna.p 29 Posting Whiz in Training

hai Lamirp

your code works fine for the first time.

when you call that method makeCheckBox(Jobs object) for second time it throws an error to you
because you are creating the Jcheckbox with the same reference of the Jcheckbox what you created for first time

so i think you need to change your code

let me know am i correct or not

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai toldav,

yeah thats exactly correct what JamesCherrill said,

in simple words(as of my knowledge),

Note 1:

if the instantiation of a class is necessary,then its better to make the methods of that class as instance methods only.

Note 2:

if the instantiation of a class is not necessary then its better to make the methods of that class as static methods only

reason is same as described by JamesCherrill

my apologies for my poor written skills

i hope that you got the point.

happy coding.

any comments are appreciated...........................

radhakrishna.p 29 Posting Whiz in Training

hai solomon_13000,

this is just suggestion only :

i think that might be problem with your class couldn't find the path what you specified for ImageIcon class Objects

so try to change the creation of ImageIcon class Object like as follows at line no 11 and 12 in your code

ImageIcon ONE = new ImageIcon(getClass().getResource("/IFDesign/images/green.jpg"));

check it once and also do same for the remaining image icons creation code

let me know the status

happy coding

radhakrishna.p 29 Posting Whiz in Training

yeah you are right

radhakrishna.p 29 Posting Whiz in Training

hai techyworld,

if you dont have any parameter then remove the entry from the $ajax() request like as folows

 $.ajax(                       // this is also valid ajax call 
 { 
   url:"marks.php",
   type:"POST",
   dataType: "json",
   success:function(data){
    //do something.
   }
};

passsing data to the resource is not compulsarily in ajax concept (based on your requirement you need to pass those data values to the particular resource)

go through the following url it will explains different modes of $ajax() calls

http://api.jquery.com/jQuery.ajax/

let me know if you have any doubts in my clarification

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai toldav,

can you post the details of LinearEquation class once here? (if you have no problem)

so that we try to give a way of solution

radhakrishna.p 29 Posting Whiz in Training

hai rouse

i am confused about one thing as shown bellow

In the display the two <div>s are stacked vertically which is one of the problems

could you explain me clearly about the requirement?

and in the second thing,

you have seen some red marks right

its border style which applied by css class for your two divs called pictureBoxRight,pictureBoxleft

go in your css and find for the classes of both divs (bellow is what you are given in your css):

pictureBoxRight {
    display: block;
    width: 500px;
    height: 475px;
    border: 1px solid red;   // this css property makes that red borders around divs on your page
    padding: 0.2em;
    float: right;
}
pictureBoxLeft {
    display: block;
    width: 450px;
    height: 475px;
    border: 1px solid red; // this css property makes that red borders around divs on your page
    padding: 0.2em;
    float: left;
}

if you want to change that then try to change the border property as follows

border: 1px solid red(or) blue (or) black; // whatever color you want here 

(or)

border:none; // set this, if want no borders around divs

let me know the status

happy coding

**any comments are appreciated on my clarification **

radhakrishna.p 29 Posting Whiz in Training

hai MICHAEL,

go through the following URL

http://www.daniweb.com/software-development/java/threads/449703/randomnumber-without-duplicate

read the bguild post there (i feel thats the great solution for this kind of requirement and make that logic as you needed)

it may helps you for requirement (Random Numbers without duplicates)

happy coding

my apologies to all of you for giving this kind of response for the above requirement

radhakrishna.p 29 Posting Whiz in Training

hai MICHAEL,

colud you explain me clearly what you are going to do
whether you want 5 random numbers between 0 to 78 or something else

can you make me clear on this requirement

so that we are here to help you

happy coding

radhakrishna.p 29 Posting Whiz in Training

please go through the following URL it may helps you for this requirement

http://www.oraclenerd.com/2011/09/drop-database.html

happy coding

radhakrishna.p 29 Posting Whiz in Training

could you just post the picurl column values of your table here?

just i need that column data only

let me check once if you don't have any problem

radhakrishna.p 29 Posting Whiz in Training

hai kamil.metkowski,

i used the url what you shown in the above post as shown bellow

<html>
<head>
<title>this is my first html page </title>
</head>
<body>
<img src="http://metkowski.net/KlempBikes/images/bmx1.jpg" alt="no img found"/>
</body>
</html>

its worked for me but you are saying that gives an error

do you have internet connection to your pc/laptop while running the page?(to display the resouce which is availble in the internet)

i feel this is also one reason for not displaying the image also

check it one more time

any comments are appreciated

radhakrishna.p 29 Posting Whiz in Training

i couldn't understand what you are going to do in the given bellow statement

whether you assigning value to some varable or comparing values of 2 variables

if($total += $pamount=$resproduct_fetch['price_status'] * $deposit=$resproduct_fetch['price_status'])

please be more brefly about your requirement

could you explain what you are going to do with that?

radhakrishna.p 29 Posting Whiz in Training

could you post what kind of error it is?

it would be helpful for us to give a solution if you post the error message here

happy coding

radhakrishna.p 29 Posting Whiz in Training

I needed another eye

what does it means.could you expalin?

let me know

happy coding

radhakrishna.p 29 Posting Whiz in Training

nothing happens when clicking the submit button.

could you explain me breifly somemore what the requirement is?

radhakrishna.p 29 Posting Whiz in Training

hai singularity~,

i think if you echo your $sql variable before executing,it display's as follows

UPDATE book_store SETtitle = '$_POST[title]', isbn = '$_POST[isbn]', price = '$_POST[price]', quantity = '$_POST[quantity]' WHERE ID = '$_POST[id]'

there is no space between 'SET' keyword and 'title'

so please provide space between 'SET' keyword and title

that might be the one giving the error i think

please check it once i guess right or not

let me know the status

radhakrishna.p 29 Posting Whiz in Training

hai foxwizzy,

you done for in your code for editing the entries (see at line 94).

so why dont you follow same procedure for deleting the entry (just suggestion only)? like as follows (at line no 113)

<a href="delete.php?entry_id=<? echo r['current_entry_id']?>">Delete</a>

use the same thing here for deleting entries by passing its entry id value to the appropriate page(i mean 'delete.php' if it is existed).

i think you got my point and its work fine for this kind of requirement

let me know if you feel any doubt in my answer (if you dont want like that kind of answer)

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai to all,

by look at your code the following these 2 things might be the one reason for the above problem i thought

at line no 44 and 45 of HangmanFrame class

you declared the 2 class variable references as a instance variavbles as follows

private HangmanGame game;
private WordGenerator myWord;

but those 2 references are declared but not instanciated at all thats the reason you got the NullPointerException

but inside the constructor you created those 2 objects but those references scopes are limited to inside the constructor only right.

i think you got my point

so replace these 2 line of inside the constructor

WordGenerator myWord = new WordGenerator();
HangmanGame game = new HangmanGame(myWord.getWord()); 

as follows

this.myWord = new WordGenerator();
this.game = new HangmanGame(myWord.getWord());

please try to do like that it may gives a solution i think

let me know the status after modifying the code

happy coding

Note: any comments are appreciated

radhakrishna.p 29 Posting Whiz in Training

my apologies for the above post i couldnt read the code properly that was my mistake

please go thru this

as bguild said,

move line 10 out side of the main() method. if do that then those are available to all the methods by changing variable usage like as follows

1.instead of using 'base' variable in the base() method

base = input.nextFloat();

replace as follows

this.base = input.nextFloat();  // this line says current class instance method using current class instace variable(if you are doing the assignments inside methods)

otherwise if you want to assign values to those varibles using class object reference do as folloes

class_ref_name.base = input.nextFloat(); // like as for other variables 

like this you do for the remaining variable

i think the following code would be better one (after modifying your class)

 class Area3
    {
      public Scanner input =null;
      public float base, height, area;
    public static void main(String args[]){

    // your remaining code
      input = new Scanner(System.in);
      Area3 tri = new Area3();
      // call those methods        
      // your remaining code 

    }// end of main

    public void base(){
            System.out.println("enter value for base");
           this.base = input.nextFloat(); 
    }

    public void height(){
           System.out.println("enter value for height");
           this.height = input.nextFloat(); 
    }

    public void area(){
          this.area=this.height*this.base/2;
        // your code 
    }
    }// end of class

then check it once remaining is as you wish

let me know the status

radhakrishna.p 29 Posting Whiz in Training

as bguild said,

move line 10 out side of the main() method. if do that then those are available to all the methods by changing variable usage like as follows

1.instead of using 'base' variable in the base() method

base = input.nextFloat();

replace as follows

this.base = input.nextFloat();  // this line says current class instance method using current class instace variable

like this you do for the remaining 2 variables

then check it once remaining is as you wish

let me know the status

radhakrishna.p 29 Posting Whiz in Training

hai adikimicky

please do as JamesCherrill said he is right

in order to send and receive data properly between sockets (client and server) we have to use same kind of data flow related classes in java

you used streams for receiving data at Client side but you are sending data to client which is irrelavent data type than at receiving side

replace the following code at your server side code from line no 22 to 24

OutputStream s1out=s1.getOutputStream();
DataOutputStream dos = new DataOutputStream(s1out);
dos.writeUTF("hello");
dos.flush(); // dont forget to call this method 
dos.close();

so that you will get the output as you want

let me know the status

happy coding
suggestion:

dos.flush(); // dont forget to call this method because which confirms that all the data has been sent
radhakrishna.p 29 Posting Whiz in Training

there is an event called onkeypress() for the textfeild input element of html. you can call the required function on that moment like as follows

<input type="text" name="you_text_feild_name" id="you_text_feild_id" onkeypress="your_function_name()"/>

please try to call your java script function as described above

so that you will get the output as you want

let me know the status

happy coding

radhakrishna.p 29 Posting Whiz in Training

we can achieve your functionality by using isNaN(value_of_your text feild) function of java script

the following URL gives better idea on your requirement and how to use the isNaN() function for your script code

http://javascriptexample.blogspot.in/2008/07/isnan-function.html

let me know if you have any doubts in my clarification

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai Edwinner,

can you explain what you are going to do with the following query

$query = ("UPDATE customers SET firstname = '$firstname' OR lastname = '$lastname' OR phone = '$phone' OR address = '$address' OR city = '$city' OR state = '$state' OR zip = '$zip' WHERE customernumber = '$id'");

Note: dont need of paranthesis at thw begining '(' and end ')'of the above statement

radhakrishna.p 29 Posting Whiz in Training

at line 12-14 i think you need to change the argument type what i mean is

your

printString(chr *string)

method expects address of the variable/ pointer varible instead of passsing value of the variable while calling the method

but you called this method by passing the value directly so that is the reason you got skipping over the function call

please check by placing the bellow format of calling code from line 12-14

printString(&a);

instead of

printString(a);

modify remaining code accordingly

its works fine

let me know the status after the modifications

happy coding