SQL query in pages
-
Hi,
I am new to wordpress and would like help to get the following scenario to work.
I have a registration page with a registration form for an event. The results are stored in a table on the same DB as the WP installation. I would like to have the results of an SQL query display on a page of “Confirmed Attendees” where that SQL queries my table and spits out those results where I have flagged those folks who have paid the attendance fee. I then want these results to appear in a table with the first name, last name and attendance status.
My question is:
- How do I use the connection to the SQL DB that wordpress is already using?
- How do I write the PHP so that the table will have as many rows as the SQL statement will spit out?
Your help is very much appreciated.
Thanks
Kenneth
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘SQL query in pages’ is closed to new replies.