Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
PHP
<?php

if(isset($_POST["edit_submit"]))
 {

  $sr_no=$_POST['sr_no'];
  $username=$_POST['username'];
  $first_name=$_POST['first_name'];
  $last_name=$_POST['last_name'];
  $img=$_FILES['uploadfile']['name'];
  $email=$_POST['email'];
  $mobno=$_POST['mobno'];
  $country=$_POST['country'];
  $city=$_POST['city'];
  $address=$_POST['address'];
  $zip=$_POST['zip'];
  $sex=$_POST['sex'];

  $target_path      ="components/com_test/views/default/tmpl/uploaded-images/";
  $target_path      =   $target_path . basename( $_FILES['uploadfile']['name']);

  }

  $Update = "update proj_tbl set sr_no='$sr_no',username='$username',first_name='$first_name',last_name='$last_name',img='$img',
  email='$email',mobno='$mobno',country='$country',city='$city',address='$address',zip='$zip',sex='$sex' where sr_no='$sr_no'";
  $updatesql = mysql_query($Update) or die(mysql_error());


?>
Posted

please specify error you are facing
 
Share this answer
 
there is no error,
but values are not going to insert into database
 
Share this answer
 
Comments
vyas_pratik20 4-May-12 7:33am    
It must be problem with were clause print and check value of $sr_no

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900