PHP and MySQL

From Conservapedia
This is an old revision of this page, as edited by Foxtrot (talk | contribs) at 17:19, August 9, 2008. It may differ significantly from current revision.
Jump to navigation Jump to search

PHP and MySQL are both free software, and they work together well for making database-backed websites.

Methods for PHP to access MySQL databases all begin with the mysql_ prefix.

The convention is to store a query statement in a variable like $query or $sql.

$query = "select * from employee";

Results by convention are returned to a varible like $result.

$result = mysql_query($query);