Difference between revisions of "PHP and MySQL"

From Conservapedia
Jump to navigation Jump to search
m (cat)
(merge)
Line 1: Line 1:
 +
{{merge|PHP#Databases}}
 
'''PHP and MySQL''' are both [[free software]], and they work together well for making database-backed websites.
 
'''PHP and MySQL''' are both [[free software]], and they work together well for making database-backed websites.
  

Revision as of 17:45, August 9, 2008

It has been suggested that this article or section be merged with [[::PHP#Databases|PHP#Databases]]. (Discuss)

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);