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()); } } ?> Quote Link to comment https://forums.phpfreaks.com/topic/257775-zend/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.