views:

21

answers:

0

I'm trying to execute a SQL statement using the ADODB PHP library against mySQL4.1 :

$rs = $db->execute("set @name = ?; select @name", array('test'));

but it does not seem to like this.

Is it possible to use variables with prepared statements?