I need some help please...

From: Date: Mon, 04 Jun 2001 13:04:34 +0000
Subject: I need some help please...
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-863@lists.php.net to get a copy of this message
Hello every body, OK I suppose that the answer to my question is something obvious but.... I failed to loop through the following array : // Returns: // 0 - error (prints error to output) // array results - // This is a multi-dimensional array containing various information // of the poll identified with $poll_id. // The first element of the array ($result[0]) contains the topic of // the poll and the number of total votes: // $result[0]["title"] - topic of the poll // $result[0]["votes"] - total number of votes for this poll // The next elemts contain information about the individual poll // options. If a poll has two options, it would contain two more elements - // $results[1] and $results[2] - both being an array again with the following // elements: // $result[n]["text"] - text of the option // $result[n]["votes"] - votes for this option This is an array from phpPolls The result might be : $result[0]["votes"] people voted for $result[0]["title"] -------- $result[1]["text"] : $result[1]["votes"] votes [...] $result[n]["text"] : $result[n]["votes"] votes Thanks in advance Luc

« previous php.smarty.general (#863) next »