searls03 Posted February 25, 2012 Share Posted February 25, 2012 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 https://forums.phpfreaks.com/topic/257775-zend/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.