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 revisionPrevious revision
Last revisionBoth sides next revision
v5:reference:connection:param [2020/01/25 00:33] – [Usage] Improve code layout, add comment for param reset dregadv5:reference:connection:param [2020/01/25 00:33] – [Usage] dregad
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: 2021/02/26 01:35 by dregad