/extremedating/trunk

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

« back to all changes in this revision

Viewing changes to php/get_image.php

  • Committer: Gustav Hatvigsson
  • Date: 2013-04-13 20:19:36 UTC
  • mfrom: (31.1.3 extremedating)
  • Revision ID: gustav.hartvigsson@gmail.com-20130413201936-1clqi8dvl2wvc7im
added a file...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
include "db.php";
 
3
header("Content-type: image/png");
 
4
if(isset($_GET['userName']){
 
5
  $username = $_GET['userName'];
 
6
  $query = "SELECT profileImage FROM Users WHERE loginName = '{$username}'";
 
7
  $tuples = $db->query($query);
 
8
  $fetch = $tuples->fetchAll();
 
9
  print($fetch[0]['profileImage']);
 
10
} else {
 
11
  print("");
 
12
}
 
13
 
 
14
 
 
15
?>