$stmt = $conn->prepare('SELECT id,make,model FROM products WHERE id > :id'); $stmt->execute(array('id' => $id)); $result = $stmt->fetchAll(); if ( count($result) ) { foreach($result as $row) { $id=$row[0]; $make=$row[1]; $model=$row[2]; }
list($id, $make, $model) = $row;
$stmt
Jump To Top of Thread