re
yep i tried it like that it works fine on the ofline server with wammp but when i put it online i get some display errors becus i included session() to get the id so i think ill look at recoding the down2.php page so the error should disappear
error on list
Collapse
X
-
This would do it. I didn't saw that $row[1], i put this based on your db table. but eventually realized that name is the first to serve in your query. thats why put [1]. it would be $row[0].Originally posted by ozziemale31 View Postthat code works but returns back a number
Whos Viewd The File
25
Edit Edit Inline Edit Copy Copy Delete Delete 7 rampage 0 30 0
Edit Edit Edit Inline Edit Copy Copy Delete Delete 8 test 0 30 0
Edit Edit Edit Inline Edit Copy Copy Delete Delete 9 test 0 30 0
Edit Edit Edit Inline Edit Copy Copy Delete Delete 10 rampage 0 25 0
Added after 26 minutes:
i think i got it to work its in test mode at the moments
Whos Viewd The File
rampage, test, test,
where in the tables
Edit Edit Edit Inline Edit Copy Copy Delete Delete 7 rampage 0 30 0
Edit Edit Edit Inline Edit Copy Copy Delete Delete 8 test 0 30 0
Edit Edit Edit Inline Edit Copy Copy Delete Delete 9 test 0 30 0
Edit Edit Edit Inline Edit Copy Copy Delete Delete 10 rampage 0 25 0
PHP Code:$tid = $_GET["tid"];
echo "Whos Viewd The File<br />";
$result = mysql_query("SELECT name, tid FROM forum_latest WHERE tid='".$tid."'");
while ($row = mysql_fetch_array($result)) {
echo "$row[0], ";
}
Leave a comment:
-
re
that code works but returns back a numberOriginally posted by asifnayem View PostPHP Code:$tid = $_GET["tid"];
echo "Whos Viewd The File<br />";
$result = mysql_query("SELECT name, tid FROM forum_latest WHERE tid='".$tid."'");
while ($row = mysql_fetch_array($result)) {
echo $row[1];
}
Whos Viewd The File
25
Edit Edit Inline Edit Copy Copy Delete Delete 7 rampage 0 30 0
Edit Edit Edit Inline Edit Copy Copy Delete Delete 8 test 0 30 0
Edit Edit Edit Inline Edit Copy Copy Delete Delete 9 test 0 30 0
Edit Edit Edit Inline Edit Copy Copy Delete Delete 10 rampage 0 25 0
Added after 26 minutes:
i think i got it to work its in test mode at the moments
Whos Viewd The File
rampage, test, test,
where in the tables
Edit Edit Edit Inline Edit Copy Copy Delete Delete 7 rampage 0 30 0
Edit Edit Edit Inline Edit Copy Copy Delete Delete 8 test 0 30 0
Edit Edit Edit Inline Edit Copy Copy Delete Delete 9 test 0 30 0
Edit Edit Edit Inline Edit Copy Copy Delete Delete 10 rampage 0 25 0Last edited by ozziemale31; 13.08.12, 02:37.
Leave a comment:
-
error on list
ok now i have another bug lol sos loony if yer reading this post lol
heres whats hapening now
user whos viewd is updated in the forum_latest list
but only shows the one nick
-------------------------------------
Whos Viewd The File
rampage
-------------------------------------
my code is as follows
my tables arePHP Code:$tid = $_GET["tid"];
echo "Whos Viewd The File<br />";
$dnt = mysql_fetch_array(mysql_query("SELECT name, tid FROM forum_latest WHERE tid='".$tid."'"));
echo "$dnt[0]";
forum_latest
id name pid tid uid
7 rampage 0 30 0
8 test 0 30 0
9 test 0 30 0
10 rampage 0 25 0
now the link to the whosviewed list is
forums.php?mzonez=whosviewed&&tid=$post[0]
it would be nice to get this list to work properly as it will complete the final part of my forums
for file attachmentsTags: None
Leave a comment: