The best magazine
How to Add Data into Columns in PHP
- 1). Open your favorite text editor. It should be able to save to arbitrary file formats, but otherwise has no requirements.
- 2). Copy the following code into your text editor:
mysql_query("Insert into TableName (column names) VALUES (values matched to column names")
Fill in the fields "TableName," "column names," and "values matched to column names" with information from your database. - 3). Save the file and upload it to your server. Visit the page in a Web browser. It will execute the query and add the data given to the designated database columns.
Source: ...