General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 31st, 2004, 05:18 PM
Pheifel Pheifel is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Denmark
Posts: 174 Pheifel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 46 sec
Reputation Power: 5
Send a message via MSN to Pheifel
Unhappy Comments ?!

does anyone have a comment on why this will not work in some cases ?

[PHP] $TEST = mysql_fetch_array(mysql_query("SELECT * FROM USER_uploads WHERE userid = $gal"));
if ($TEST[0]) {
$PIC = mysql_query("SELECT * FROM `USER_uploads` WHERE userid = $gal ORDER BY time DESC LIMIT $limit");
while ($pic = mysql_fetch_array($PIC)) {
$TYPE = mysql_fetch_array(mysql_query("SELECT * FROM USER_cat WHERE id = $pic[type]"));

//skriver billedoverskrift
print "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td colspan='2' width='100%' class='sub'>";
print "<a href='?side=billede&gall=$gal&host=$pic[id]'>$pic[navn] | [$TYPE[besk]]</a> |*<a href='?side=vis&fra=$USERID&til=$gal&host=$pic[id]&NA=$pic[navn]'>Tilføj til fremvisnings galleri</a>";

print "</td></tr><tr>";
print "<td width='100' align='right' valign='top'>";

//skriver billedbeskrivelsen
print "$pic[beskrivelse]";

//viser billedet
$dest = "uploads/tegninger/".$gal."_".$pic[id].".jpg";
print "</td><td align='left' valign='top' width='80' height='200'><a href='$dest'><img src='$dest' height='100%' width='100%'></a>";

print "</table>";

}
} else {print "Denne bruger har ikke nogen tegninger";}

Reply With Quote
  #2  
Old April 2nd, 2004, 07:42 PM
tobycloud tobycloud is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Near Albany NY
Posts: 27 tobycloud User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to tobycloud Send a message via AIM to tobycloud
How, is it not working?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Comments ?!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT