Click here to Skip to main content
15,913,685 members

Comments by Bhavanisankar V (Top 4 by date)

Bhavanisankar V 10-Apr-21 8:21am View    
Hi @balboos,
Finally solved it using javascript. Thanks for your guide.
Here is the code I have used:

function getId(val){
            //We create ajax function
            $.ajax({
                type: "POST",
                url: "data.php",
                data: "emp_id="+val,
                success: function(data){
                    $("#e_name").html(data);
                   
                }
            });
        }
Bhavanisankar V 9-Apr-21 10:14am View    
And finally I have an doubt. In second entry do I need to insert the SQL statement with where clause. If not, then which to write in it. If so, then how to write in the where clause, is it like '....where val;'. Is this correct?
Bhavanisankar V 9-Apr-21 10:10am View    
Ok thanks, will surely work on it.
Bhavanisankar V 9-Apr-21 9:14am View    
Hi, @balboos.
First of all, thanks for your reply. I have tried your solution, but I think I am missing something. Then onchange event is not happening even after adding the javascript and onchange property. Can you please tell me is there anything to be added.
Thank you.