I have just created a custom database table and would now like to output every inserted row from it into a predefined format using a foreach statement.
Some guidance in this matter would be great.
Thanks, Ashley
|
I have just created a custom database table and would now like to output every inserted row from it into a predefined format using a foreach statement. Some guidance in this matter would be great. Thanks, Ashley |
|||||||||||
|
|
Assuming you have table that's prefixed with the WordPress prefix (even if it's not the default one), and the table is called
See the Codex page on |
||||
|
|
|
Use the wpdb class with something like:
|
|||
|
|
|
Thanks to Rutwick Gangurde, I found out how to do it.
|
|||
|
|