How to change the select statement
-
Now that I have my CSS problems solved, the next problem comes up.
I have a total of around 180000 photos uploaded to my site and I have managed those via a MYSQL database. It is totally impossible to upload this amount of media in wordpress.
I have a table with 3 colums:
stempel,
Dorklaring,
fotoIn order to save space and to allow me to upload my photo anywhere I want, the column foto only contains the filename (ie. img34567.jpg), nut no data about the location (path) for this photo.
The way I have managed this in the past is to “concat” the paths into the column in the select statement. For instance:
SELECT stempel, Dorklaring, concat("Https://www.arma-dania.dk/uploads/tyske_stempler/", foto) AS fotoI have tried (with no success) to do a similar thing in WP Data Access.
I thought I could do it in the select columns field, But it will not accept the concat statement.
There must be a smart way of doing this?
The topic ‘How to change the select statement’ is closed to new replies.