PDA

View Full Version : ok I'm working on a gallery mod, so far so good, ran into one sligh problem


dv6cougar
05-09-2003, 02:32 AM
i have this in in members.php after if(action == "editprofile") {

$usess = $bbuserinfo[0];
$showgal1 = mysql_query("SELECT *
FROM dmf_images
WHERE user_id='$usess'
");
while ($showgal = mysql_fetch_array($showgal1)) {
$thumbid = $showgal['0'];
$gal = "<img src=thumb.php?id=$thumbid border=0>";

}

global $gal;
global $thumbid;


now this some what works! surprisingly to me :)

however, if i do in my template i'm suing do $gal it only does ONE image....

i need it to do all the images that person has uploaded. Any ideas on this one?


thanks :)

dv6cougar
05-09-2003, 02:33 AM
just edit the fetch_array and the query to
$DBsite->query();
and
$DBsite->fetch_array();

dv6cougar
05-09-2003, 04:03 PM
actually that only works for the MY login? why is that? :O

and it displays the last id entered into the database no matter what, so i'm lost, what did i do wrong?

colicab-d
05-09-2003, 05:08 PM
hmm, i would collab with you on a gall hack as if got it working per foruma dn the attachments within :D as the images :D

as for your prob id try the $DBsite stuff, but otherwise its a bit of a pest as its the way eval is used that causes this problem :p

im trying to work round this for me :p

so if you get an aswer shout me :D

dv6cougar
05-10-2003, 12:01 AM
ok will do, i think i'm just gonna do this a whole other wrote. i will show you if i get this done, it's a cars profile/pictures thing i'm doing. Now i made a login script using the forum username's and passwords, so that works out great now. So i think i'm gonna do the car profiles seperately