answersLogoWhite

0

You cant upload an actual picture to MySQL, you can upload the URL but not the picture itself. You would have to upload this to your site first and then send the link to MySQL

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you retrieve an image from a database using PHP?

It depends what Database you are using. I personally use MySQL so will explain how you would do it using MySQL. You would have to create the MySQL database. I would store the image URL rather than the actual image. Then call it using PHP and a MySQL query. For Example: $sql = "SELECT * FROM Images WHERE Img_Name = 'img1'"; $query = mysql_query($sql); $array = mysql_fetch_array(query); then you would call it into HTML like so:


How do you develop software using PHP and MySQL?

how do u develop software using php and mysql?


How do you upload an image using PHP?

You upload the image in HTML using a form that includes the following field <input type="file" name="fileUpload" /> After the form is submitted, you can access it with the $_POST variable as $_POST['fileUpload'] http://www.tutorialsscripts.com/free-php-scripts/file-and-directory-script/image-upload.php


What are the advantages and disadvantages of PHP with mysql?

Ultimately PHP is a programming language and MySQL is a database language. Using PHP with MySQL is a nice combination with built-in support and the simplicity of it all. However, there aren't a lot of disadvantages of using PHP with a database, it just allows for better data organization and whatnot. There are definitely advantages and disadvantages to using a database other than MySQL (such as MongoDB or PostgreSQL).


Who can design your website in PHP and MySQL?

Any of the millions of web developers using PHP and MySQL around the world. Either that or teach yourself!


How do you insert an image into MySQL using a BLOB?

There is a pretty solid tutorial here http://www.mysqltutorial.org/php-mysql-blob/ if you are using PDO. Without seeing your database table structure, it is hard to know what the propoer approach would be for your situation


How can you export data from MySQL to PDF using PHP?

If you know FPDF or simlar library which helps to make a PDF file, using PHP,you will be able to write to a PDF file out of data read from mysql tables.


Free source code on online examination using PHP and MySQL?

yes


How do you datamine websites using PHP and MySQL?

You don't really expect an answer here, do you?


How do you set up a hit counter?

Using either CGI or PHP and a MYSQL table.


How do you create a database using PHP?

The following are the fundamental procedures for creating a MySQL database with PHP: As demonstrated in this article, connect to the MySQL server from your PHP script. If the connection is successful, construct a database using SQL and save it in a string variable. Carry out the query. To learn more about data science please visit- Learnbay.co


What technologies that used to build FaceBook is it php mysql is so what are the rest of the technologies needed?

facebook definatly runs on php (as you can tell by going to www.facebook.com/home.php). Also when you apply for a job to the company mysql knowledge is a must. However as for the platform it runs on that is difficult to say for sure, however i would imagine them to be using a classical LAMP setup (Linux Apache MySQL and PHP) as is very common with php/mySQL sites.