PHP Classes

File: php/ribbon.php

Recommend this page to a friend!
  Classes of Ann   Purp Project   php/ribbon.php   Download  
File: php/ribbon.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Purp Project
Application to manage photo albums
Author: By
Last change: Update of php/ribbon.php
Date: 1 year ago
Size: 625 bytes
 

Contents

Class file image Download
<?php
session_start
();
require_once
'includes/connect-db.php';

$user_ID = $_SESSION['user']['id'];


$img_query = "SELECT * FROM `pict` WHERE user_id <> '$user_ID' ";

$result = mysqli_query($connect, $img_query) or die("?????? " .
mysqli_error($connect));




for(
$i = 0; $i < mysqli_num_rows($result);$i++){
   
$pics =mysqli_fetch_array($result, MYSQLI_ASSOC);
   
// print_r($pics);
   
echo "<div id = \"".$pics['id']."\" class = \"pic\"><a href=\"pic.php?id=".$pics['id']."\"><img src=\"".$pics['path']."\" class = \"img\"/><div class = \"title\">".$pics['title']."</div></a></div>";
}


?>