• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Fetch images from DB?

Hi,
I haven't really understood how I should fetch the rows from the images table in DB for uploaders?

Is there any documentation for this?

I have tried with this but I get error.

Code:
$dB->query("SELECT * FROM chv_images WHERE uploader_ip = '{$_SERVER['REMOTE_ADDR']}' ");

Anyone out there who can help me?

Note. I am using this in one of the template pages, if this is relevant.

EDIT: solved.. I needed to define the class, I though it was defined earlier but it wasn't.
So it should look like this:
Code:
$dB = new dB();
$dB->query("SELECT * FROM chv_images WHERE uploader_ip = '{$_SERVER['REMOTE_ADDR']}' ");
 
Back
Top