Function not working
| From: | Dani Matielo | Date: | Sat, 10 May 2003 23:02:52 +0000 |
| Subject: | Function not working | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-147158@lists.php.net to get a copy of this message | ||
Hello,
here I have another problem, now with a function:
function destaque($id_editoria) {
$date = date("Y-m-d");
$result = mysql_query("SELECT * FROM materias where id_editoria =
$id_editoria AND data = $date ORDERBY prioridade LIMIT 1");
$destaque = mysql_fetch_array($result);
return $destaque;
};
?>
The error is acused in the line starting with $destaque... what did I do
wrong? :(
Thank you,
Dani
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.476 / Virus Database: 273 - Release Date: 24/4/2003