# PHP Database Help

**URL:** <https://www.phphelp.com/t/php-database-help/28467>\
**Category:** General PHP Help\
**Created:** [March 11, 2019, 12:38pm UTC](https://www.phphelp.com/t/php-database-help/28467 "2019-03-11T12:38:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jedijon](https://www.phphelp.com/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@Jedijon](https://www.phphelp.com/u/Jedijon)\
**Post date:** [March 11, 2019, 12:38pm UTC](https://www.phphelp.com/t/php-database-help/28467/1 "2019-03-11T12:38:02Z")

</div>

I have a database I want to grab all table rows that have the same value and show all data on those rows and echo them.  
How, can I do that?

---

<div class="post-metadata">

**Author:** ![astonecipher](https://www.phphelp.com/user_avatar/www.phphelp.com/astonecipher/32/2797_2.png) [@astonecipher](https://www.phphelp.com/u/astonecipher)\
**Post date:** [March 11, 2019, 3:16pm UTC](https://www.phphelp.com/t/php-database-help/28467/2 "2019-03-11T15:16:18Z")

</div>

> **[\<?php // PDO + MySQL $pdo = new PDO('mysql:host=example.com;dbname=database',......](https://phptherightway.com/#pdo_extension)**
>
> There’s a lot of outdated information on the Web that leads new PHP users astray, propagating bad practices and insecure code. PHP: The Right Way is an easy-to-read, quick reference for PHP popular coding standards, links to authoritative tutorials...
