- January 6, 2019 at 8:34 pm #42469
Hi there, why you don´t use PDO for access to database? i have searching about this, and wordpress was insterested to implement on 2013, but i’ve serching in the core of 5.0.2 and doesn´t use PDO, so you can implement to access data to your plugin use, meanwhile wordpress catch up.
Other thing, is the lag to display data on any crud. it’s o lazy.
- January 7, 2019 at 9:48 am #42498
- January 7, 2019 at 11:14 pm #42566
Not, i mean, every data of vendor/customers site data, are saved in SQLi database, and the connections that you use its just query, one of the most insecure, for other hand, PHP allow use PDO (http://php.net/manual/en/book.pdo.php) that it’s so much more secure, this allow use prepare statement and bindParam to put in the query to database values that you want to ask to DB.
$sentencia = $mbd->prepare(“INSERT INTO REGISTRY (name, value) VALUES (:name, :value)”);
// insertar una fila
$nombre = ‘uno’;
$valor = 1;
- January 8, 2019 at 6:37 am #42610
Frankly I am not very comfortable with this.
We use WP standard for this.
WP DB object “$wpdb” and it supports all this prepare statement, param etc …