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`");
change:
to
also in your posted code:
you have the table name inside single quotes. in mysql you should use a backtick instead for tables and columns.