ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:adonewconnection

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
v5:reference:connection:adonewconnection [2020/01/11 22:57] – [Additional Parameters To DSN connection] mnewnhamv5:reference:connection:adonewconnection [2020/12/08 10:39] (current) – better use PHP string concatenation for example instead of javascript's ;-) peterdd
Line 44: Line 44:
 $driver = 'mysqli'; $driver = 'mysqli';
 $DSN    = "user:password@localhost/employees"; $DSN    = "user:password@localhost/employees";
-$db     = adoNewConnection($driver '://' $DSN);+$db     = adoNewConnection($driver '://' $DSN);
 /* /*
 * Now connected * Now connected
v5/reference/connection/adonewconnection.txt · Last modified: 2020/12/08 10:39 by peterdd