How to display an image from the file in the database

I want to be able to display an image from the file that I have stored in a database. In the database, the image is store as a file with numbers. When I go to display only the sign of an image appears. I want to be able to display the image not the symbol for numbers of the image or file. I know I'm close I just can't understand what I'm messing, to get the image to display.

Here is the code:

<? PHP require Connections/Connections.php"?" >

<? PHP

session_start();

{if (isset($_SESSION["fname"]))}

}

else {}

Header('Location:NewRequest.php');

}

? >

<? PHP

$User = $_SESSION ['Pnom"];

$result = $con-> query ("SELECT ALL * from newrequest where Fname ="$User"" ");

? >

<! doctype html >

< html >

< head >

< link href = "CSS/Master.css" rel = "stylesheet" type = "text/css" / > "

< link href = "CSS/Menu.css" rel = "stylesheet" type = "text/css" / > "

< meta charset = 'utf-8 '.

ReviewRequest < title > < / title >

< / head >

< body >

< div class = "Container" >

< div class = "Header" > < / div >

< div class = "Menu" >

< div id = 'Menu' >

< nav >

< ul class = "cssmenu" >

< li > < a href = "Account.php" > account < /a > < /li > ""

< li > < a href = "UpdateAccount.php" > update account < /a > < /li > ""

< li > < a href = "NewRequest.php" > new request < /a > < /li > ""

< li > < a href = "ReviewRequest.php" > Review Request < /a > < /li > ""

< li > < a href = "LogOut.php" > sign out < /a > < /li > ""

< /ul >

< / nav >

< / div >

< / div >

< div class = "LeftBody" > < / div >

< div class = "RightBody" >

< name of the form = "form1" method = "post" action = "" >

< table border = "1" >

< b >

< td = '26' height > name < table >

Location < td > < table >

Description < td > < table >

Image of < td > < table >

< Td > status < table >

< /tr >

<? PHP while ($row = $result-> fetch_assoc()) {? >}

< b >

< class td = "GFied" > <? PHP echo $row ["Fname"];? > < table >

< class td = "GFied" > <? PHP echo $row ['Location'];? > < table >

< class td = "GFied" > <? PHP echo $row ['Description'];? > < table >

< class td = "GFied" > < img src = "<?" PHP echo $row ["numero_imagenom_image"];? > "alt =" "> < table >"

< class td = "GFied" > <? PHP echo $row ['Status'];? > < table >

<? PHP}? >

< /tr >

< /table >

< / make >

< / div >

< div class = "Footer" > < / div >

< / div >

< / body >

< / html >

This is what it looks like when it displays:

Capture3.PNG

How can I actually picture to display?

emrenilo32520834 wrote:

I added the .jpg but the image still does not display, the images are saved in a jpg file.

If the images in the database to follow this format - 1234567.jpg, 9897654.jpg

Then your original code must have worked:

Are the images in their own folder, if so you need to add this folder for code name:

Tags: Dreamweaver

Similar Questions

  • How to display multiple images at the same time in CS6?

    How to display multiple images at the same time in CS6?

    Hello

    If you go to window > reorganize you can choose from several display options. Below, I have chosen two horizontal spaces since I have two images, but you can select other options if you have more than one image.

  • How to display an image on the screen

    I am currently using the following code

    InputStream imageStream = app.getClass().getResourceAsStream("/resources/map.png");
    byte[] data = new byte[2430]; // Store the contents of the image file.
    imageStream.read(data); // Read the image data into the byte array.
    EncodedImage image = EncodedImage.createEncodedImage(data, 0, data.length);
    BitmapField bmpField = new BitmapField();
    bmpField.setImage(image);
    divisionScreen.add(bmpField);
    

    But it does nothing on the divisionScreen. The same screen has some listechamps as items that normally appear. I want to display the image above the items in this list.

    Thanks in advance

    Hello

    Try this way adding image if it works then something is wrong with the wqay you do

    Bitmap objHeaderImage = Bitmap.getBitmapResource ("88Header.png");

    BitmapField = objHeader = new BitmapField (objHeaderImage);

    Note Add the image to your project by right-clicking on your project and selecting Add files.

    This is perhaps the reason why your original way did not work.

    I would like to know if it works or not.

  • How can I transfer data from the database in a variable (or array)?

    I made my request according to the example (http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/). Everything works fine. I changed a single function to query the database - add two parameters and get the value from the table to a string format. A test operation shows that everything is ok. If I want to display this value in the text box, I just do drag and drop off service to this element in Design view

    (< s:TextArea = "153" x = "435" id = "nameText" text = "{getDataMeanResult.lastResult [0] .name}" width = "296" height = "89" / > ").

    Also, it works fine, just a warning and encouraged to use ArrayCollection.getItemAt ().

    Now, I want to send the value to a variable or an array, but in both cases, I get an error: TypeError: Error #1010: a term is undefined and has no property..

    How can I pass a value to the database in a variable? Thank you.

    public var nameTemp:String;

    getDataMeanResult.token = authors.getDataMean (arrayOfNumber [0], dir_id);

    nameTemp = getDataMeanResult.lastResult [0] .name;

    public var nameArray:Array = new Array();

    for (var i: uint = o; i < 3; i ++) {}

    getDataMeanResult.token = authors.getDataMean (arrayOfNumber [i], dir_id);

    NomTableau [i] = getDataMeanResult.lastResult [0] .name;

    }

    And how do I use syntax highlighting in this forum?

    Astraport2012 wrote:

    Thank you.

    Then this simple question: How can I place a mySQL database data in a variable using the wizards FB4 (connect with PHP)?

    If you can show examples please.

    I couldn't find examples. Send data to a field text or DataGrid - much, but no variable.

    the use of assistants? not sure... it is generally a bad idea to rely on them, because they will never fully what you want anyway. I would recommend learning abit of PHP and manage by yourself, because it allows you to manage everything exactly as you wish.

    small example of communicating with a database using PHP + FB4:

    mount a database

    write you a small script that will access your database, get a value, for example:

    ";
    
        while($row = mysql_fetch_array($result))
        {
            if($row['messageID'] == "3")
            {
                print $row['message'];
            }
        }
        print "\n";
    ?>
    

    This will get the message with ID '3 '.

    make an HTTPService in FB4 app to call this Script, as follows:

    
    
        
            
    
            
        
    
        
            
        
        
    
    
    

    and the value must be picked up by the Script and properly stored in a variable

  • How do I change images from the album LIVE always prior to importation and after batch in Photos

    Help

    I have 1000 photos that are in LIVE format from my Iphone 6s.  I need to change this format forever I need to create slide shows and other changes.  Is this possible?  I know how to change each one individually, but obviously prefer a batch processing option.

    Thank you

    JO

    The best way to keep your original Photos to live and create a lot of JPEGs from your Live Photos would be to select all Photos live and use the file > export to export as JPEG files in a folder on your desktop. Set it the JPEG quality and the format of subfolder 'None '.

    Then import this file with JPEG files and use them for your slide show and delete them once again, when you don't need them more.  I find it safer to change the Live pictures to separate the still image video. There is a lot of work to do to revive again.

  • How to display random lines from txt file

    Good morning (or evening all). I am creating an application and want to display random lines of a text file. I know how to create a text file using file connections, but how can I read the random lines of her?

    OK I got it.

    For beginners like me to have a problem in the future, I was not specify my path correctly. It is not enough to land your .txt in the /res folder and wait for the Simulator to load. You must load from SD card or device memory.

    Use the method found here:

    http://www.weask.us/entry/J2ME-BlackBerry-read-write-text-file

    to use it's as simple as that

    StringfName = "file:///SDCard/Blackberry/text.txt";

    String printLine = readTextFile (fName);

    label.setText (printLine);

    Somewhere in your project directory create a directory called SDCard (I did in my res folder).

    In the Simulator go to switch SD card, then load Select Directory and select the new directory of the SD card. This will create the structure of the SD card in the Simulator. Simply move your .txt in the SDCard/Blackberry directory and run your application.

  • How to insulate an image from the background?

    I have a simple chart, I need to isolate (chassis?), because the background is displayed in the design. How can I do this? Thank you!

    When you place the PDF check box click to display import options (or hold down the SHIFT key when you press OK). Select transparent background.

  • How to display an App from the DPS, we have developed in a web browser?

    I need to display on your desktop, in a web browser without using the content viewer. I know that this is possible and it will work exactly the same, but I can't figure out how. Help! TIA

    HI -.

    Here's a link useful documentation: Digital Publishing Suite help | Customization of Web Viewer

    It refers to the next page, which describes how to enable the web viewer:

    Digital Publishing Suite help | Account management tool

    You will see also some references on this page:

    Digital Publishing Suite help | With the help of social sharing

    Hope this helps-

    Brian

  • How to export an image from the video clip of the first Pro to Photoshop for corrections and back.

    I want to export a video clip in Premier Pro on Photoshop for minor corrections throughout, then back to the first Pro. Corrections will be the same for each frame in the video. What is the best way to achieve this? If it makes any difference, I work with clips of R3D monochrome 6 K.

    Hi TR.

    Try to import the file directly in Photoshop. If this does not work, report.

    Thank you
    Kevin

  • How can I stop the download of images from the site?

    This is the first time I installed Firefox for Android. Don't see how I can block images from the web page and just take the content of the text. Thanks for your time.

    You can actually set the same preference under the covers that you would use on Firefox for desktop PC: permissions.default.image. Here's where and how:

    (1) open a new tab to Subject: config (type about: config the Awesomebar and hit the arrow go or tap Enter).

    You can bookmark it for easy future access.

    (2) in the search box, type perm and make a pause while Firefox filter list

    3 scroll to permissions.default.image and type it, and then use the up arrow (^) to change the value from 1 to 2 (of 'allow all' on ' block all the ').

    If you go back to your other tab and load a new page, the images must be missing (assuming that they are not cached).

    Success?

    If there is an add-on for it (I have not checked) that might be easier if you find a site where you want the images because it is a hassle to switch back using about: config.

  • How to display Quick values in the story

    With the help of 11.1.1.6.2

    In a dashboard page, I have a table with a hierarchy of dimension for the organization. If you click on a division he runs a link action to call a script in the browser (javascript in a text on the dashboard section) from the division. If you expand the section, and then click on a market, it calls the function javascript even.

    Then, the Javascript function uses path go to update an analysis in an iFrame on the dashboard page and passes the value of the Division or the market value.

    The analysis of the target has two filters: Division is invited and the market is invited.

    So, after all, my question is how could display two values from the call of the road go into a narrative on the analysis of the target? Or I guess the other question is how to view the filter on the narrative values.

    Sorry for the long explanation, but I hope it makes sense.

    Thanks for any help or suggestion.

    Brad

    Try something using the Div tag
    for ex:
    < div id = filterValues > @{WeekBetween} {Default Value} < / div >
    < script >
    var i = document.getElementById('filterValues').innerHTML;
    document.getElementById('filterValues').innerHTML = aParams ["varDivision"];
    < /script >

    If brand pls help

  • How to disappear an image of the layer from left to right to display gradually the image below, that is solid on the left to slide to the right?

    How to disappear an image of the layer from left to right to display gradually the image below, that is solid on the left to slide to the right?

    No need to clarify, Mark. Thank you very much

  • the RAF files + jpeg - how to display JPEG images

    Hello

    I always shot in the raw files, but after seeing the quality jpeg out of my Fuji x - t1, that I decided to try the b & w jpeg quality of the camera.

    Shooting raw + fine LR5 download files, appear first as b & w, but converted to thumbnails in color and are labeled as raf + jpeg.

    How I see JPEG images separated from raw to fits files.   I produced usually b & w images from the files of the raf, but I would

    in order to compare my conversions b & w for ooc versions.

    Roger

    There is an option in Lightroom preferences to treat JPEG files next to raw as separate files files. Make sure that this option is selected and then Lightroom will import two formats.

  • How to transfer a picture from a file to display on a site like craigslist?

    How to transfer a picture from a file to display on a site like craigslist? Donald strickland

    http://www.craigslist.org/about/Help/FAQ

    Read the FAQ in the link above.

    Can I add an image to my ad?

    In some categories, you will be offered the option to add Images to your listing during the validation process.

    In addition, you can do this by using the HTML tag, but the image must already be on a website somewhere. There are many sites of free web hosting on the internet where you can upload your photo, just type "free hosting" in your search engine. Make sure that the site allows you to make a link to their site from another. If it's on a site, say on www.craigslist.org, in a directory named/on/teamPix, and named homer.gif, you had the code:

    It would look like the picture you see on the right. (The align and alt attributes are useful, but not necessary.)

    If you do this, you use HTML, so see the next question.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://www.ehow.com/video_4985809_add-image-ad-Craigslist.html

    Watch the video above.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://www.ehow.com/how_4667535_post-great-photos-Craigslist.html

    You want the secret to post pictures on craigslist? Well, the secret is www.photobucket.com (an online photo album)

    See you soon.

    Mick Murphy - Microsoft partner

  • How can I activate images on the DVD in video file so that I can edit and send to people?

    Hello.  I recently transferred footage tape VCR to a gathering on a DVD of family.  How can I activate images on the DVD in video file so that I can edit and send to people?

    Any help would be appreciated, as I was chasing my tail for about an hour and a half now.

    Thank you!

    When you insert the DVD in your DVD player... close
    all the windows that can open and then go to... Start /.
    Computer... right click the icon for the DVD player
    is in, and then select or open Explorer.

    The files you need from the DVD are the. VOB files.
    You will find them in the VIDEO_TS folder. Copy them
    in a folder on your hard drive. Or you can copy the
    full VIDEO_TS folder.

    First... just try to rename one of the. VOB files to
    . MPG or. AVI and see if it will matter in Movie Maker.
    If import works... drag the file to the timeline and
    Economy/publication it to .wmv or .avi format. Then...
    Re - import new video film for editing purposes.
    (if you have Vista Home Premium or Ultimate, you)
    may be able to import the VOB files in Movie Maker
    as they are)

    (FWIW... you can probably play the files renamed
    in Windows Media Player to be sure that VOB
    file to edit)

    If you are unable to import the files they need to be converted
    another .wmv format would be a good choice.

    There are many programs that can do conversions...
    The following freeware is an example...:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster)
    (the file you want to download is: > FFSetup260.zip<>
    (FWIW... installation..., you can uncheck
    ('all' boxes on the last screen)

    First, you will need to decompress the file or just open the
    Drag FFSetup260.exe out of the folder
    and drop it on your desktop. To install left click.

    Next, after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your video clips on the main screen...

    Select "all to WMV" / OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Good luck...

Maybe you are looking for