4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Creating a DB table
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
phill2003
Junior WebHelper
Junior WebHelper


Joined: 20 Apr 2003
Posts: 1

PostPosted: Mon Apr 21, 2003 9:16 am (14 years, 8 months ago) Reply with QuoteBack to Top

if i wanted to create a db table with 3 gifs on it that were choosable and then when chosen have the gif displayed how would i do it..



i also would like it to be updatable so you can change the gif as and when...

sort of like these emoticons that go next to the thread you get one for each thread and you can change it ???

________________________________
"i'll get you butler you see if i dont"
OfflineView User's ProfileFind all posts by phill2003Send Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Mon Apr 21, 2003 9:32 am (14 years, 8 months ago) Reply with QuoteBack to Top

Do you want to store these GIFs in the database, or just store references to them?

images:
id,
url

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
drathbun
WebHelper
WebHelper


Joined: 01 Mar 2003
Posts: 69
Location: Texas

PostPosted: Mon Apr 21, 2003 6:17 pm (14 years, 8 months ago) Reply with QuoteBack to Top

phill2003 wrote:
sort of like these emoticons that go next to the thread you get one for each thread and you can change it ???

Those aren't stored in the database, just the relative path and filename are. It's much better that way. The page is generated by dynamically setting the image path and filename, then the web server "serves" the image as requested. So to add a new image, you would a) upload the image, then b) insert a row in the database with that image location.

Dave

________________________________
Dave
Photography Site :: Query Tools Forum :: Weekend Fun
OfflineView User's ProfileFind all posts by drathbunSend Personal MessageVisit Poster's Website
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.052775 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme