Hopefully you've watched part 1 and 2 in this series, but if not, well you've been warned.
So continuing onward we will now create a simple poll on our Wordpress template page. We will grab a poll ID from a query string variable. Then use that to look up the question and answers in the database. And of course we need to log into PHPMyAdmin to create our own table to pull and submit data too. If you've got a Wordpress site, you should have access to PHPMyAdmin. Along the way we will also learn how to grab the Wordpress login credentials from the global $wpdb variable, save those in a separate .php along with our mysqli variable (used in our main script to connect to the database table).
And worth noting, CartoonSmart.com subscribers all get free hosting now too, so if you want to try something of this yourself, sign up!
*** Like our tutorials? Become a subscriber at CartoonSmart.com and get over $8000 in game art, exclusive iOS Starter Kits, and access to ALL of our premium lessons***
Негізгі бет Code your own poll in Wordpress with PHP (part 3 in our Database series)
Пікірлер: 2