I have a table with 3 columns id, FILE & DOWNLOADS.
All I want to do is view the value of the DOWNLOADS column if I specify the id value.
Simple eh! NOT. it gives me a value of 0 where it should be 17 so it doesn’t work.
[php]<?php
require ‘connect.php’;
$id = $_GET[‘xx’];
$body = “”;
if ($id == 1)
{
$result = mysqli_query(“SELECT * FROM download_manager WHERE id = $id”);
$row = mysqli_fetch_assoc($sql);
$downloads = $row[“DOWNLOADS”];
$body = ‘’.(int)$downloads.’’;
}
else
{
$body = '2. Blue ';
}
echo “returnBody=$body”;
exit();
?>
[/php]
plz plz plz help!