I have this application where I want to display various albums from musicartists. My issue though is that the track_duration-field gives me for example 00:04:16 but what I want is 04:16 - so I tried to integrate the MySQL SUBSTRING-function but without luck.
My original MySQL-string looks like this:
SELECT products.title AS album_title, products.genre AS album_genre,
products.ccws_pro_id AS product_upc, track_title, track_duration
FROM products
INNER JOIN track_albumn_information ON products.ccws_pro_upc = track_albumn_information.product_upc
AND track_albumn_information.artist_id = '".$artist_id."' LIMIT 0 , 30
So, I tried to do track_duration, SUBSTRING(track_duration, 3) FROM products...
But that didnt work. It returned the same value 00:04:16.
How can i do this ?
didn't work. Was there an error? Was the result other that the expected one? If yes, what?