ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:param

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
v5:reference:connection:param [2020/01/25 00:33]
dregad [Usage] Improve code layout, add comment for param reset
v5:reference:connection:param [2020/01/25 00:33] (current)
dregad [Usage]
Line 23: Line 23:
 <code php> <code php>
 $sql1 = '​SELECT * FROM accounts WHERE ' ​ $sql1 = '​SELECT * FROM accounts WHERE ' ​
-    . '​name ​ = ' . $db->​param('​account'​) . ' AND '+    . 'name = ' ​ . $db->​param('​account'​) . ' AND '
     . 'total = ' . $db->​param('​amount'​);​     . 'total = ' . $db->​param('​amount'​);​
  
v5/reference/connection/param.txt · Last modified: 2020/01/25 00:33 by dregad