Re: [PHP] News story with image - help
* On 21-01-02 at 14:46 * Will Hives said > >> I guess you must all be getting very bored with this type of question..but > >> away.. I have recently put together a simple news section which allows admin > >> people to add, edit and delete stories from the site...I would like to add > >> the function of adding an image to a story...I have managed to use the > >> upload image script ok but can't work out how to link the image to the story > >> ID. > > > > When you say link it, what would be the purpose? If you have many > > stories and many pictures that's one thing but if it's not so many then > > that is another. > > Presuming your id's are the keys to the database then perhaps you could > > re-name the image to include that key? (I have no idea off hand how to > > do this but I'm sure it's relatively simple) > > Sorry when I say link I mean that the story has an image with it so when the > story header is clicked it shows the full story with imagedoes that make > any sense? Well, the way I've done it is to make the image URL a field in the story database. Very simple and effective. (have scarf+coat on back in ½hr) -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com msg46819/pgp0.pgp Description: PGP signature
Re: [PHP] News story with image - help
in article [EMAIL PROTECTED], Nick Wilson at [EMAIL PROTECTED] wrote on 1/21/2002 1:36 PM: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > * On 21-01-02 at 14:32 > * Will Hives said > >> I guess you must all be getting very bored with this type of question..but >> away.. I have recently put together a simple news section which allows admin >> people to add, edit and delete stories from the site...I would like to add >> the function of adding an image to a story...I have managed to use the >> upload image script ok but can't work out how to link the image to the story >> ID. > > When you say link it, what would be the purpose? If you have many > stories and many pictures that's one thing but if it's not so many then > that is another. > Presuming your id's are the keys to the database then perhaps you could > re-name the image to include that key? (I have no idea off hand how to > do this but I'm sure it's relatively simple) Sorry when I say link I mean that the story has an image with it so when the story header is clicked it shows the full story with imagedoes that make any sense? Will > > - -- > > Nick Wilson > > Tel: +45 3325 0688 > Fax: +45 3325 0677 > Web: www.explodingnet.com > > > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.0.6 (GNU/Linux) > > iD8DBQE8TBlGHpvrrTa6L5oRAg/QAJ9Ust0H/IB6jqkipGY89rG+NVxvWQCcC20Q > 1aZ/0iT5Knwy6G0e0hhiRmk= > =Zmne > -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] News story with image - help
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 21-01-02 at 14:32 * Will Hives said > I guess you must all be getting very bored with this type of question..but > away.. I have recently put together a simple news section which allows admin > people to add, edit and delete stories from the site...I would like to add > the function of adding an image to a story...I have managed to use the > upload image script ok but can't work out how to link the image to the story > ID. When you say link it, what would be the purpose? If you have many stories and many pictures that's one thing but if it's not so many then that is another. Presuming your id's are the keys to the database then perhaps you could re-name the image to include that key? (I have no idea off hand how to do this but I'm sure it's relatively simple) - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8TBlGHpvrrTa6L5oRAg/QAJ9Ust0H/IB6jqkipGY89rG+NVxvWQCcC20Q 1aZ/0iT5Knwy6G0e0hhiRmk= =Zmne -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] News story with image - help
I guess you must all be getting very bored with this type of question..but away.. I have recently put together a simple news section which allows admin people to add, edit and delete stories from the site...I would like to add the function of adding an image to a story...I have managed to use the upload image script ok but can't work out how to link the image to the story ID. Is there any examples or does anyone have any suggestions? Thanks for reading this. Cheers Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]