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().



Advertisements
Categories PHP

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s