<?php
define('BASEPATH', 'TRUE');
require 'application/config/database.php';
$db = $db['default'];
$conn = mysqli_connect($db['hostname'], $db['username'], $db['password'], $db['database']);
$res = mysqli_query($conn, "SELECT photo FROM producto WHERE nombre = 'AGUA PERSONAL' LIMIT 1");
$row = mysqli_fetch_assoc($res);
echo "Photo: " . $row['photo'] . "\n";
