直接拿打印的sql,放到编辑器执行啊。

解决方案 »

  1.   

    $row = sybase_fetch_assoc($result) 执行到了吗?
    print_r($row); 看看是什么
    $row = sybase_fetch_row($result)
    print_r($row); 看看又是什么手册中的
    Returns an array that corresponds to the fetched row, or FALSE if there are no more rows. 注: 本函数仅适用于 Sybase 的 CT 库接口,而不适用于 DB 库。sybase_fetch_assoc() is a version of sybase_fetch_row() that uses column names instead of integers for indices in the result array. Columns from different tables with the same names are returned as name, name1, name2, ..., nameN. An important thing to note is that using sybase_fetch_assoc() is NOT significantly slower than using sybase_fetch_row(), while it provides a significant added value. 可能与你有关
      

  2.   

    QueryLastMonth这个方法,你有去调用Connect方法,初始化sybase信息?
      

  3.   

    那么 echo $result; 得到的是什么?
    echo sybase_get_last_message(); 又看到了什么?
      

  4.   

    谢谢你 解决了;
    echo sybase_get_last_message();输出的是:Incorrect syntax near ';'
    我在拼接sql语句时最后面有个‘;’。 虽然拷贝到编译器能正常执行,但在程序里不能执行。 我用DW开发PHPy这厮又不报错,再问下斑竹,有没有好的php IDE?
      

  5.   

    IDE 有很多,只不过我都不用,没法推荐了