Jump to content



Recommended Posts

I am using Zend Gdata to insert rows into a google spread sheet.  how do I modify the insert code to insert multiple entries at the same time? I am pretty sure I need a foreach loop, can somebody help me write it?

      // create row content
      $row = array(
        "date" => date('m-d-y'), 
        "name" => $_POST['name'], 
        "item" => $_POST['item'],
        "paid" => $_POST['paid']

      // insert new row
      $entryResult = $service->insertRow($row, $ssKey, $wsKey);
      echo 'The ID of the new row entry is: ' . $entryResult->id;
    } catch (Exception $e) {
      die('ERROR: ' . $e->getMessage());

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.