Last Blog

Started on the old forum in September 2008 · view the original in the archive · old links redirect here

3 replies · 632 views · started 18 years ago · 1 min read

2 participants
BoYzONe Developer · 88 posts #1

Anybody can give me the code?Thanks in advance.

something else Fellow · 2,296 posts #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&sid=$sid&bid=$blg[0]">$blgo</a> ";

untested as per usual lol 🙂

BoYzONe Developer · 88 posts #3
$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&sid=$sid&bid=$sql[1]\">$name</a> BY:  <a href=\"index.php?action=viewuser&sid=$sid&who=$sql[2]\">$name1</a>
";

this is another version from DNS at forum@wapfuns. .i'll try both. .Thanks too inca. .

BoYzONe Developer · 88 posts #4

some fix at DNS code

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

change to :

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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close