此函数不关心表结构,只需要指定表名、结构和查询条件既可以对表进行通用查询操作,非常实用。
function listmytablerows($table, $name, $field, $where, $textid){/ / connect to the database and query executionconnect ();$sql = select * from. $table. . $where. order by. $field;$req = mysql_query($sql);$res = mysql_num_rows($req);?> ____
希望本文所述对大家的php程序设计有所帮助。
