Home >Backend Development >PHP Tutorial >php如何给value传数据?

php如何给value传数据?

WBOY
WBOYOriginal
2016-06-20 12:30:371232browse

<param name="src" value="<?php echo $src;?>">
这句想从数据库中传数据给value怎么写?


回复讨论(解决方案)

先查询数据库的这条语句,然后处理一下,然后赋值。

你那不就是吗? $src 从数据查询出来。

用PHP查询数据库,然后赋值给$src

首先把数据库数据读出,放入$src;
然后同你的写法一样。

Statement:
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