Difference between revisions of "PHP and MySQL"

(a few random ideas)
 
(Redirected page to PHP#Databases)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
−
'''PHP and MySQL''' are both [[free software]], and they work together well for making database-backed websites.
+
#redirect[[PHP#Databases]]
−
 
 
−
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);
 

Latest revision as of 11:41, September 3, 2014

Redirect to: