php variables in html

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default php variables in html

    I am looking for a way to use php variables in html tags, the specific problem
    i am looking at involves placing a variable in an image placeholder, which
    holds the address from the database of the image i am trying to use.

    <td><img name="viewmemberimage" src='what the hell do i put in here?'
    width="50" height="46" alt=""></td>

    these are some of the details from the code:
    memberpicture=column in database which stores the file name of the image
    $uploaddir= variable used to store the rest of the address

    any help would be great....

    Bethan

    bethan81 Guest

  2. Similar Questions and Discussions

    1. Storing Variables in html???
      I would like build an html page structure and have a Flash navigation. So for reasons of easier updating and building, I would like to have only...
    2. passing variables to new HTML page
      Im using a javascript search system combined with flash This actionscript is used in the button on (release, keyPress "<Enter>")...
    3. Variables in html and user creation
      im literate in html and im still wondering how a site like that neo pets game http://www.neopets.com has users create there own names, be able to...
    4. Help - PHP Variables Used in HTML <IMG Tag
      I'm trying to dynamically load a .jpg image into a html form <Img tag using a PHP variable that holds the filename of the image but no image is...
  3. #2

    Default Re: php variables in html

    <?php $full_path = $uploaddir . $row_RecordName['memberpicture']; ?>

    <td><img name="viewmemberimage" src='<?php echo $full_path; ?>' width="50"
    height="46" alt=""></td>


    --
    Gareth - TMM Dreamweaver
    [url]http://www.dreamweavermxsupport.com/[/url]
    [url]http://www.garethdp.com/[/url]

    PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.
    [url]http://www.phploginsuite.co.uk/[/url]

    Co-Author: Dreamweaver MX: Instant Troubleshooter - Apress
    Co-Author: Practical Intranet Development - Apress
    Co-Author: Dreamweaver MX: Advanced PHP Web Development - Apress
    Co-Author: Dreamweaver MX: PHP Web Development - Wrox



    gareth Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139