Пример #1
0
    echo $_SESSION["name"];
    ?>
</h2>
			</div>
			<table class="ui celled table">
				<thead>
					<tr>
						<th style="width: 90%;">Pergunta</th>
						<th>Votos</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<?php 
    $question = new question();
    $questions = $question->getQuestionsByUser($_SESSION["id"]);
    ?>
						<?php 
    if ($questions == null) {
        ?>
							<tr><td colspan="2" style="text-align: center">Você ainda não fez nenhuma pergunta! :(</td></tr>
						<?php 
    } else {
        ?>
							<?php 
        foreach ($questions as $single) {
            ?>
								<tr>
								<td><a href="<?php 
            echo WEB_PATH;
            ?>