# Possible documentation error in HubDB CMS API with example PHP request?

**URL:** <https://community.hubspot.com/t/possible-documentation-error-in-hubdb-cms-api-with-example-php-request/67899>\
**Category:** APIs & Integrations\
**Tags:** php\
**Created:** [October 26, 2022, 6:02am UTC](https://community.hubspot.com/t/possible-documentation-error-in-hubdb-cms-api-with-example-php-request/67899 "2022-10-26T06:02:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Colorado42](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/colorado42/32/18373_2.png) [@Colorado42](https://community.hubspot.com/u/Colorado42)\
**Post date:** [October 26, 2022, 6:02am UTC](https://community.hubspot.com/t/possible-documentation-error-in-hubdb-cms-api-with-example-php-request/67899/1 "2022-10-26T06:02:10Z")

</div>

Hello. I think there might be an error with the documentation?

Example: Get rows for a table (php request)

$apiResponse = $client-\>cms()-\>hubdb()-\>tables()-\>rowsApi()-\>getTableRows(‘tableIdOrName’, null, null, null, null);

This does not work. Error logs show “tables” is unknown. Removing “tables” fixes the problem. It appears all the example php requests for hubdb have this issue.

Example request that works:

$apiResponse = $client-\>cms()-\>hubdb()-\>rowsApi()-\>getTableRows(‘tableIdOrName’, null, null, null, null);

I’m running hubspot/api-client 8.4.1 on php 8.1

I hope this helps someone.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [October 26, 2022, 3:21pm UTC](https://community.hubspot.com/t/possible-documentation-error-in-hubdb-cms-api-with-example-php-request/67899/2 "2022-10-26T15:21:11Z")

</div>

Hi, @Colorado42 👋 Thanks for pointing this out. I’ll flag this for review.

Have a wonderful day! — Jaycee
