Question: I want to use *Universal Image Loader* library in my project I am using `ImageLoader` but it's not working well.
I have to use for grid view and User Profile Image. My `ImageLoader` is not working and is giving me a size problem.

Please tell me how to use Univarsel Library in my project .

here Is my Activity For Profile

```
// ImageLoader class instance
    ImageLoader imgLoader = new ImageLoader(getApplicationContext(),
            Welcome.this);

    image.setTag(image_url);

// whenever you want to load an image from url
// call DisplayImage function
// url - image url to load
// loader - loader image, will be displayed before getting image
// image - ImageView 
    imgLoader.DisplayImage(image_url, Welcome.this, image);

```

Above code used In my profile activity.

I want to know if I am adding Univarsal Image Loader Library.

What code I have to use to load image from url?

Answer: 
As far as I know, you **can't** use prepared statements nor bind values with Joomla.

If you read the Secure Coding Guideliness from the Joomla documentation (<http://docs.joomla.org/Secure_coding_guidelines#Constructing_SQL_queries>), they don't talk about prepared statements, only about using casting or quoting to avoid SQL injection.
From Joomla4, binding data to named parameters is possible with the `bind()` method. This has been asked for for many years and finally it has come to the CMS.

* Early reference in Joomla Docs: <https://docs.joomla.org/J4.x:Moving_Joomla_To_Prepared_Statements>
* Proper Joomla Documenation: <https://docs.joomla.org/J4.x:Selecting_data_using_JDatabase>
* Here's a good tutorial: <https://www.techfry.com/joomla/prepared-statements-in-joomla-4>

The syntax is precisely as prophecized in the snippet in the post

```
$taste = "sweet";

$db = JFactory::getDbo();
$query = $db->getQuery(true)
    ->select("*")
    ->from($db->quoteName("food"))
    ->where($db->quoteName("taste") . " = :taste")
    ->bind(":taste", $taste);
$db->setQuery($query);
$rows = $db->loadAssocList();

```