示例#1
0
<?php

include '../class/DBhandler.class.php';
$DBhandler = new DBhandler();
$sql = 'select user_pw from user where user_id ="32011070034"';
$results = $DBhandler->fetchQuery($sql);
echo $results[0];
?>

示例#2
0
    } elseif (isset($_POST['createSeries'])) {
        if (isset($_SESSION['visAntallPaameldteSortert'])) {
            unset($_SESSION['visAntallPaameldteSortert']);
        }
        //slutt isset visAntall.........
        $createSeriesOK = DBhandler::createSeries($_POST['occupancy']);
        if ($createSeriesOK) {
            echo 'Serien ble opprettet i databasen!';
        } else {
            echo 'Kunne ikke opprette serien i databasen';
        }
        //slutt
    } elseif (isset($_POST['visAntallPaameldteSortert'])) {
        ?>
		<h3>Sorterte påmeldte etter SmashBrosKarakter:</h3>
		<?php 
        echo DBhandler::tableOfBrawlers();
    }
    //slutt isset
    if (isset($_POST['visAntallPaameldteSortert']) || $_SESSION['visAntallPaameldteSortert']) {
        $_SESSION['visAntallPaameldteSortert'] = true;
        ?>
		
		<?php 
    }
    //slutt isset
}
?>
	</body>
</html>
示例#3
0
<?php

include 'assets/php/classContestant.php';
include 'assets/php/classDBhandler.php';
$teststring = '12';
?>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="assets/css/stylesheet.css" />
	</head>
	<body>
		<div class="tiers" id="tier1">
	<?php 
DBhandler::getTierMatches(1);
?>
		</div>
<!--		<div class="tiers" id="tier2">
	<?php 
//		DBhandler::getTierMatches(2, false) ;
?>
		</div>
		<div class="tiers" id="tier2">
	<?php 
//		DBhandler::getTierMatches(3, false, 2) ;
?>
		</div>
		<div class="tiers" id="tier3">
	<?php 
//		DBhandler::getTierMatches(4, false, 2) ;
?>
-->
示例#4
0
			</tr>
			<tr>
				<td id="formEmailFeedback" colspan="3"><?php 
    echo $formEmailFeedback;
    ?>
</td>
			</tr>
			<tr>
				<td>
					<label for="formSSBChar">Karakter:</label>
				</td>
				<td>
					<select id="formSSBChar" name="formSSBChar" tabindex="3">
						<option value="default">Velg en karakter</option>
						<?php 
    DBhandler::characterOptions($wikiList);
    ?>
					</select>
				</td>
			</tr>
			<tr>
				<td id="formSSBCharFeedback" colspan="2"><?php 
    echo $formSSBCharFeedback;
    ?>
</td>
			</tr>
			<tr>
				<td colspan="2"><input type="checkbox" id="formTOC" name="formTOC" /> Jeg godtar <a href="brukeravtale.html" title="Brukeravtale for SuperSmashBrosBrawl compo 2015-04-11" target="_blank">brukeravtalen</a></td>
			</tr>
			<tr>
				<td id="formTOCFeedback" colspan="2"><?php