We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

GEt and set values | Forum

Darren
Darren Jul 25 '12
How to get a value(of logged in user) from one table and set to another??
Purusothaman Ramanujam
Can you explain in detail what you are looking for?
Darren
Darren Jul 26 '12
For example when in make a new blog post i want to get for example the genere of logged user and save that value in blog table in data base.

this is one example

get from one table(questions) and save in other table.

this is realy important for what i´m doing with oxwall, because in php its realy easy to do this!
Purusothaman Ramanujam
Why would you need that? Whats the purpose of this? Are you trying to make any plugin or just a core file changes?

I could not still get "get from one table(questions) and save in other table" ..
Darren
Darren Jul 27 '12
Its for make a plugin a to change others, to make some restritions to my social network.

but i realy would like to know how to get a value from questions table
Den Team
Den Oct 2 '12
Topic was moved from General Chat.
Michael I.
Michael I. Oct 9 '12
This method is getting raw values for questions from database:


 /**

*

* @param array $data

* @param int $userId

*

* return array()

*/

public function getQuestionData( array $userIdList, array $fieldsList )

The Forum post is edited by Michael I. Oct 9 '12
l.a.
l.a. Sep 1 '13
i am using oxwall for the first time. i am creating profile questions and i want to make it where user has to enter an area code, one that is available from a set of possble area codes. for example new york area codes. i want them to enter a phone number and if it does not have a new york area code, i want it to force them to use a new york area code. is that possible? thanks for your help.
Daisy Team
Daisy Sep 5 '13
l.a, yes, it's possible, but it requires quite a complicated code modifications. Maybe other forum members have ideas on how to perform it. Or if you are not familiar with the code modifications, it would be better for you to find a developer who can help you with it: http://www.oxwall.org/market/specialists