ODBC prepared statements in PHP

前端 未结 6 543
后悔当初
后悔当初 2020-12-05 19:33

I\'m trying to use odbc_prepare and odbc_execute in PHP as follows:

$pstmt=odbc_prepare($odb_con,\"select * from configured where param_name=\'?\'\");
$res=o         


        
6条回答
  •  鱼传尺愫
    2020-12-05 19:54

    What DBMS are you using? The fact that the lone insert prepare statement seems to be executed against the database rather than being prepared points to either a poor implementation of php (unlikely) or the DBMS not supporting prepared sql. If the latter is the case it is possible that their way of supporting the command with out the functionality is just to execute the statement leading to the results you get. If the DBMS does support prepared statements and the php implementation handles it properly there is some kind of issue with the insert being executed which also needs some investigation.

提交回复
热议问题