doubo6658 2012-04-01 18:33
浏览 37
已采纳

我的代码中使用谷歌融合表的错误是什么?

i'm having problems with accessing my database from my server. i'm newbie in FT, so i'll describe all my actions.

1)At first i created table and made it public here it is: https://www.google.com/fusiontables/DataSource?snapid=S443329UwZ1

2)Then i downloaded a class to work with FT: http://code.google.com/p/fusion-tables-client-php/source/browse/

3)After that i knew an id of a table to use: 3406706

4)Tried to run modifyed file client_login_example.php:

    include('../clientlogin.php');
    include('../sql.php');
    include('../file.php');

    //get token
    $token = ClientLogin::getAuthToken('dummydan71@gmail.com', '253270514qQ');
    $ftclient = new FTClientLogin($token);

    //show all tables
    echo "<h1>hello</h1>";
    echo $ftclient->query(SQLBuilder::showTables());
    echo "<br />";

    //describe a table
    echo $ftclient->query(SQLBuilder::describeTable(3406706));
    echo "<br />";

    //select * from table
    echo $ftclient->query(SQLBuilder::select(3406706));
    echo "<br />";

But nothing is being displayed. What's the problem?

  • 写回答

2条回答 默认 最新

  • dtfpznrbn503027700 2012-04-02 11:58
    关注

    I don't know why but the official class for FT didn't work. But another class that I found over there:

    zend google fusion table update

    worked well.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据