Fatal error: Uncaught ArgumentCountError: mysqli_real_escape_string() expects exactly 2 arguments,

$final = $this->sql;

// Find the first question mark in the prepared query

$offset = strpos($final, "?");

foreach ($args as $v) {

if (is_null($v)) {

$v = 'NULL';

} else {

$v = "'" . mysqli_real_escape_string( $v) . "'";

}

// Replace the question mark with the argument

$final = substr($final, 0, $offset) . $v . substr($final, $offset + 1);

// Move to the next question mark after the last inserted argument

$offset = strpos($final, "?", $offset + strlen($v));

}sad.png

avatar rahmadrf
@rahmadrf

1 Kontribusi 0 Poin

Dipost 2 tahun yang lalu

Tanggapan

Baca aturan main di forum ini ya, sertakan kode atau gambar jika perlu

Pertanyaan kamu tidak jelas, coba dijelaskan lebih baik

Belum ada Jawaban. Jadi yang pertama Jawaban

Login untuk ikut Jawaban