Title: Connecting WPDataTable to Seralized PHP Array
Last modified: November 13, 2022

---

# Connecting WPDataTable to Seralized PHP Array

 *  Resolved [ccoreyjones12345](https://wordpress.org/support/users/ccoreyjones12345/)
 * (@ccoreyjones12345)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/connecting-wpdatatable-to-seralized-php-array/)
 * Hello,
 * I am attempting to connect a WP Data Table with the data source being a Serialized
   PHP Array. However, the URL I am using keeps getting the following error message:
 * Error
    Table in data source has no rows.
 * I am using a XYZ PHP Code plugin to write a short code snippet instead of creating
   a PHP file in the root directory since it will be much easier to manage. I’m 
   unsure if the URL I’m using is incorrect or if it’s a plugin issue. Is there 
   a specific PHP plugin you guys recommend I use in tandem with your plugin? Or
   any other suggestions?

Viewing 1 replies (of 1 total)

 *  Plugin Author [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * (@wpdatatables)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/connecting-wpdatatable-to-seralized-php-array/#post-16197628)
 * Hello,
 * As our developers pointed out on this Documentation ([https://wpdatatables.com/documentation/creating-wpdatatables/creating-wpdatatables-from-serialized-php-array/](https://wpdatatables.com/documentation/creating-wpdatatables/creating-wpdatatables-from-serialized-php-array/)),
 * the format of the serialized array should be the following:
    2D-array, where 
   the parent level is an indexed array, and the second level is an associative 
   array. Parent array entries will be parsed as rows, child array keys will be 
   parsed as column headers, and child array values as cell values. Let us know 
   if that helps. Thank you

Viewing 1 replies (of 1 total)

The topic ‘Connecting WPDataTable to Seralized PHP Array’ is closed to new replies.

 * ![](https://ps.w.org/wpdatatables/assets/icon-128x128.gif?rev=3010404)
 * [wpDataTables - WordPress Data Table, Dynamic Tables & Table Charts Plugin](https://wordpress.org/plugins/wpdatatables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdatatables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdatatables/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdatatables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdatatables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdatatables/reviews/)

## Tags

 * [json](https://wordpress.org/support/topic-tag/json/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 2 replies
 * 2 participants
 * Last reply from: [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/connecting-wpdatatable-to-seralized-php-array/#post-16197628)
 * Status: resolved