MySQL version 5.1.47
Apache version 2.2.15
PHP version 5.2.13
I need to read the value of the "posts_per_page" variable in the "options" table of my Wordpress database.
Can someone please provide the code to :
1) Read the current value of the variable,
2) Write a new value to the variable.
I will be using this code in "home.php" of a Wordpress theme.
Please include instructions or code demonstrating how to :
1) Initialize the class, and
2) Protect from SQL Injection Attacks.