如何将两个段代码 合成一个函数

WBOY
Release: 2016-06-13 11:28:12
Original
1213 people have browsed it

怎么将两个段代码 合成一个函数

<br />//php<br />$query_hx_php= "SELECT * FROM content_publish WHERE content_language_classification = 'php' group by content_original_autor ORDER BY content_id DESC";<br />$record_php = mysql_query($query_hx_php);<br />$record_cnt_php = mysql_num_rows($record_php);<br /><br /><br />//asp<br />$query_hx_asp= "SELECT * FROM content_publish WHERE content_language_classification = 'asp' group by content_original_autor ORDER BY content_id DESC";<br />$record_asp = mysql_query($query_hx_asp);<br />$record_cnt_asp = mysql_num_rows($record_asp);<br />
Copy after login


//我希望 后缀名 如_asp _php 能根据参数变化 比如我传进来的是c 那么后面变量后缀名统一变成****_c
PHP MySQL ASP C select

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