<?php $where = [["id", ">", 3], ["firstname", "=", "John"]]; $wherequery = ' where '; foreach($where as $w){ $wherequery .= $w[0] . ' ' . $w[1] . ' ? '; $params[] = $w[2]; } echo "SELECT columns FROM table " . $wherequery;
You have javascript disabled. You will not be able to edit any code.