Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New Coder
    Join Date
    Aug 2010
    Location
    myeik
    Posts
    81
    Thanks
    6
    Thanked 5 Times in 5 Posts

    photo update problem

    i want to edit my text in my document but when i edit my text and i not choose image button and click update ,
    The problem is image is not show when i call the edit id

    the code for my list is
    list.php
    PHP Code:
        <?php       printf('<a href="edit.php?exid=%d" title="Edit user"  >Edit</a>',$ex_rows[0]); ?>
    edit.php
    PHP Code:
     if(isset($_GET['exid']))
    {
          $exid = $_GET['exid'];
    }
          if(isset($exid)){
        $result1 = mysql_query("SELECT * FROM exhibition WHERE ex_id='$exid'");
         $row=mysql_fetch_assoc($result1);
       <input name="photo" id="photo" type="file" size="40" value="<?php echo $row['ex_photo']; ?>"/> 
    }
    And i can't update image is empty ?
    So,How to i solve to need?
    Thanks
    Last edited by minkoko; 01-04-2013 at 07:17 AM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •