Log in

View Full Version : Resolved include a file inside a folder



ggalan
11-09-2010, 01:38 AM
i am trying to include a file inside a folder called "txt"
the files name is inside a row in a dB
can some one help me with my syntax pleaae


include ("txt/" + $row0['shareText']);

Nile
11-09-2010, 02:02 AM
include ("txt/" . $row0['shareText']);


Good luck!

ggalan
11-09-2010, 02:31 AM
that did it, thanks!

Nile
11-09-2010, 02:38 AM
No problem, I'm glad to help :D

Here on DD, we like to keep things organized. In an effort to do so, you have the option to set a thread to resolved when an issue is fixed. To make the status of the thread resolved:
1. Go to your first post
2. Edit your first post
3. Click "Go Advanced"
4. In the dropdown next to the title, select "RESOLVED"


Remember, concatenating with PHP uses a .