Jump to content

[SOLVED] PHP link, open in parent, Help Please.


ryanwood4

Recommended Posts

I need the link below to open in the parent window, is this possible, and how would I go about it.

 

Code Snippet:

echo "<td><h7><b><a href='$url'>".stripslashes($row['article_title'])."</h7></b></a>";

 

Full Code:

<?php
$con = mysql_connect("localhost","xxxx","xxxx");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("f1times_articles", $con);

$result = mysql_query("SELECT * FROM n2s_article ORDER BY article_id DESC LIMIT 1,3");

echo "<table border='0'>
<tr>
</tr>";

while($row = mysql_fetch_array($result))
  {
    $url = $row['article_url'] . "-" . $row['article_id'] . ".html";
    echo "<tr>";
    echo "<td><h7><b><a href='$url'>".stripslashes($row['article_title'])."</h7></b></a>";
    echo "<p>".stripslashes($row['article_teaser'])."<br /></p></td>";
    
  }

mysql_close($con);
?>

 

Thanks  :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.