Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Alright, something in PHP with asps case and urls..?

  1. #11
    Join Date
    Jan 2007
    Location
    Sweden
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by cr0w View Post
    Simply put all the images in one static directory(www.example.com/pics/). Then, on the page where you display the member's picture/info, use something like:
    Code:
    <?php
    function fix_results($s){
    return htmlentities(stripslashes($s));
    }
    $getMember=mysql_query("SELECT * FROM members WHERE id = '".$_GET['id']."'") or die(mysql_error());
    $showMember=mysql_fetch_assoc($getMember);
    echo '<img src="/pics/'.fix_results($showMember['image']).'" />';
    ?>
    alright, will try it out tomorrow =D thanks a bunch!

  2. #12
    Join Date
    Apr 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by NineTwoZero View Post
    alright, will try it out tomorrow =D thanks a bunch!
    No problem.

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
  •