Open main menu
Home
Random
Log in
Settings
About Conservapedia
Disclaimers
Conservapedia
Search
Changes
← Older edit
Newer edit →
PHP
(view source)
Revision as of 11:41, September 3, 2014
430 bytes added
,
11:41, September 3, 2014
→Databases
Line 56:
Line 56:
and many others.
and many others.
+
+
===PHP and MySQL===
+
+
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);
==Books==
==Books==
JoeyJ
Block, SkipCaptcha, Upload,
Automoderated users
, delete, edit, rollback
7,537
edits