本文整理匯總了PHP中event::ville方法的典型用法代碼示例。如果您正苦於以下問題:PHP event::ville方法的具體用法?PHP event::ville怎麽用?PHP event::ville使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類event
的用法示例。
在下文中一共展示了event::ville方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: while
require 'includes/menuInfos.php';
require 'includes/themesEvent.php';
require 'objets/ObjetEvent.php';
echo '<section id="voirProjet"><h2>Tous les projets dans cette ville</h2>';
$request = $bdd->query('SELECT * FROM freeCitizenEvent WHERE ville = "' . $ville . '" AND theme = "' . $theme . '" ORDER BY date LIMIT 0, 10');
while ($donnees = $request->fetch(PDO::FETCH_ASSOC)) {
//appel au constructeur
$event = new event($donnees);
//appel a la bdd
echo $event->id();
echo "</br>";
echo $event->titre();
echo "</br>";
echo $event->date();
echo "</br>";
echo $event->ville();
echo "</br>";
echo $event->theme();
echo "</br>";
echo $event->idAuteur();
echo "</br>";
echo $event->votes();
echo "</br>";
echo $event->participant();
echo "</br>";
$texte = $event->descriptif();
echo $texte;
echo "</br>";
echo "</br>";
//formulaire d'envois de commentaire
require 'includes/includesEvent.php';