Hi,
What I want to do is have a form where a user can input a specific html address and time and have the entered address be stored to a database and accessed at the user specified time. Is this possible to do using PHP?
Form to MYSQL Database
Moderator: General Moderators
- social_experiment
- DevNet Master
- Posts: 2793
- Joined: Sun Feb 15, 2009 11:08 am
- Location: .za
Re: Form to MYSQL Database
From your question : yes. Can you give more information about what you have in mind with the script? (or any code that you may have created).
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Re: Form to MYSQL Database
I haven't written any code yet, I just wanted to get pointed in the right direction of how I should approach this. (Haven't written much PHP, but have experience w/ other languages)
Making the actual form is the easy part, but is there a certain function that can save the results to a sql database? How can I get the database to access these url's at the specific time that was chosen by the user?
Thanks for the help.
Making the actual form is the easy part, but is there a certain function that can save the results to a sql database? How can I get the database to access these url's at the specific time that was chosen by the user?
Thanks for the help.
- social_experiment
- DevNet Master
- Posts: 2793
- Joined: Sun Feb 15, 2009 11:08 am
- Location: .za
Re: Form to MYSQL Database
Adding data to the database is generally more of a process but you can create a function. To insert data into a mysql database you would use the insert queryPeter_ wrote:... but is there a certain function that can save the results to a sql database? How can I get the database to access these url's at the specific time that was chosen by the user?
Code: Select all
<?php
$sql = "INSERT INTO table_name (field1, field2, field3) VALUES (escape_val_1, escape_val_2, escape_val_3) ";
?>“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering