I’m working on a website, where I want to store some user inputs, in a mySQL database.
I’ve searched all over, but everyone who writes about a simple example, never showns the complete source code.
I’m totally new to PHP and mySQL, so I really need it to be dead simple… 🙂
Thank you in advance…
//Kenneth
First, you will need to call mysql_connect() to connect to your database which I assume exists. You can use the sample code below:
Then you will need to select a database using mysql_select_db():
Now it’s time for a mysql_query()! You will need to know the language SQL to do more advanced queries.
Good luck!