Fetching data from database

Moneya Posted in Component Development 10 years ago

how do i fetch users data from ossn database like for example when taging users, in ossn wall..

Replies
ng Moneya Replied 10 years ago

hi, how do i create a new table
i created a new file called create_table.sql
how do make my component register that to the database

ng Moneya Replied 10 years ago

cool,but what i meant was how do i create a database with my plugin to write ossn database for example..create database for hashtag..
what code do i use.

ng Moneya Replied 10 years ago

cool

Indonesian Arsalan Shah Replied 10 years ago

I am writing a example code below:

$fetch = new OssnDatabase;
$params['from'] = 'my_table';
$params['wheres'] = array("id='1'");
$data = $fetch->select($params, true);

my_table = The name of your table.