darkan9el Posted July 30, 2007 Share Posted July 30, 2007 Hi all, I'm just learning about php and sql, I have been asked if its possible to enable multiple images for a product, i.e. 3-4 images per product. I have found you can do this but the web shop they are using; oscommerce, only caters for one image per product and in order to add more one has to add things called contributions or contribs for short. The contribs usually consist of php files that you either use to replace the whole file with, effectively overwriting the original, or you just move the code you require to the original file, the latter is normally done if the original file already has modifications made to it. In included in some of the contribs is an .sql file and the creator of the contrib instructs you to import the .sql to the database. This is fine but they tend to assume you already know how to do this. I have been reading and think i need a program called 'phpmyadmin' to import the .sql file but i'm unsure how to go about doing that. The contrib I'm thinking of using is here: http://www.oscommerce.com/community/contributions,1642/category,all/search,MoPics Cheers Lee Quote Link to comment Share on other sites More sharing options...
fenway Posted July 31, 2007 Share Posted July 31, 2007 Yes, you'll need a CLI or some sort of interface to one. Quote Link to comment Share on other sites More sharing options...
darkan9el Posted July 31, 2007 Author Share Posted July 31, 2007 Thanks for the reply...Ok lets dumb it down a tad... :-\ what is a CLI and how would I use it. This is the first level folder structure for my server: / + - .cpaddons + - .cpanel + - .htpasswds + - .spamassassin + - .sqmaildata + - .etc + - .logs + - .mail + - .public_ftp + - .public_html + - .tmp + - .www So what now? Quote Link to comment Share on other sites More sharing options...
fenway Posted August 1, 2007 Share Posted August 1, 2007 CLI = command-line interface You need to read in these sql commands to the server. Quote Link to comment Share on other sites More sharing options...
darkan9el Posted August 5, 2007 Author Share Posted August 5, 2007 Ok after a bit of reading I found that the server is using cpanel, so i went to the cpanel website and found out how to log in, once i was in cpanel the fog lifted and everything started to make sense, i could see myphpadmin etc. I now have the extra images contrib installed its a bit clumsy but its better than none. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.