رفتن به مطلب
انجمن پشتیبانی لاراول ایران

هاست لاراول با پشتیبانی 24 ساعته و امکانات کامل از مدیرهاست

sh_mrajabi@yahoo.com

کاربر
  • تعداد ارسال ها

    2
  • تاریخ عضویت

  • آخرین بازدید

تمامی ارسال های sh_mrajabi@yahoo.com

  1. Array ( [0] => Array ( [0] => 22001 [SQLSTATE] => 22001 [1] => 8152 => 8152 [2] => [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]String or binary data would be truncated. [message] => [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]String or binary data would be truncated. ) [1] => Array ( [0] => 01000 [SQLSTATE] => 01000 [1] => 3621 [code] => 3621 [2] => [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]The statement has been terminated. [message] => [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]The statement has been terminated. ) )
  2. $serverName = ""; $namedatabase=""; $username=""; $password=""; $connectionInfo = array("Database" => $namedatabase, "CharacterSet" => "UTF-8", "UID" => $username, "PWD" => $password); $conn= sqlsrv_connect($serverName, $connectionInfo) or die("خطا در اتصال به بانک اطلاعاتی"); $sql = "insert into temp_azmoon (code_temp) VALUES (?)"; $stmt = sqlsrv_prepare( $GLOBALS['conn'], $sql, array("ali")); sqlsrv_execute( $stmt ); if( sqlsrv_execute( $stmt ) === false ) { die( print_r( sqlsrv_errors(), true));
×
×
  • جدید...