Exemplo n.º 1
0
<?php

include 'appquery.php';
$Links = getAppLinks(6);
echo $Links[2];
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
Exemplo n.º 2
0
function getApp($AppID)
{
    $arrApp = array();
    $arrlink = getAppLinks($AppID);
    $conn = getConnection();
    $sql = "SELECT a.appName, a.appDesc, a.imgSrc, a.catID\n                FROM  `Apps` a,  `Category` c\n                WHERE a.appID = " . $AppID . "\n                LIMIT 0 , 1000;";
    $result = $conn->query($sql);
    if ($result->num_rows > 0) {
        // output data of each row
        while ($row = $result->fetch_assoc()) {
            $retarr = array("appn" => $row["appName"], "catn" => $row["catID"], "desc" => str_replace("`", "'", $row["appDesc"]), "imgs" => $row["imgSrc"], "iso" => $arrlink[0], "and" => $arrlink[1]);
        }
        $retarrs[] = $retarr;
    }
    $conn->close();
    echo json_encode($retarr);
}
Exemplo n.º 3
0
function editlns($AppID)
{
    $Links = getAppLinks($AppID);
    echo "<fb:like href=" . $Links[2] . "layout='button_count' show_faces='false' width='65' action='like' font='segoe ui' colorscheme='light' />";
}