View difference between Paste ID: M5dym30w and qhhMBp5h
SHOW: | | - or go back to the newest paste.
1
<?php 
2
3
	$feed_url="http://www.ezrss.it/feed/";
4
	$feed = simplexml_load_file($feed_url);
5
6
	include_once('includes/connection.php'); 
7
	include_once('includes/article.php'); 
8
9
	$article = new Article;
10
	$articles = $article->fetch_all();
11
12-
	if(!function_exists('debug')) {
12+
13-
		function debug() {
13+
14-
			foreach(func_get_args() as $argument) {
14+
15-
				echo '<pre>';
15+
16-
				if(is_array($argument) || is_object($argument)) print_r($argument);
16+
17-
				else echo htmlentities($argument, ENT_QUOTES);
17+
18-
				echo '</pre>';
18+
19-
			}
19+
20
	}
21
	
22
	$add = false;
23
	foreach(array_reverse($array) as $key => $value) {
24
		if($add) {
25
			//add sql code
26
		}
27
		if($value[0] == $title) $add = true;
28
	}
29
?>