X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Fbackend%2Fmysql%2Fbackend.inc;h=0dc22dcfe951d351c5c3610d4ad39258274dcfbf;hb=368d735fbf606b8d593b2bc7b719af81963a9699;hp=daba57b314d00aced86904a748ebd0d60c94d845;hpb=78f1a5f44941de2459b71c375e36cf88227c689c;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/backend/mysql/backend.inc b/wwwroot/backend/mysql/backend.inc index daba57b..0dc22dc 100644 --- a/wwwroot/backend/mysql/backend.inc +++ b/wwwroot/backend/mysql/backend.inc @@ -261,7 +261,7 @@ function getChildrenNodes($orderby="desc",$offset=0,$limit=DEFAULT_LISTING_AMOUN $q="select users.*,nodes.* from nodes left join users on users.user_id=nodes.node_creator where node_parent='$node_handle' order by node_created $orderby LIMIT $offset,$limit"; - echo $q; + #echo $q; $result=$db->query($q); while ($result->next()) { @@ -273,6 +273,23 @@ node_parent='$node_handle' order by node_created $orderby LIMIT $offset,$limit"; } +function GetUserSubmissionsChildren($user_id,$limit=23,$offset=0,$orderby='') { + global $db; + + $q="select users.*,nodes.* from nodes +left join users on users.user_id=nodes.node_creator where +node_creator='$user_id' order by node_created $orderby LIMIT $offset,$limit"; + //$q="select * from nodes LIMIT 10,10"; + #echo $q; + $result=$db->query($q); + + while ($result->next()) { + $array[]=addBase36id($result->getRecord()); + } + + return $array; +} + function getThreadedChildrenNodes($orderby="desc",$offset=0,$limit=DEFAULT_LISTING_AMOUNT) { global $db, $error, $node; $node_handle=$node['node_id'];