Home > Backend Development > PHP Tutorial > php 基础有关问题!

php 基础有关问题!

WBOY
Release: 2016-06-13 12:41:16
Original
863 people have browsed it

php 基础问题求救!!!!!!
是这样的:我从mysql数据库中查询除了一条记录,这个记录里面包含了 {$aaa}、{$bbb}等变量,
现在想在输出前给这两个变量赋值,但是输出的结果还是变量。。。。
例如:
$rs_sql =mysql_query("select content from table where  id ='1'");
$row_rs_sql = mysql_fetch_array($rs_sql);
//////content字段的内容是:您好 {$aaa},好久不见了,我是想你的{$bbb}! ///////

$aaa = "刘德华";
$bbb = "林心如";

echo $row_rs_sql['content'];
////我想要的结果是:您好刘德华,好久不见了,我是想你的林心如!

可现在的输出的结果却还是:您好 {$aaa},好久不见了,我是想你的{$bbb}!

请问大家这个问题怎么解决啊,很急!!!


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