douchun6108 2016-07-06 08:15
浏览 55

Laravel 5.1使用centos 6和PHP 5.6连接到SQL Server

I used the following link to make a connection to a SQL database using Laravel 5.1: http://jacksondean.net/connecting-to-microsoft-sql-server-with-php-from-centos-6-x7-x/

I followed each step and during the installation everything went good, but Laravel uses the lastInsertId function apparently. When I run my project I get the following error:

SQLSTATE[IM001]: Driver does not support this function: driver does not support lastInsertId()

I am using a Centos 6.7 server with PHP 5.6 and Laravel version 5.1 for the project.

Could someone help me out with this error?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何在3D高斯飞溅的渲染的场景中获得一个可控的旋转物体
    • ¥88 实在没有想法,需要个思路
    • ¥15 MATLAB报错输入参数太多
    • ¥15 python中合并修改日期相同的CSV文件并按照修改日期的名字命名文件
    • ¥15 有赏,i卡绘世画不出
    • ¥15 如何用stata画出文献中常见的安慰剂检验图
    • ¥15 c语言链表结构体数据插入
    • ¥40 使用MATLAB解答线性代数问题
    • ¥15 COCOS的问题COCOS的问题
    • ¥15 FPGA-SRIO初始化失败