Help - Search - Members - Calendar
Full Version: PHP help
Movable Type Community Forum > Additional Resources > Tips and Tricks
bloglife
I dont know php well, I'd like to open a new window for each entry link, how to add target="_blank" in the following php code?


CODE
echo "<a href=\"", "http://theredkitchen.net/oldrecipes/", $year, "/", $month, "/00", ($rows['entry_id']), ".php\">", ($rows['entry_title']), "</a><br>\n";
imabug
try this
CODE
echo "<a href='http://theredkitchen.net/oldrecipes/". $year . "/" . $month . "/00" . $rows['entry_id'] . ".php' target='_blank'>" . $rows['entry_title'] . "</a><br />\n";


if there are errors, it's probably because I made a mistake with escaping quotes somewhere.
bloglife
Thank you, it works.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.