answersLogoWhite

0

Files cannot be directly stored in a MySQL database. However, a path to the file or the contents of the file can.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the Malay-utf-8.inc. php file?

This particular file is a file specific to the PHP program or script you are using. It is not a "php system file".


What are the advantages of traditional file processing and database approach?

An alternative to using a database to store data is to use what are known as flat files. These are basically text files that are stored on your server that you can use to store your data, change, manipulate and generally use how you want. Although I'd recommend you use a database, you can use PHP's file processing system. There are 3 steps to writing data to a file: # Open the file (create if doesn't already exist) # Write data to the file # Close the file There are also 3 steps to reading data in a file: # Open the file (if cannot be opened, generate an errror) # Read the data # Close the file


How do you insert value to a dropdownlist from textbox input php?

Store the textbox input in a database using a html form prefarably. Using a loop get all the textbox input from database and use print/echo to show them in a dropdown.


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).


How do you create a DIV type file using PHP?

A file with the DIV file extension is a DivX Movie file, it cannot be created with PHP. PHP is a web programming language for web site building.


How do you store Unicode chars in a MySQL database and then display them back with PHP?

Set up the database as a UTF-8-encoded database. You can do this easily with PHPMyAdmin.


What is the role of HTML in php?

HTML is one method by which PHP can output a response. Other response methods are file, database, email, and network (URI).


What is the database not found error in PHP with MySQL?

It would mean the database you are trying to select in your PHP script couldn't be found, you will need to check to see if you are using the correct details.


How do you close a MySQL database connection using PHP?

To close your MySQL database connection you need to use the mysql_close() function. Please see the example below: <?php mysql_close(); ?> If your connection data is stored in a variable you would close the connection like this instead: <?php mysql_close($db_conn); ?> That's useful for if you're using more than one database connection in a PHP script.


What proportion of websites are dynamic say php?

A possible use case for dynamic content via PHP may be:page content (add content to a database and fetch it with PHP)news (news entries from a database or a file are read and put out to the user)forumsfaqjust to name a few


How do you save image url in database by using php?

To save an image URL in a database using PHP, you can create a table with a column to store the URL. When inserting data, you can use SQL queries with PHP to insert the URL into the database. Make sure to properly sanitize and validate the input to prevent SQL injection or other security vulnerabilities.


How do you insert files into a database using PHP?

Im not entirely sure what you mean. But say you have some text you want to save and load later on... you can put it into a database (e.g. MySQL) or even better a flat file database (e.g. a simple text file). Say for example you have a chatbox. And you want to save the text into a .txt file so u can load it later on using php as well. However if you want to save important data (e.g. passwords credit card information) then i would recommend using a proper database like phpMyAdmin. If u need to no more just send an email to wasim-ilyas@hotmail.co.uk (my email address). Thanks, Wasim Ilyas