/booka/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/booka/trunk

« back to all changes in this revision

Viewing changes to query test.php

  • Committer: Gustav Hartvigsson
  • Date: 2009-12-04 16:51:06 UTC
  • Revision ID: gego@quad-20091204165106-wumf1gzbskkuai0g
merging Neo to trunk. freezing neo branshs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
?>