www.webdeveloper.com
Results 1 to 5 of 5

Thread: photo retrieve from database

Threaded View

  1. #1
    Join Date
    Feb 2014
    Posts
    1

    photo retrieve from database

    PHP Code:
    $sql "select filename from people where id = 15";
                    
    $result mysql_query($sql);
                    while (
    $row mysql_fetch_array($result))
                    {
      echo 
    "<img src=\"admin/images/" $row['filename'] . "\" alt=\"\" /><br />";
                    } 
    Last edited by NogDog; 02-14-2014 at 10:20 AM. Reason: added [PHP] tags around code

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles