andrewscofield / parse.com-php-library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to insert a row in a particular class (table)?

satheesh110 opened this issue · comments

I've successfully retrieved data from parse.com, thank you so much for your great work. I'm struck here. I've searched everywhere I couldn't find even a single example how to insert a row of data in a specified table and update it. Just a simple example.Your answer will help many others too. Help me out please! INSERT and UPDATE

If you look at parseObject.php it's pretty clear, but here's an example:

$parseObject = new parseObject($className);
$parseObject->col1 = $col1Value;
$parseObject->col2 = $col2Value;
// etc.

// to create:
$parseObject->save();

// to update:
$parseObject->update($objectId);

To insert/update users have a look at parseUser.php, it's very similar with some small differences.

Thank you soooo much! I get it.