1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?php
/*
query test... only for query test....REALY! why am i even including this?
0_o
*/
include "./inc/dbConnect.php";
include "./inc/head.php";
$res = $db->query("SELECT * FROM users");
while($res->valid()){
$row = $res->current();
print_r($row);
$res->next();
}
echo "<br />";
$username1 = "aoeu";
$query = "SELECT password FROM users WHERE username='{$username1}' ;";
$userinfo = $db->query($query);
$newinfo = $userinfo->fetch();
echo $newinfo[password];
include "./inc/foot.php"
?>
|