Last Blog

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Last Blog

    Anybody can give me the code?Thanks in advance.

    #2
    $blg = mysql_fetch_array(mysql_query("SELECT id, bname FROM ibwf_blogs ORDER BY bgdate DESC LIMIT 0,1"));
    $blgo = htmlspecialchars($blg[1]);
    echo "Last Blog: <a href=\"index.php?action=viewblog&amp;sid=$sid&amp; bid=$blg[0]\">$blgo</a>
    ";

    untested as per usual lol

    Comment


      #3
      Code:
      $sql =mysql_fetch_array(mysql_query( "SELECT id, bname, bowner FROM  ibwf_blogs ORDER BY id DESC LIMIT 1"));
      $name = htmlspecialchars($sql[1]);
      $name1= getnick_uid($sql[2]);
      echo "Last Blog: <a href=\"index.php?action=viewblog&amp;sid=$sid&amp;bid=$sql[1]\">$name</a> BY:  <a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$sql[2]\">$name1</a>
      ";
      this is another version from DNS at forum@wapfuns. .i&#39;ll try both. .Thanks too inca. .

      Comment


        #4
        some fix at DNS code

        echo "Last Blog: <a href=\"index.php?action=viewblog&amp;sid=$sid&amp; bid=$sql[1]\">$name</a>

        change to :

        echo "Last Blog: <a href=\"index.php?action=viewblog&amp;sid=$sid&amp; bid=$sql[0]\">$name</a>

        Comment

        Working...
        X