Skip to content

Instantly share code, notes, and snippets.

@ethnt
Created January 1, 2010 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ethnt/267226 to your computer and use it in GitHub Desktop.
Save ethnt/267226 to your computer and use it in GitHub Desktop.
<?php
/* Finito
* A social lifestreaming application.
* Revision 0.1.1
*
* system/includes/models.php
*/
# This file prepares all the database interaction for the views (/system/views/.).
// Connect to MySQL
$connect = mysql_connect($host, $user, $pass) or die($error = 'Could not connect to MySQL database.');
$select = mysql_select_db($name) or die($error = 'Could not select MySQL database.');
// Get the feeds
$feedQuery = mysql_query("SELECT feedURI FROM networks");
$feedArray = mysql_fetch_array($feedQuery);
print_r($feedArray);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment