Archív pre tag ‘mysql‘

From MySQL to HTML with PHP and XML

27.05.2011, Kategória: Napísali v zahraničí, Autor , Tagy: , , , Komentáre sú deaktivované

In my post From MySQL to XML with PHP, I described how to generate XML from the MySQL database. Instead of printing out XML, generated XML can be buffered and transformed with XSL to the HTML. Maybe it sounds complicated for a simple process of displaying MySQL data on the WEB page.

Čítať ďalej originálny článok

From MySQL to jQuery, via PHP, XML & Ajax

05.11.2010, Kategória: Napísali v zahraničí, Autor , Tagy: , , , , Komentáre sú deaktivované

Back in the early part of this year I posted an article around how to get MySQL data out of the database and into a web page via jQuery and Ajax. The tutorial was okay, but I made some rookie mistakes – specifically around the creation of XML data with PHP – This time, I hope to rectify that!

So this article will focus on getting data from a database using PHP, converting that to an XML document, and reading that XML in through jQuery via Ajax calls. Seems complex, but is in fact, very easy.

Čítať ďalej originálny článok

Working with Sessions and Cookies in PHP and MYSQL

28.07.2010, Kategória: Napísali v zahraničí, Autor , Tagy: , , , Komentáre sú deaktivované

Security is an essential component for any site to be successful. However, adding security can increase overhead and annoy your users if not done properly. In this tutorial, I will discuss common problems that are encountered when using sessions and cookies.

» Čítať ďalej originálny článok

Web services are taking over the world. I credit Twitter’s epic rise to the availability of a simple but rich API. Why not use the same model for your own sites? Here’s how to create a basic web service that provides an XML or JSON response using some PHP and MySQL.

» Čítať ďalej originálny článok

The simplest way of selecting random rows from the MySQL database is to use “ORDER BY RAND()” clause in the query.

SELECT * FROM `table` ORDER BY RAND() LIMIT 10

The problem with this method is that it is very slow. The reason for it being so slow is that MySQL creates a temporary table with all the result rows and assigns each one of them a random sorting index. The results are then sorted and returned.

» Čítať ďalej originálny článok

10 Ways to Automatically & Manually Backup MySQL Database

22.04.2010, Kategória: Napísali v zahraničí, Autor , Tagy: , Komentáre sú deaktivované

MySQL is one of the most popular open source database management system for the development of interactive Websites.
If your site stores its sensitive data in a MySQL database, you will most definitely want to backup that information so that it can be restored in case of any disaster (we all have been there).

» Čítať ďalej originálny článok