-
printf("<li><a href=\"http://www.pdasquare.com/forum/showthread.php3?threadid=%d\">%s</a></li>", $row[threadid], $row[title], $row[views], $row[replycount]);
} while ($row = mysql_fetch_array($result));
hi guys,
what should i add so that every thread opens a new window using vbulletin forums?
thanks
-
target="_blank" in the href tag
-
After i edit it
printf("<a href=\"http://www.pdasquare.com/forum/showthread.php3?threadid=%d\">%s target=\"_blank"</a><br>", $row[threadid], $row[title], $row[views], $row[replycount]);
there's still some error parsing?
thanks and have anice day
-
That would be the missing escape sign behind the second quote of target="_blank"
-
Try this:
printf("<a href=\"http://www.pdasquare.com/forum/showthread.php3?threadid=%d\" target=\"_blank\">%s</a><br>", $row[threadid], $row[title], $row[views], $row[replycount]);
:)
-
BTW by using printf(''); you can avoid the need for those hideous escape signs example:
printf('<a href="http://www.pdasquare.com/forum/showthread.php3?threadid=%d">%s target="_blank"</a><br>', $row[threadid], $row[title], $row[views], $row[replycount]);
However it appears you have 4 args and two placeholders so Iwouldn't be surprised if you have another error like mismtach args count or something like that