Ever see the little errors of unable to find a file that is stored in mysql? Well you can use this tutorial to add a little message so the viewers know whats going on.
This tutorial shows how to store data into a MySQL database and then retrieve it by using a PHP query. This wil teach you the basics behind the use of PHP with databases.
A VERY good tutorial for beginners who are interested in learning the language quickly.
topics covered,
- mysql connections
- error handling
- listing databases on a server
- listing tables in a database
- printing mysql table fields into table header
- printing the data into the table automatically
why should you look at it?
- no specific fields mentioned, just point the script at a server, db and table and watch it do its thing!
- you get to reuse the code easily
- no functions, includes, api's or anything
- all 100% php + mysql code for beginners
- runs on php4 or php5, with any mysql version
by tss503
Platform(s): Linux, Windows, FreeBSD, Mac OSX, Sun Solaris
This is a PHP and MySQL tutorial. With code examples like uploading files to database, creating guestbook, contact form, Content Management System (CMS), User Authentication etc.
So you've written a great application with PHP and it is up and running smooth. Then, your boss calls and tells you that your company won't be using MySQL anymore. You're moving to Oracle. Your application is dead in the water. You should have used database abstraction.