hi guys im stumped, being new at php its not that hard, im trying to write code that uploads an image to specific folder name that is pulled form mysql

The following code works:

$this->fld_profile1->UploadPath = "images/profile/";

but i have a field in mysql that has value in and want to add that value between these folders. I dont know how to get the fld_foldername value to be part of that string

$this->fld_profile1->UploadPath = "images/" $this->fld_foldername "/profile/";

if anyone knows of some way
Thank you

Member Avatar for diafol
$this->fld_profile1->UploadPath = "images/" . $this->fld_foldername . "/profile/";

JUst use the concatenator (.)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.