日期:2014-05-17  浏览次数:20527 次

怎样传递数值echo '<a href="view_post.php?post_id=$result_row["post_id"]>';
echo '<a href="view_post.php?post_id=$result_row["post_id"]>';

在view_post中,
$post_id = $_GET["post_id"];
echo $post_id. '<br>';

显示的是:
$result_row[

在原程序中$i=$result_row["post_id"];
echo $i.'<br>';
显示的是数字

------解决方案--------------------
echo "<a href=\"view_post.php?post_id=$result_row[post_id]\">";