PDO LIKE

$sql = 'SELECT * FROM test WHERE isim LIKE "%h%"';


    $query = $db->query($sql);

    if ( $query->rowCount() ){
        print_r($query->fetchAll(PDO::FETCH_ASSOC));
    }

Lesson discussion

Swap insights and ask questions about PHP Temel

Be the first to start the discussion

Ask a question or share your thoughts about this lesson.