Focus mode
$sql = "SELECT * FROM test WHERE id IN (1,2,3)";
$query = $db->query($sql);
if ( $query->rowCount() ){
print_r($query->fetchAll(PDO::FETCH_ASSOC));
}
$sql = "SELECT * FROM test WHERE id NOT IN (1,2,3)";
$query = $db->query($sql);
if ( $query->rowCount() ){
print_r($query->fetchAll(PDO::FETCH_ASSOC));
}
Programs to Accelerate Your Progress in a Software Career
Join our 4-8 month intensive Patika+ bootcamps, start with the fundamentals and gain comprehensive knowledge to kickstart your software career!
You need to enroll in the course to be able to comment!