Skip to content

Commit

Permalink
deneme
Browse files Browse the repository at this point in the history
  • Loading branch information
ertancan committed Apr 14, 2012
1 parent dc5ccd6 commit 2a3bacf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.php
Expand Up @@ -12,11 +12,11 @@ function connectToDb(){
function getUpdates(){
$query="SELECT * FROM Status JOIN User WHERE Status.user_id=User.id";
$result=mysql_query($query);
$rows = array();
while($r = mysql_fetch_assoc($sth)) {
$rows[] = $r;
}
print json_encode($rows);

while ($userRow = mysql_fetch_assoc($result)) {
echo $userRow['name'];
}

}
function disconnectFromDb(){
mysql_close();
Expand Down

0 comments on commit 2a3bacf

Please sign in to comment.