SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 30 of 30
  1. #26
    ********* Member website's Avatar
    Join Date
    Oct 2002
    Location
    Iceland
    Posts
    1,238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it echoes the columns you selected, in the order you selected them...

    edit: heh fast replies
    - website

  2. #27
    SitePoint Enthusiast
    Join Date
    May 2003
    Location
    Kampala Uganda
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up Thanks:

    Thanks Samsm!;
    i perfectly Understand now!

    Quote Originally Posted by samsm
    $row[0] would contain the first row column in the select, $row[1] the second, [2] the third... etc...

    Read the comments on these echos:
    PHP Code:
    $sql "select foo, bar from sampleTable"
    $row mysql_fetch_row($sql);
    echo 
    $row[0]; // this works (echos foo)
    echo $row[1]; // so does this (echos bar) 
    And we know that all things work together for good
    To them that love God, to them who are the called
    According to his purpose. Romans 8:28

  3. #28
    chown linux:users\ /world Hartmann's Avatar
    Join Date
    Aug 2000
    Location
    Houston, TX, USA
    Posts
    6,455
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    This may be a little late but I posted something about this a while back. The thread can be found here -> http://www.sitepointforums.com/showt...threadid=98714

  4. #29
    designer
    Join Date
    Dec 2004
    Location
    Over the hill and through the woods...
    Posts
    306
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, I'm really new here and I was just viewing this post. I still don't get how this whole thing works, and I really want to be able to replace : ) with on my site. Could you please explain this to me?

  5. #30
    SitePoint Wizard samsm's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta, GA, USA
    Posts
    5,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ASLICEOFPIE
    Hi, I'm really new here and I was just viewing this post. I still don't get how this whole thing works, and I really want to be able to replace : ) with :) on my site. Could you please explain this to me?
    If it is just that one smilie:
    PHP Code:
    $text str_replace(':)','<img src="/path/to/happy.gif" alt=":)" />'$text); 
    Hope that's right. :-)

    If you need anything more elaborate, I might suggest starting a new thread, this one is a bit old and people might not scroll down enough to notice your questions.
    Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?


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
  •