
Pixels & Beats
User
Dec 3, 2009, 8:41 AM
Post #2 of 4
(4234 views)
Shortcut
|
|
Re: [8bit Gamer] How to use images uploaded via FTP
[In reply to]
|
Can't Post
|
|
Well I've nearly worked out how to do it by putting myself on a internet search 1 day crash course on SQL stuff!! The only problem I have now is how to split or at least work with the image names which are in one field but separated by columns. My current SQL code looks like this and may be of use to others trying to work with CMSB in a non conventional way: # Clear table of rows, but leaves columns intact TRUNCATE TABLE usedbikes_uploads; # Copies data from one table to another INSERT INTO usedbikes_uploads (filePath,info1,info2,info3,recordNum) SELECT PICTURE_REFERENCE,MAKE,MODEL,REGNUMBER,num FROM usedbikes_adverts; # Inserts data into selected columns UPDATE usedbikes_uploads SET tableName='adverts', fieldName='uploads', width=600, height=450; # Appends data into selected column UPDATE usedbikes_uploads SET filePath=concat('D:/Hosting/4443434/html/usedbikes/data/', filePath);
|