All pastes #791575 Raw Edit

Anonymous

public php v1 · immutable
·published 2007-11-20 23:25 UTC
rendered paste body
## getDetails() functionprivate function getDetails(){	$query = sprintf("SELECT name FROM section WHERE pk_section_id = %d",		mysql_real_escape_string($section));	$result = mysql_query($query, $dbc);	$result = mysql_fetch_assoc($result);		$details = '<?xml version="1.0" encoding="ISO-8859-1" ?>	<rss version="2.0">		<channel>			<title>CalTimes &mdash; '. $result['name'] .'</title>			<dbc>'. $SITE_ROOT . 'section.php?id='. $this->section .'</dbc>			<description>The California Times RSS Feed</description>			<language>en-us</language>			<webMaster>nau8019@cup.edu (Ryan Nauman)</webMaster>';				return $details;}## Error spit out by PHPParse error:  syntax error, unexpected T_RETURN, expecting T_FUNCTION in <b>RSS.class.php</b> on line <b>37</b><br />