i try to convert all mysql codes to mysqli.
i stuck with this
$loginStrGroup = mysql_result($LoginRS,0,'UserLevel');
i tried with some mysqli_result functions but nothing worked
Thansk a lot
i try to convert all mysql codes to mysqli.
i stuck with this
$loginStrGroup = mysql_result($LoginRS,0,'UserLevel');
i tried with some mysqli_result functions but nothing worked
Thansk a lot
收起
mysql_result() was the second most misused mysql function, next to mysql_num_rows().
It should have never been used with mysql either.
A regular fetch should be used instead of that ugly crutch
$row = mysqli_fetch_assoc($LoginRS);
$loginStrGroup = $row['UserLevel'];
报告相同问题?