All pastes #606936 Raw Edit

Someone

public text v1 · immutable
·published 2007-07-07 06:44 UTC
rendered paste body
Change:

		while ($this->row = $this->fetch_assoc($this->result)) {
			$this->replace = array($yoursiteurl, $this->row['id'], $this->row['title'], $this->row['description'], $this->row['url'], $this->row['thumbnail'], $this->row['category'], $this->row['hits'], $this->row['submittedby'], $this->row['time']);
			$this->output .= str_replace($this->find, $this->replace, $this->format);
		}



To:

		$i = 1;
		while ($this->row = $this->fetch_assoc($this->result)) {
			$this->replace = array($yoursiteurl, $this->row['id'], $this->row['title'], $this->row['description'], $this->row['url'], $this->row['thumbnail'], $this->row['category'], $this->row['hits'], $this->row['submittedby'], $this->row['time']);
			$this->output .= str_replace($this->find, $this->replace, $this->format);
			if ($i % 2 == 0) {
				$this->output .= '<br class="clear">';
			}
			$i++;
		}