How to add photos of details of the PHP page

I have a MySQL database table that contains the data of the user such as name, email, address and so on. What I'm trying to do is find a way to get a user record to display in a table with a photo of that person. I tried to add a column to the database and set the type of BLOB and added a photo, but DW did not like it. I later read in the docs who ' Note: Dreamweaver does not support binary images stored in a database. "

So I think it's be something like pointing to a field to a particular URL that points to a certain single image file, but I have no idea how to start. Can someone help me with this please?

Thank you
Steve

sjurick wrote:
> I have a MySQL database table that contains the data of the user such as name, email,
> address and so on. What I'm trying to do is find a way to get a user
> records to display in a table with a photo of that person.

Store images in a database is generally considered a bad idea. Store
your images in a normal folder, store and the only file name in the
database. To display the image of your recordset, select open
Image Source box according to the normal procedure dialog box and select the option to
Select the name of the file in the data sources. This allows you access to your
Recordset. Select the field of the image, add the path to the images folder in
the URL field, if necessary, and then click OK.

--
David powers
Adobe, Dreamweaver community expert
http://foundationphp.com

Tags: Dreamweaver

Similar Questions

  • How to add "Click for more" inside the same page

    Is there an easy way to "hide" some content in a page so that the reader can 'click here' to load the content hidden inside the page? I tried Spry Accordion and collapsible panels, but it seems that some browsers do not show this well. Any ideas? Anyone?

    Thank you!

    Hanna in Tahoe

    Hanna,

    I have not used this particular technique, but if you look at the demo page, it begins with the div hidden, so check the source code on this page and adjust yours to match...

    http://papermashup.com/demos/jQuery-sliding-div/

  • How to add a new language to the language and region of the Panel

    Hello
    Setting preferences in Mac OS X, I could ' t help noticing the huge amount of languages available in the Mac OS X El Capitan. Located in same languages like Klingon, Navajo and Latin - and of course, this looks like a great tribute to the rich diversity of languages in humanity. However, Mac OS X El Capitan still missing a language - my own. How can I add another language to the language and region of the Panel? How Klingon and Latin is?
    Of course, I have this Internet search, but nine out of ten results were some tutorials explaining how to add an EXISTING language to the ones I already have.

    Thank you.

    Rui Valente

    You just 'Add' a language. You would have to edit all applications to create strings of replacement for all menus, dialog messages, buttons, etc., that it doesn't translate from one language to the other. Each application has a list of strings mapped to the display string for each supported language. The localized string replaces the generic string in the user interface element.

    You can try to contact Apple and volunteer to locate the operating system, they would have confidence in you (unlikely) or hire a person to validate your work.

  • How to add white Gaussian noise to the picture of her and her negative?

    How to add white Gaussian noise to the picture of her and her negative?

    Is that what you're trying to accomplish:

    TO:

    Here's the code to do.

    Michel

  • How to add my link (folder) to the side RIGHT of the Start Menu?

    How to add my link (folder) to the side RIGHT of the Start Menu? I mean under my documents my music.

    Do I need a registry change or easy way?

    See my post here.

    Replace "Set Program Access and Defaults" Start Menu XP with trash:
    http://groups.Google.com/group/Microsoft.public.WindowsXP.customize/browse_thread/thread/1479ca45f5598b84/91bef4c26cd81c6b?q=replace+%7B2559A1F7-21D7-11D4-BDAF-00C04F60B9F0%7d
    Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • How to add a second connection of the user with windows 8

    How to add a second connection of the user with windows 8

    Go to the Control Panel, then click on change the Type of account in respect of the accounts of users and parental control.  Beneath the box with user accounts, there should be a link that says add a user account.  Click on that and follow the instructions to set up another user.

  • How to add a time system of the document?

    How to add a time system of the document?

    I tried to edit this script, but probably wrong with the command...

    var f = this.getField ("Today");

    f.Value = util.printd ("mm/dd/yyyy", new Date());

    Change this part of the code:

    util.printd ("mm/dd/yyyy", new Date());

    TO:

    util.printd ("HH: mm", new Date());

  • How to add a document ID to the form

    How to add a document ID to the form

    All PDFs have a unique document attributed by the design program ID. You can see in the file properties in the properties in advance under the direction of XMP Media properties.

    Then there's the docID object that is an array of two strings. The first element is the permeant id and the second is the ID change that identifies the modified copies.

    Mean you some kind of sequence number or control number?

  • How to download photos from iphone to the DC?

    How to download photos from iphone to the DC?

    I can't access the photo library of the app...

    Thank you.

    Hi philipg1363129,

    There is No direct way to download the photos stored in the library of Photo of Acrobat Reader for iOS to Adobe Document cloud.

    But here is a workaround on iPhone/iPad (so that you don't need to upload photos from your desktop).

    1. Open Safari on your iPhone/iPad.
    2. Go to https://cloud.acrobat.com
    3. Sign in with your Adobe ID
    4. Tap cloud of Document in the left pane.
    5. Tap on the icon to download (represented in blue) in the upper right.
    6. Click on photo library.
    7. Select or photos in the photo library.
    8. Tap done.

    I hope this helps.

  • How to add and edit text in the form created by adobe acrobat 9?

    How to add and edit text in the form created by adobe acrobat 9?

    Actually, that's exactly what you should do, you don't need to create

    all fields again.

    After you have edited the original and create a new static PDF, open the old

    version and use the command replace Pages to insert the new pages

    those in the old file. This will keep all the form fields in tact.

    Tuesday, August 25, 2015 at 10:28, susanna323 [email protected]>

  • How to add an image that fill the browser?

    How to add an image that fills the browser when it is resized? Like this site Freelance Design & photography: cotton - ink.co.uk where the window or the filling of pict cabin browser.

    Thank you

    Hello

    Please, try the following steps.

    1 create a rectangle and make it 100% width by pressing the button width 100%.

    2 give this rectangle at the height of your choice.

    3. fill the image desired in the rectangle using fill option and make 'Center' "scale to fill."

    Please let me know in case you are looking for something else.

    Concerning

    Vivek

  • How to add a data center on the virtual center via VI client server?

    How to add a data center on the virtual center via VI client server?

    I formatted ESX server & ESX Server Update installed keeping the data center on the storage (of many desktop computers)

    Now I have fresh installed a new server of virtual & added the ESX Server, but I'm unable to reattach existing data centers on storage.

    What will be the way to import of existing data on server Center virtual center?

    Help, please...

    Is ' VMware-VMimporter - 2.0.0 - 30557 "is the software through which I can solve my problem?

    You need to browse each data store, go to the folder of the virtual machine, right-click on the *.vmx file and add it to your inventory.

    Andrea

    * If you found this device or any other answer useful please consider awarding points for correct or helpful answers

  • Help! How to link to information users at the user page?

    I created the connection index, register, and sign the php pages. MySQL. Now I'm trying to create the user profile page. But I can't link their information to the user page. So, how to link to information users at the user page? @

    maniragav26 wrote:

    I created the connection index, register, and sign the php pages. MySQL. Now I'm trying to create the user profile page. But I can't link their information to the user page. So, how to link to information users at the user page? @

    Can I assume you are using Dreamweaver server behaviors (I guess if you ask this question, it is likely that you would be).

    Go to the mode code in your "login" page Find the section of code that creates the DW:

    $LoginRS__query = sprintf ("SELECT Uname, Pword OF USERS WHERE Uname = %s AND Pword = %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $connUsers) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    If {($loginFoundUser)

    $loginStrGroup = "";

    Declare two session variables and assign them

    $_SESSION ['MM_Username"] = $loginUsername;

    $_SESSION ["MM_UserGroup"] = $loginStrGroup;

    INSERT THE CODE in RED below: 'id' is the name of the id column in your database table - if it were 'user_id' that's what you have inserted.

    $LoginRS__query = sprintf ("SELECT users id Pword, Uname, Uname WHERE = %s AND Pword = %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $connUsers) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    $row_rsUserDetails = mysql_fetch_assoc ($LoginRS);

    If {($loginFoundUser)

    $loginStrGroup = "";

    Declare two session variables and assign them

    $_SESSION ['MM_Username"] = $loginUsername;

    $_SESSION ["MM_UserGroup"] = $loginStrGroup;

    Now to find the under section of code in the 'login' page: (this implies that you have defined a 'success' page to return IF the connection information is correct):

    If (isset($_SESSION['PrevUrl']) & false) {}

    $MM_redirectLoginSuccess = $_SESSION ["PrevUrl"];

    }

    Header ("Location:".) $MM_redirectLoginSuccess);

    }

    else {}

    Header ("Location:".) $MM_redirectLoginFailed);

    }

    INSERT THE CODE in RED below: 'id' in $row_rsUserDetails ['id']; is the name you gave the id column in your database user table, so if it was "user_id" it would read as - $row_rsUserDetails ['user_id'];

    If (isset($_SESSION['PrevUrl']) & false) {}

    $MM_redirectLoginSuccess = $_SESSION ["PrevUrl"];

    }

    $_SESSION ['id'] = $row_rsUserDetails ['id'];

    Header ("Location:".) $MM_redirectLoginSuccess);

    }

    else {}

    Header ("Location:".) $MM_redirectLoginFailed);

    }

    NOW, you create your user details page.

    Create a Recordset, select the table of database you want to gather information about the user. Select the filter to 'none '.

    Go to the view code and at the top of the page, insert:

    <>

    $userId = $_SESSION ['id'];

    ?>

    NEXT FIND THE CODE THAT SELECTS DATA FROM THE DATABASE: (your will be slightly different as you use different details of connection and recordset)

    @mysql_select_db ($database_connUsers, $connUsers);

    $query_rsUserDetails = "SELECT * FROM USERS";

    $rsUserDetails = mysql_query ($query_rsUserDetails, $connUsers) or die (mysql_error ());

    $row_rsUserDetails = mysql_fetch_assoc ($rsUserDetails);

    $totalRows_rsUserDetails = mysql_num_rows ($rsUserDetails);

    Change the second line above to: (add red code below for your SELECT string) (remember WHERE 'id' - 'id' is the name of the column in your database table.)

    $query_rsUserDetails = "SELECT * FROM users WHERE id = '". " $userId. » ' ";

    It's her!

    You can now start "liaison" details on the user Details page.

  • Master / detail on the same page

    Hello
    I tried to get master form Assistant / retail to generate a master / detail on the same page without success.

    Basically, I wanted something similar to what Patrick Wolf was here:
    http://Apex.Oracle.com/pls/OTN/f?p=12820:3:2557510002062602

    Y at - it statement somewhere that show how to set up a master / detail on the same page?

    Thank you

    Hello

    OK - you must:

    1 - create a report page - Let's say the report will build on the DEPT table and the SQL for the report is:

    SELECT DEPTNO, DNAME FROM DEPT ORDER BY DNAME
    

    2. when the page has been created, create a new un nouvel element element hidden page called, say, P50_DEPTNO and add it to the region of report

    3. now create another part of report on the page - this time for the EMP table and filtered by P50_DEPTNO. The SQL code of the report would be:

    SELECT EMPNO, ENAME FROM EMP WHERE DEPTNO = :P50_DEPTNO ORDER BY ENAME
    

    4. you can make this conditional region on P50_DEPTNO is not not NULL so that the latter is hidden until a Department has been selected

    5. now, change the State of your Department and go to the tab report attributes change DEPTNO column and go to the section of the link column. Add in the following settings:

    Text link: (select one of the predefined options that are displayed as links in this box - eg DEPTNO)
    Page: (enter the current page number - for example, 50)
    Reset pagination: (check this)
    Point 1 (name): P50_DEPTNO
    Article 1 (value): #DEPTNO #.

    Then click on apply changes

    6 - Finally, add a branch on the page. This should simply point to the same page - leave all other settings at their default values.

    Now, launch the page and click on the link for any Department. You should get: http://htmldb.oracle.com/pls/otn/f?p=45958:50

    Andy

  • How can I place a widget on the master page on the front a subpage?

    Hi guys,.

    I'm working on a Web site right now, and I have some difficulties with a widget. I use the new Compositions featured Widget to create my menu on my master page.

    The problem is when I used this master page on subpages, the target of the widget is always behind the images that I put on the secondary pages. I don't know how to make the target of the widget before the images and step back. I do a right-click with the photos to put on the secondary pages, try to fix it in towards the back, but the target of the widget (which is my menu) is always behind the image. I have attached an image to illustrate my pb on red square. If anyone can help me.


    Pb postionnement.jpg

    Well I finally just found the solution by using layers and renamed.

    Now I can rearrange my work as I want!

Maybe you are looking for