Created
January 1, 2010 19:42
-
-
Save ethnt/267226 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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