Hello everybody,
I am looking for some very basic examples on how to add, delete, alter objects in the NING Content Store.
Generally I want to store some custom data/objects in my network, e.g. products. So, since I am very familiar with PHP/MySQL I would query something like this the PHP way:
Create object/table
$sql="CREATE TABLE products (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100),
category VARCHAR(100),
price VARCHAR(20)
)";
mysql_query();
To store data in my new object I would do this in conventional PHP manner
$sql="Insert into 'products' (..) Values (..)";
You probably know what I mean.
Same applies to alter, delete and update.
Now I would like to know if there is an equivalent to NING's Content Store and what it would be like?
Is there any tutorial for it?
Tags:
Views:2
Replies to This Discussion
Permalink Reply by abhi on September 3, 2008 at 12:14am
i don't know of a tutorial - the reference section has some good writeups.
i'm going to be coding some stuff in the next few weeks and will probably have a better answer for you then. for now you might want to look at the php apis for accessing the content object at http://developer.ning.com/main/docs/XN?da/d08/class_x_n___content.html