Error last to post

Started on the old forum in December 2009 · view the original in the archive · old links redirect here

10 replies · 556 views · started 16 years ago · 1 min read

5 participants
allan Newbie · 6 posts #1

Hi there can any one help with last to post for wapdesire v2 on last to post i cnt seem to get it working.

$main.="Last Post: <a href="./viewtopic.php?thread=$lpt[0]&go=last&sid=$sid">$lpt[1]</a>(<a href="../profile.php?who=$uid[0]&sid=$nick"$color>".getnick_uid($pinfo[0])."</a>) \n";

i begreatful if any one can help

allan Newbie · 6 posts #3

iv tried that mate it dnt work

allan Newbie · 6 posts #5

the code iv useing comes up like this Last Post: () not showing what the last post was iv tried every thing to try fix it but nothing seems to work

Mysterio Lead · 630 posts #6

how do you get the info from database? Post the code!

mysterio.al - programming is a functional art

allan Newbie · 6 posts #7

$main.="Last Post: <a href="./fourms/viewtopic.php?thread=$lpt[0]&go=last&sid=$sid">$lpt[1]</a>(<a href="../profile.php?who=$uid[0]&sid=$nick"$color>".getnick_uid($pinfo[0])."</a>) \n"; all iv got mate

morse Senior · 364 posts #8
$lpt[0]
$pinfo[0]

have you procurred the $lpt and $pinfo array data ?? There must be somehing like $lpt = my_sql_array .......... $pinfo = my_sql_array ...... make sure you add these before you echo your code

tinyurl.com/earnbymobile Easy earning for Indians

Alternative mobile advertising network .. Minimum 100 USD pay / NET15 pay cycle, Good Brand, Best targeting for Android goo.gl/6vub3

allan Newbie · 6 posts #9

$lpt=mysql_fetch_array(mysql_query("SELECT id, name FROM forumtopics WHERE fid='".$forum[0]."' ORDER BY lastpost DESC LIMIT 0,1")); $main.="Last Post:<a href="./viewtopic.php?thread=$lpt[0]&go=last&sid=$sid">$lpt[1]</a>(<a href="./profile.php?who=$pinfo[0]&sid=$sid"$color>".getnick_uid($pinfo[0])."</a>) "; thats what iv got at the min mate

crazybrumi Super moderator Principal · 1,064 posts #10

allan wrote: $lpt=mysql_fetch_array(mysql_query("SELECT id, name FROM forumtopics WHERE fid='".$forum[0]."' ORDER BY lastpost DESC LIMIT 0,1")); $main.="Last Post:<a href="./viewtopic.php?thread=$lpt[0]&go=last&sid=$sid">$lpt[1]</a>(<a href="./profile.php?who=$pinfo[0]&sid=$sid"$color>".getnick_uid($pinfo[0])."</a>) "; thats what iv got at the min mate

$sql=mysql_fetch_array(mysql_query("SELECT forumtopics.name,forumposts.uid,forumposts.thread FROM forumtopics 
   INNER JOIN forumposts on forumtopics.id = forumposts.thread ORDER BY forumposts.id DESC LIMIT 1"));
   $a = htmlspecialchars($sql[0]);

  $sex=mysql_fetch_array(mysql_query("SELECT sex FROM profiles WHERE uid='$sql[1]'"));
  if($sex[0]=="M"){$color=" style=\"color:#00CC33\"";}
  if($sex[0]=="F"){$color=" style=\"color:#FF0066\"";}
  if($sex[0]==""){}

  $c = "<a href=\"forums/viewtopic.php?thread=$sql[2]&sid=$sid&go=last\">$a</a>";
  $d = "<a href=\"profile.php?who=$sql[1]&sid=$sid\"$color><b>".getnick_uid($sql[1])."</b></a>";
  
$main.="Last post:  $c By $d<br/>\n";

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

allan Newbie · 6 posts #11

Thanks mate its working fine

Write your reply now; next you create a free account (or sign in) and it is posted right away. 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