Change:
mysql:localhost;widet_corp
to
mysql:host=localhost;dbname=widget_corp
Also in your posted code:
$query = $pdo->query("SELECT * FROM 'users'");
you have the table name inside single quotes. In Mysql you should use a backtick instead for tables and columns.
$query = $pdo->query("SELECT * FROM `users`");
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…