Open main menu
Home
Random
Log in
Settings
About Conservapedia
Disclaimers
Conservapedia
Search
Changes
← Older edit
Newer edit →
PHP
(view source)
Revision as of 00:00, September 4, 2014
229 bytes removed
,
00:00, September 4, 2014
→PHP and MySQL
:
update to reflect that the old mysql_ php functions are deprecated
Line 61:
Line 61:
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.
−
Methods for [[PHP]] to access MySQL databases
all begin with the '''mysql_''' prefix
.
+
Methods for [[PHP]] to access MySQL databases
include mysqli and PDOs
.
−
−
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==
GregG
Block, SkipCaptcha,
Automoderated users
, edit, rollback
3,135
edits