PHP

Q:
I am talking server-side. For PHP in Lianja I would use something like:

Code:
rs = db->openRecordset("select * from mytable")

but I don’t see where to pass in the arguments, in like regular php it works like this:

Code:
$sql  = 'select * from clients where clientid = ?';
$data = array(53);

$res =& $db->query($sql, $data);

A:
Well openRecordSet() does not support parameter markers. It’s not the same as query() which is included in from an external PHP library or extension (possibly PDO).
Just build up the character variable and give it as the argument to openRecordSet().



Categories PHP

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.