how to take data from query in php code example
Example 1: how select from db
SELECT columname FROM tablename
Example 2: mysql read row
$sql = "INSERT INTO users (name, surname, sex) VALUES (?,?,?)";$stmt= $pdo->prepare($sql);$stmt->execute([$name, $surname, $sex]);