/booka/newlayout

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/booka/newlayout
11 by Gustav Hartvigsson
merging Neo to trunk. freezing neo branshs.
1
<?php
2
/*
3
	query test... only for query test....REALY! why am i even including this?
4
	0_o
5
*/
6
7
include "./inc/dbConnect.php";
8
include "./inc/head.php";
9
10
$res = $db->query("SELECT * FROM users");
11
while($res->valid()){
12
    $row = $res->current();     
13
    print_r($row);
14
    $res->next();
15
}
16
echo "<br />";
17
	
18
	$username1 = "aoeu";
19
	
20
	$query = "SELECT password FROM users WHERE username='{$username1}' ;";
21
	
22
	$userinfo = $db->query($query);
23
	
24
	$newinfo = $userinfo->fetch();
25
	echo $newinfo[password];
26
27
include "./inc/foot.php"
28
?>