$sql1=("select max(YR_SC) from bse_prc_p where CDE_L='".substr($code,0,11)."'");
$max=mysql_fetch_row($sql1);
print("$max");想取YR_SC的最大值,然后赋值给一个变量,然后输出这个变量,这样写好像不对,输出不出来!
如何才能将这个YR_SC的值输出?
$max=mysql_fetch_row($sql1);
print("$max");想取YR_SC的最大值,然后赋值给一个变量,然后输出这个变量,这样写好像不对,输出不出来!
如何才能将这个YR_SC的值输出?
不用这种方式!
就是直接赋值给一个变量,然后输出!如何做?
$rs = mysql_query($sql1);
list($max) = mysql_fetch_row($rs);
echo $max;
$max=mysql_fetch_array($sql1);
print("$max");
这样输出后 显示 Array