bonjour je cherche a faire une sauvegarde de ma BDD.
j'ai rencontré un problème pour :
Code sql : Sélectionner tout - Visualiser dans une fenêtre à part
SELECT * FROM :table_select

il me retroune :
array (size=0)
empty
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
	require_once 'PDO.php';
	class ma_class {
		private $table;
	    private $in_table;
 
	    public function __construct($bd) {
	        $this->table = $bd->prepare("show tables");
	        $this->in_table = $bd->prepare("SELECT * FROM :table_select");
	    }
 
	    public function table(){
	        $this->table->execute();
	        return $this->table->fetchAll();
		}
		public function in_table($table_select){
			$this->in_table->execute(array(':table_select' => $table_select ));
			return $this->in_table->fetchAll();
		}
	}
?>