SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    Apache Expert i_like_php's Avatar
    Join Date
    Nov 2001
    Location
    Dallas, Texas
    Posts
    1,342
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    $image = show the pic

    PHP Code:
    <?php 
    $image 
    "whatver.jpg";
    ?>
    now how do i get the image to show up with the following code?? thanks in advance.
    i love php

  2. #2
    SitePoint Zealot Klav's Avatar
    Join Date
    Mar 2002
    Location
    Huddersfield, UK
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    <?php
    echo "<img src=\"$image\">";
    ?>

  3. #3
    Apache Expert i_like_php's Avatar
    Join Date
    Nov 2001
    Location
    Dallas, Texas
    Posts
    1,342
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just one more question where does the whatever.jpg go?
    i love php

  4. #4
    SitePoint Zealot Klav's Avatar
    Join Date
    Mar 2002
    Location
    Huddersfield, UK
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The whatever.jpg stays inside the $image string and then gets displayed when you echo the image code. Understand?

    PHP Code:
    <?php
    $image 
    "whatever.jpg";
    echo 
    "<img src=\"$image\">";
    ?>

  5. #5
    Apache Expert i_like_php's Avatar
    Join Date
    Nov 2001
    Location
    Dallas, Texas
    Posts
    1,342
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i got it just one more problem though, i want it to be my background how do i do that, sorry for all the questions...
    i love php

  6. #6
    SitePoint Zealot Klav's Avatar
    Join Date
    Mar 2002
    Location
    Huddersfield, UK
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    <?php
    $image 
    "whatever.jpg";
    echo 
    "<body background=\"$image\">";
    ?>
    You get it now, right?

  7. #7
    Apache Expert i_like_php's Avatar
    Join Date
    Nov 2001
    Location
    Dallas, Texas
    Posts
    1,342
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    thanks for the help
    i love php


Bookmarks

Posting Permissions

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