• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

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