otuatail can’t do local host
Why not? There's some evidence from the symptoms you have reported that code you have written/changed hasn't taken effect because you are trying to do this on your web hosting where something is caching the previous result.
otuatail I was told on another forum to use $stmt.
I'm betting that was from this part of a reply -
call the ->prepare() method for the resulting sql query statement. this returns a PDOstatement object, and should be named $stmt or similar.
The value is a PDOStatement object. Naming it $stmt is just a naming convention, so that anyone looking at the code will be able to deduce what it is, just like naming the PDO connection, $pdo, so that anyone looking at the code can deduce what database extension you are using.