Discussion in 'Web Development' started by LPH, Jan 21, 2013.
View on the Blog
Thanks for the tip.
LPH - Did you install this for a particular reason?
Yes. Research notes is presently in Caspio. Not having control over the database really bothers me. Plus, they charge a lot for data transfers. The project is better to be in MySQL, PHP, and on this server.
One more reason - less lines of code.
For example, this is the code for pulling the latest articles from Research Notes. It is far fewer lines than were used outside of the framework.
/* Script to pull the latest articles from Research Notes */
echo "<strong>Latest Articles in Research Notes</strong><br />";
$notes = $this->db->query("
SELECT * FROM notes
ORDER BY `note_id` DESC
foreach ($notes->result_array() as $note)
echo( "<a href='" . $note['original_URL'] . "'>" . $note['title'] . "</a> <br />");
Also, because I was able to tie the framework to WordPress, the header and footer automatically are pulled into the application.
This is the result. It took a few hours to get this right (tied to WP, learn to call query, echo the proper results). Still. Not bad for someone just learning PHP.
Awesome. You are making progress.