Forum Moderators: coopster
Here is my current setup which works fine. (Let us say the current row ID value equals 20)
$fpath = "E:\\images\\";
$fname = $row['ID'];
$fext = ".jpg";
$file = "$fpath$fname$fext";
When all is said and done, I want the value of the variable $file to equal "E:\images\20.jpg"
I know there is a more simple and elegant way of doing it, but I couldn't figure out the correct syntax.
Thanks in advance! :)
$file = 'E:\\images\\' . $row['ID'] . '.jpg';
Refer to the string documentation for more information: [us.php.net...]
Happy learning :)