NU Videos

View Album

include('include/mysql_conf.php');
$query1 = sprintf("SELECT * FROM gallery");
$id = 1;
if (isset ($_GET['id']))
{
$id = $_GET['id'];
}

$result1 = @mysql_query($query1) or die('can not execute'.mysql_error());
$count = mysql_num_rows($result1);

$query = sprintf("SELECT * FROM gallery WHERE `id`=$id");

$result = @mysql_query($query) or die('can not execute'.mysql_error());

$i = 1;

while ($data = mysql_fetch_array($result)){

$i++;

$val = $i % 2;

if ($val == 0 )

{

echo "

“;

}

$title[] = $data['title'];

?>

?>

if( $id > 1) {
?>

 View Album” alt=”” width=”650″ height=”400″ />