How to upload image in mysql?
Check out this article.
The way I'd do it, allow someone to upload to a directory "Images/" and then put the link into a PHP script.. For example:
$query = "INSERT INTO images (user, link) VALUES ('Phil++', 'http://www.yoursite.com/images/image-name.png')";
And then to display the image would be:
$query = "SELECT user, link FROM images WHERE user='Phil++'";
$result = mysql_query($query);
while($row = mysql_fetch_array($result))
echo "<img src="' .$row['link']. '">';
That's how I'd do it.
The way I'd do it, allow someone to upload to a directory "Images/" and then put the link into a PHP script..
That is the standard (and recommended) method, but the way he asked the question made it seem like he wanted the images "in" the database.
But I wouldn't do that without a good reason. Doing it like you showed is by far easier, and usually less demanding on the server.
APLX is a very complete implementation of the APL programming language from MicroAPL. The company stopped producing it in 2016 and it has been taken over by Dyalog. While Dyalog ...
I recently had to mass insert a really large text file of strings into MySQL. Here's how I did it.
I am working on a project to view pdf files online and merge it into single pdf file. For that, I don't know which programming language and tool is ...