old_pixhack
banned
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.
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:
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']}' ");