Database queries to create a user/blog ?

Database queries to create a user/blog ?

Postby Toby78 on Fri Sep 28, 2007 11:40 am

What database insertions are necessary to simulate a user registration/blog registration?
Toby78
 
Posts: 17
Joined: Wed Sep 26, 2007 8:22 am

Postby phunkphorce on Sat Sep 29, 2007 1:22 am

Why would you need to mess around with the database when you can use the API

And even if you wanted to access the database directly, you can always have a look at our code.
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa

Postby Toby78 on Sat Sep 29, 2007 4:52 pm

....because it only has an addUser method, but no addBlog method...and I dont know what other tables are effected and every column means exactly.
Toby78
 
Posts: 17
Joined: Wed Sep 26, 2007 8:22 am

Postby phunkphorce on Sat Sep 29, 2007 5:22 pm

Toby78 wrote:....because it only has an addUser method, but no addBlog method...


Are you sure?

http://www.lifetype.net/api/class_blogs ... f752c1e9bf


and I dont know what other tables are effected and every column means exactly.


That's precisely why you should use the API (look into the DAO group of classes, those are the ones that encapsulate access to the database) instead of accessing the database. We have created a *lot* of code in order to hide all the database details from developers like you, so please use it :)
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa


Return to Requests and Suggestions

cron