I have a thing on my site, that allows people to upload music. They can either provide a link or upload from their computer. When they don't upload, it doesn't fill in the DB of song_url which is used to play the song. The uploading method adds a $song_filename though, which would be like song.mp3, all of the upload go to my website under music/upload/ so for $song_url i just want it to be like music/upload/$song_filename.
How can I use this
if( empty($song_url) )
So that it says if that is not filled in, it will replace that with
music/upload/$song_filename
If you don't know what I mean here it is in english
If the $song_url is not filled in then $song_url = mydomain.com/music/upload/$song_filename
Does that work? How would I code this?