Click here to Skip to main content
14,638,900 members
Rate this:
Please Sign up or sign in to vote.
See more:
<?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
Rate this:
Please Sign up or sign in to vote.

Solution 1

please specify error you are facing
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

there is no error,
but values are not going to insert into database
   
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100