0

I am trying to create a base class for all my CRUD purposes. I have a method to create an array from all the input and table row parameters passed in the method to be executed in $query->execute. For that reason I was wondering if the below format will work.

$query = $pdo->prepare('SELECT * FROM table WHERE row = :row');
$query->execute(array(':row' => NOT NULL));
Nooglers BIT
  • 71
  • 2
  • 11

0 Answers0