Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プロジェクトを mysql から mysqli に変換してmysqli_result()いますが、古いコードでは機能しないという問題があります。私の古いコードは次のとおりです。mysql_result($res,0,0);
mysqli_result()
mysql_result($res,0,0);
古いコードで追加しようとするmysqli_result()と、機能しません。
私の古いパラメータで動作する別の方法はありますか?
mysqli_result()古いパラメータでは機能しないため、新しい関数を作成する必要があります。古いパラメータで機能する関数のコードは次のとおりです。
function mysqli_result($res, $row, $field=0) { $res->data_seek($row); $datarow = $res->fetch_array(); return $datarow[$field]; }