Home > Backend Development > PHP Tutorial > 怎样传递数值echo '<a href="view_post.php?post_id=$result_row["post_id"]>';该怎么处理

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

WBOY
Release: 2016-06-13 10:20:55
Original
1065 people have browsed it

怎样传递数值echo '';
echo '
';

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

显示的是:
$result_row[

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

------解决方案--------------------
echo "
";

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template