php传参的问题
我想在getStaffListByID函数的循环中调用getStaffListByLID函数,但是到getStaffListByLID里貌似lid的值没有传过来,请问怎么办?
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->function getStaffListByID($con){ global $idn,$id,$pic,$name; $sel = "select id,pic,name from student;"; $ret = pg_Exec($con,$sel); $idn = pg_NumRows($ret); for ( $i=0; $i