PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi I am experimenting with a small script that I am writing basically I have a form with these values name email comments image the image value is for uploading images this is all going into a database the image value in the database I specified as varchar because I had read it is better to specify the path to an image instead of loading the image into the database now in my php script when I pass the values I am stuck because I don't know how to specify the path so the database can read it would i just specify my image variable like this
maboroshi wrote:Hi I am experimenting with a small script that I am writing basically I have a form with these values name email comments image the image value is for uploading images this is all going into a database the image value in the database I specified as varchar because I had read it is better to specify the path to an image instead of loading the image into the database now in my php script when I pass the values I am stuck because I don't know how to specify the path so the database can read it would i just specify my image variable like this
See, there's this thing called punctuation . . . could you please try to use it?
Anyway, the best way to do this is just to give a URL right to the image. SO something like this: