Jump to content

PHP code for saving a directory link in a mysql table - Help Please


Recommended Posts

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.

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;

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.