tylrwb Posted October 8, 2009 Share Posted October 8, 2009 This works $link = "content/".$picture; I wanted to put these in a directory related to the pic so i havae done this $link = "content/".$directory"/".$picture; this does not work i get a error on the screen. i have tried a couple of things and they produce errors. What am i doing wrong - Im stuck. Quote Link to comment https://forums.phpfreaks.com/topic/176973-php-code-for-saving-a-directory-link-in-a-mysql-table-help-please/ Share on other sites More sharing options...
cags Posted October 8, 2009 Share Posted October 8, 2009 If it's giving errors it would be awefully helpfull if you included them rather than make us guess. But in your code your not concatinating the string properly as you have $directory"/", these are two seperate strings and should be one of these... $link = "content/".$directory."/".$picture; // or $link = "content/"."$directory/".$picture; Quote Link to comment https://forums.phpfreaks.com/topic/176973-php-code-for-saving-a-directory-link-in-a-mysql-table-help-please/#findComment-933220 Share on other sites More sharing options...
tylrwb Posted October 8, 2009 Author Share Posted October 8, 2009 Sorry I am in one place and the work i am doing is in another and did not have that information at the time. It will not be untill later when i can implement this to make sure it works, but many thanks for the help. There is still alot i do not know yet - i guess. Quote Link to comment https://forums.phpfreaks.com/topic/176973-php-code-for-saving-a-directory-link-in-a-mysql-table-help-please/#findComment-933239 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.