-2
Fatal error: Uncaught Fehler: Call to undefined function MySQLi_Result() in /home/prasanth/projects/ishen1/index.php:49 Stapelüberwachung: # 0 {main} geworfen wie dieseFatal error zeigt
sloveFatal error: Uncaught Fehler: Call to undefined function MySQLi_Result() in /home/prasanth/projects/ishen1/index.php:49 Stapelüberwachung: # 0 {main} geworfen wie dieseFatal error zeigt
slovenach dieser Antwort https://stackoverflow.com/a/17707384/8284461 diese Funktion ist ineffizient, können Sie stattdessen mysqli_fetch_assoc()
verwenden. zum Beispiel:
while($row = mysqli_fetch_assoc($result)) {
$id = $row['ID'];
$name = $row['name'];
etc..
}
das nicht das ist mein Code –
php //require_once("dbcontroller.php ");? $ con = require_once ("dbcontroller.php"); if (isset ($ _ POST [ 'submit'])) { $ document = "select max (id) von Register"; $ res = mysqli_query ($ Dokument); $ id = mysqli_result ($ res, $ row = 0, $ col = 0); $ id ++; $ n = $ _ FILES ['Dokument'] ['Name']; $ ext = strrchr ($ n, "."); $ fname = "$ id $ ext"; move_uploaded_file ($ _DATEIEN ['documnet'] ['tmp_name'], "foto/$ fname"); ?> –