Cannot convert sqlsrv_errors to a string

Hi,

I keep getting an arry to string conversion error from the following. I’m trying to use the string in a popup javascript message.

$a_sql_errors = sqlsrv_errors() ;
$sql_error = implode( ",", $a_sql_errors ) ;

Got it. It’s because sqlsrv_errors() is a multi-dimensional array.

Sponsor our Newsletter | Privacy Policy | Terms of Service