Your best bet (and this is generally always the best for security and
internationalization) is to use a host variable. So, for example
(warning: the code below is untested):
$stmt = sasql_prepare( $conn, "select * from student where name in
( ?, ?, ? )" );
sasql_stmt_bind_param( $stmt, "sss", "John", "Jill", "Adam" );
if( sasql_stmt_execute( $stmt ) ) {
echo "Execute success\n";
// do fetching, etc... here
} else {
echo "Execute FAIL!\n";
}
sasql_stmt_close( $stmt );
Hope this helps.
Cheers,
Phil