Posts

Showing posts from February, 2015

jquery - Call external JS file based on "media screen" value -

i'm trying not working: <html> <head> <script src="js/menu-collapser.js" type="text/javascript" media="media screen , (max-width: 599px)"></script> </head> ... </html> //menu-collapser.js : jquery(document).ready(function($){ $('.main-navigation li ul').hide(); $('.main-navigation li').has('ul').click(function() { $(this).children().toggle(); }); }); do have idea on how in right way? script work if used directly in header tags. you can't directly using javascript <script> tags. media queries used in linked css files or inline css styles. basic example: <link rel="stylesheet" media="screen , (min-width: 900px)" href="desktop.css"/> <link rel="stylesheet" media="screen , (min-width: 571px)" href="tablet.css"/> <link rel="stylesheet" media="screen , (max

windows - FlashDevelop breakpoints for Haxe CPP, allowing "Step-Into" functionality? -

is there way set break-point in flashdevelop when targeting haxe/nme program windows? hard follow logic of bug if cannot step code. in post can find example visual studio project allow debug cpp target.

c# - How do I change panorama background image depending on theme color? -

i have wp7 application uses dark image panorama's background. issue when device set light theme cant make change lighter version of it. private color lightthemebackground = color.fromargb(255, 255, 255, 255); private color darkthemebackground = color.fromargb(255, 0, 0, 0); private void displaystate() { solidcolorbrush backgroundbrush = application.current.resources["phonebackgroundbrush"] solidcolorbrush; if (backgroundbrush.color == lightthemebackground) { panoramabackgroundimage = bg_light.png; } else { // in dark theme } } and in .xaml file can't add image (it lets me define panorama background once! <controls:panorama title="museo"> <controls:panorama.background> <imagebrush x:name="panoramabackgroundimage" stretch="fill" imagesource="/museo;component/bg_dark.png" /> </controls:panorama.background> thanx

fopen - fscanf reads incorrect value ? -Xcode -

Image
i've placed file.rtf in directory library/developer/xcode/deriveddata/test(projectname)/build/products/debug , code seems open prints out wrong output.the output 1606422622 integer value in file. going through solutions of question similar mine ,the answers input file in right directory.i think i've done can't correct output. desperate help.thanks. int main() { int b; file *fp; fp=fopen("file.rtf","r"); if (fp == null) { printf( "file doesn't exist!\n"); } fscanf(fp,"%i",&b); printf("%i\n",b); fclose(fp); } looks trying read rtf formatted file. try saving file 'plain text file' in textedit. (with extension .txt)

git - fork on github, then how do I manage my contributions? -

i'm little unclear on forkflow follow fork on github. what if have several small independent fixes of various bugs in original repository, of medium-sized project, say, opengrok? do create separate branches each relatively small unrelated bugfix? do create each branch master , or branch 1 unrelated branch next? do commit fixes master ? i mean, on time, still want preserve history , all, i'm afraid after while there'll complete mess in regards lot of meaningless branches relatively minor bug fixes. i plan contribute number of non-related fixes given project, , trying planning of development approach. there several possible workflows when forking project on github , plan submit changes upstream. 1 of workflows tend follow (i'm going call repo i've forked remote source , repo origin ): fork main branch used source , let's master origin/my-dev . origin/mydev changes , main development go. i regularly rebase remote/master onto origi

ios - Wrong type given when loading UITableViewCell subclass from a nib -

the following assertion failing: nsstring *class = nsstringfromclass([rctreceiptoptionscell class]); rctreceiptoptionscell *cell = [[[nsbundle mainbundle] loadnibnamed:class owner:self options:nil] objectatindex:0]; nsassert([cell iskindofclass:[rctreceiptoptionscell class]], @"cell wrong class dummy"); i trying create uitableview cell subclass nib , has worked me in past. method returns uiview in ios 6.1. ideas on how fix this? make sure class of root object in nib set rctreceiptoptionscell rather default value of uiview .

How to Assign a Quick Launch Hotkey to a Specific App on Android -

i trying set quicklaunch shortcut key app. i able bring quick launch screen following code: launchintent = new intent(); launchintent.setaction("android.intent.action.main"); launchintent.setpackage("com.android.settings"); launchintent.setcomponent(new componentname("com.android.settings", "com.android.settings.quicklaunch.quicklaunchsettings")); startactivityforresult(launchintent,0); the screen looks this: quick launch screenshot . can assign app to, example, "a", , when press find-a, launch app. what i'd programmatically assign hotkey specific app, cannot figure out how this. possible, , how?

Eraser tool in html5 canvas -

hi building windows store app html5 , javascript in app trying implement eraser tool problematic because if user moves image or layer they've erased, see white drawing erased. have been trying eraser tool different ways example have changed default globalcompositeoperation "destination-out" code //here error. if (clicktool[j] == "eraser") { ctx.globalcompositeoperation = 'destination-out'; ctx.fillstyle = 'rgba(255,0,0,0.5);'; ctx.strokestyle = 'rgba(255,0,0,0.5);'; } else { ctx.globalcompositeoperation = "source-over"; ctx.strokestyle = clickcolor[j]; } but unfortunately doesn´t work me. have uploaded code link: my code please me. thanks , i'm sorry speech , i'm mexican. use multiple layers. have 1 canvas background image , drawing; why never erase of background image. if need to, c

c# - nhibernate criteria set the alias of a subclass parent? -

i have abstract base class contains property called "datecreated"; has number of child classes, of link each other. when try query against 1 of child classes, ambiguous column error datecreated, contained in more 1 table. here snippet of criteria: .setprojection(projections.projectionlist() .add(projections.groupproperty(item.linkfield + ".id"), "measure") .add(projections.count("id"), "statcount") .add(projections.groupproperty("lnk." + item.linktextfield), "measuretext") .add(projections.sqlgroupprojection("month(datecreated) [period]", "month(datecreated)", new[] { "period" }, new itype[] { nhibernateutil.int32 }))) is there way me specify part of criteria alias join between subclass , parent? don't think createalias work there no joining properties. if prefix {alias}. datecreated , prefix _this in generated sql , while alias of current table, not alias of parent

shopify - JQuery Tabs, putting my divs into display:none -

i have implemented tabs site use product description. its working, text on each tab disappears after 2 secs, after count adding display:none style div. it picks first 5 div info source in shopify last div picked place. also first div gets filled information each div until click tab @ top shows appropriate info. this code: <script> $(function() { // <== shorter form of doc ready $('#tabs > div').hide(); $('#tabs div:first').fadein('slow'); $('#tabs ul li:first').addclass('active'); $('#tabs ul li a').click(function(){ $('#tabs ul li.active').removeclass('active'); // <== need $(this).parent().addclass('active'); var selectedtab=$(this).attr('href'); $('#tabs > div').fadeout('slow', function() { // <== use callback $(selectedtab).delay(500).fadein('slow'); // <== add delay

asp.net - How to change the table layout when using datalist? -

Image
how change table layout when using datalist. below aspx using populate data, result shown in example 1. there not continuation of showing data due table layout ? how can achieve show result shown in example 2 ? i in need of using datalist since using repeatcolumn not available in repeater. aspx : <asp:datalist id="dl_groups" repeatcolumns="2" runat="server" onitemdatabound="dl_groups_itemdatabound" repeatdirection="vertical" showfooter="false" showheader="false"> <itemtemplate> <asp:checkbox runat="server" id="chk_group" text='<%# eval("category_type") %>' value='<%# eval("service_type_category_id") %>' onclick="ongroupclick" /> <asp:checkboxlist runat="server" id="chkservicetype" style="padding-left: 20px" datavaluefield=&q

eclipse - Exception in thread "main" java.lang.NullPointerException in DVD sorting program -

i attempting create program puts dvd information array , sorts them alphabetically based on title using compareto method comparable. i have boolean method finds out whether 2 titles same: public boolean equals (object other) { return (title.equals(((dvd)other).gettitle())); } and compareto method looks this: public int compareto (object other) { int result; string othertitle = ((dvd)other).gettitle(); result = title.compareto(othertitle); return result; } these 2 methods in dvd class have implementing comparable. the sorting algorithm took used directly example sorts names alphabetically here well: public class dvdsorting { public static void selectionsort (comparable[] list) { int min; comparable temp; (int index = 0; index < list.length-1; index++) { min = index; (int scan = index+1; scan < list.length; scan++) if (list[scan].compareto(list[min]) < 0)

python - Antialiasing of Curves by Discrete Pre-filtering -

i'm looking implement bezier curve algorithm described in paper "antialiasing of curves discrete pre-filtering" a.e. fabris , a.r. forrest. i'm missing core piece of puzzle: point containment algorithm curves corthout , pol. it's outlined in book raster imaging , digital typography . i iterate on every pixel, calculate shortest distance bezier, , use calculate effect of brush. mentioned in paper it's inefficient approach. is there outline or pseudo code point containment algorithm (or equivalent) same thing? i'm going answer own question seeing i've figured out. turns out point containment isn't needed, , outlined in paper. here's implementation in python , wxwidgets, rendering few curves using box brush. sadly it's slow practical use, after rewriting in c , making several optimisations. best 30ms per bezier, , rendering picture of 100 curves took 3 seconds. other vector applications tend use path based bezier renderin

node.js - Creating Google Calendar Events using API doesn't create Hangout link -

i've been successful far in hacking googleapis , gapitoken packages create events on google calendar via api. point of find way programmatically generate google hangout link, cannot via api, far know. according this post , supposed able enable automatic creation of hangout links when creating events, have done account. the code using going run node.js, there no user-facing portion. using service account technique authenticate via oauth2.0. seems work fine, except event created contains no property called 'hangoutlink'. ideas? var moment = require('moment'); var googleapis = require('googleapis'); var googletoken = require('gapitoken'); var oauth2client = googleapis.oauth2client; var token = new googletoken({ iss: '*******************@developer.gserviceaccount.com', scope: 'https://www.googleapis.com/auth/calendar', keyfile: './*****************.pem' }, function (err) { if (err) { return conso

Javascript Submit is not Sending POST to php file -

i having trouble getting javascript hyperlink button post data php form email script. have tried doing several different ways, nothing seems work. appreciated. thank you. my form code: <form id="form" action="contactform.php" method="post" enctype="text/plain" > <fieldset> <label><strong>your name:</strong><input id="name" type="text" name="name"> </label> <label><strong>your phone number:</strong><input id="phone" type="text" name="phone"></label> <label><strong>your e-mail:</strong><input id="email" type="text" name="email"></label> <label><strong>your message:</strong><textarea id="message" name="message"></textarea></label> <div class=&q

Flatten array of structs into several arrays in C++ -

source code understand situation: struct s { int i; float f }; const int cnt = 10; s *source = new s[cnt]; /*... fill source ...*/ int *dest_i = new int[cnt]; float *dest_f = new float[cnt]; (int x = 0; x < cnt; x++) { dest_i[x] = source[x].i; dest_f[x] = source[x].f; } so, here question: there faster method iterate through array loop? you unroll loop. that's can think of off top of head. it's pointless optimization write yourself, compiler can try if enable (in gcc, compile --funroll-loops )

Python word game issue -

so looking @ python tutorial on how create hangman recently. tried out had issues source code, i've been trying write similar code works well. i've run issue. basically, whenever guess last letter in 'secret' string, doesn't replace blank letter. want know why happening , how can fix it. here's code import random words = '''aardvark baboon calf camel deer dingo alligator ant jackal iguana falcon flamingo macaw manatee marmoset flee emu narwhal leopord ocelot lemming opossum dog dolphin dove beaver bison wallaby rabbit salamander seagull sheep skunk tiget tortoise unicorn dragon zombie'''.split() def randomword(wordlist): windex = random.randint(0, len(wordlist) - 1) return wordlist[windex] def displaygame(wrong, right, secret): print('wrong guesses:', end=' ') letter in wrong: print(letter, end=' ') print() blanks = '_' * len(secret) in range(0, len(secret)

java - passing data from one frame and setting it in textfield in another frame retrieving corresponding data from database -

i working on netbeans project (java swings) using mysql @ ground. got struck in particular scenario. i working jtable in 1 frame, frame1 row has selected on 'onclick' action event. the corresponding data table in background in mysql retrieved , data passed on frame, frame2 data set jtextfield . the table in frame1 contains few selected tuples of whole table maintained in database. the following code snippets used :: database table name db_table 1- select data table in frame1 public static string table; public static int row; private void jtable1mouseclicked(java.awt.event.mouseevent evt) { // todo add handling code here: jbutton3.setenabled(true); row = jtable1.getselectedrow(); table = (jtable1.getmodel().getvalueat(row,0).tostring()); } 2- action event on button redirect frame2 private void jbutton4actionperformed(java.awt.event.actionevent evt) {

javascript - Access overridden global variable inside a function -

i want access global variable 'x' when over-ridden same named variable inside function. function outer() { var x = 10; function overridex() { var x = "updated"; console.log(x); }; overridex(); } outer(); jsbin : fiddle test i don't want rename inner 'x' variable else. possible ? edit: edited question after abeisgreat answer. you can use window.x reference globally scoped variable. var x = 10; function overridex() { var x = "updated"; console.log(x); console.log(window.x); }; overridex(); this code logs "updated" 10.

jquery - How to check if fan likes my facebook page without triggering "likes" permission -

in facebook application built using vs2012 template not want have facebook permissions request. the app meant act fan gate facebook page. adapted code below app specific settings. code how check if user likes facebook page or url using facebook's api . app pops facebook permissions check allow access likes. is there technique check likes work in environment using? <html> <head> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <style type="text/css"> div#container_notlike, div#container_like { display: none; } </style> </head> <body> <div id="fb-root"></div> <script> window.fbasyncinit = function () { fb.init({ appid: 'your_app_id', // app id channelurl: 'http(s)://your_app_domain/channel.html'

javascript - Hide and show using JQuery -

i have many divs ids in 1 class.how show 1 , hide rest? here goes html 3 such divs <div class="build"> <div id="slide1"> <!--slide1 elements --> </div> <div id="slide2"> <!--slide2 elements--> </div> <div id="slide3"> <!--slide2 elements--> </div> </div> this ive tried js: if (exp_id == "a_exp1") { new_exp_id = exp_id; $("#right").html("<div><img id='myimage1' onclick='changeimage1()' src='images/build_i.png'/>") } function changeimage1() { (var n = 1; n <= 3; n++) { if (new_exp_id == "a_exp" + n) { $('.build').hide(); $('.build').find('#slide' + n).show(); } } } so, if a_exp1 , should correspond slide1, if a_exp2 , should correspond slide2 , on. i need show 1 div , hid

php - How to access a different controller from inside a controller Symfony2 -

i need access method different controller inside controller. how can it? can use this->get method? can include controller inside current controller , make object of , access method via object? "ok" way? i want call form method --- newaction of other controller. you can define controller service, in controller. in services.yml define needed controller service: services: your_service_name: class: yourcompany\yourbundle\controller\yourcontroller then in controller you'll able service via container: $yourcontroller = $this->get('your_service_name'); there useful information controllers services in documentation

java - Do we ever need to use Iterators on ArrayList? -

yesterday, when answering question getting concurrentmodificationexception error while using iterator , remove added notice that it's not idea use iterators when have arraylists. you not need understand question answer on one. there, got 2 comments i'm wrong. my arguments: the code less readable iterators. there possibility raise concurrentmodificationexception hard debug. can please explain? question: ever need use iterators on arraylist? upd this explicitly using iterator. a big use case of iterators arraylists when want remove elements while iterating. have 3 safe solutions : use iterator , remove method copy elements want keep in list jungle indexes assuming don't add while iterating, using iterator mean avoid concurrentmodificationexception . the readability argument subjective. don't find cleanly declared iterator less readable. , doesn't matter iterator safe way iterate , remove @ same time.

web services - How to integrate RESTful webservice in Android -

i newbie web services. want integrate web services(rest) in android. can suggest tutorials. what back-end? if java can use rest java (jax-rs) using jersey . on android side can use this simple restclient work rest service. for json <--> object mapping on both sides (android, java back-end) can use gson .

A metaphorical or really clear explanation about the usage of static variables or methods in java -

i've asked teacher thousand times , explained me many times, still don't when use static in variables/methods could give metaphorical explanation this, maybe showing examples static needed , not? do want access method without instance of class? if answered yes, want static method. private static variables can used share data across instances of class, i.e. if have: public class car { private static int wheelsnum; private string company; private string color; ... ... } then if change wheelnum 2, cars have 2 wheels. for example, consider piece of code: car car1 = new car(); car car2 = new car(); car1.setcolor("yellow"); car2.setcolor("blue"); car1.setwheelsnum(4); car2.setwheelsnum(2); then both cars have 2 wheels, although "didn't" mean change wheels number of first car. but, can tell, cars have different colors. public static variables used without making instance of class, wheras pri

css - DIV Background Image Doesn't Show in Firefox or Chrome (But only online). Online it works for IE? -

i'm having issues having image isn't showing properly. i've scouring internet past hour , been trying various different ideas, i'm stumped. on webpage, have image of text "vitant" showing fine in browsers when working offline. after uploaded site webhost, whatever reason, 1 background image stopped showing in firefox , chrome. however, shows fine in ie. shows fine in mobile versions of firefox , chrome. i using image background-image div (#vitant-text). webpage: http://www.joshhemmyonline.com/vitant_test link image: http://www.joshhemmyonline.com/vitant_test/_images/vitant_ad_banner_text.png *note: image in question should displaying right above text "the 2 step treatment better sleep & more energy" the relevant id #vitant-text source html: <!doctype html> <html> <head> <meta charset="utf-8"> <title>vitant: 2-step sleep/energy solution. inquire sample today!</title> <link href=&

facebook android sdk 3.0 login another activity crash -

i use android sdk 3.0 login code session in mainactivity can run .. but move new activtiy fb.java.can't run .click button crash.. plase how fix: mainactivity.java code public void fbautotest(view v){ fb myffb=new fb(); myffb.facebooklogin();} fb.java code public class fb extends activity{ private static final list<string> permissions = arrays.aslist("publish_actions","user_photos"); private pendingaction pendingaction = pendingaction.none; private enum pendingaction { none, post_photo, post_status_update } private statuscallback callback; //private activity mcontext; private activity mcontext; public void facebooklogin() { session.openactivesession(mcontext, true, new session.statuscallback() { // callback when session changes state @override public void call(session session, sessionstate state, exception exception) { if (session.isopened()) { request.executemerequestasyn

social networking - Google plus share link response issue -

i using below code share link on google plus. <html> <head> <script type="text/javascript"> window.onplusstart = function(x) { console.log('ops', x) } window.onplusdone = function(x) { console.log('opd', x) } </script> </head> <body> <div class="g-plus" data-action="share" data-href="http://test.com" data-onstartinteraction="onplusstart" data-onendinteraction="onplusdone"> </div> <script type="text/javascript"> (function() { var po = document.createelement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getelementsbytagname('script')[0]; s.parentnode.insertbefore(po, s); })(); </script> </body> <

Django staff users closed groups -

i'm developing django project small organizations. organization can register site (marked staff user site admin), create new users , new services other registered members. members can register, login , see organization put in profiles. now problem if organization register site, after marked staff user see , can manage members created other organization registered site. i let organization registered manage own members , hide other organizations registered too. how can done? i found this: http://www.b-list.org/weblog/2008/dec/24/admin/ @ end explains how display objects in admin site objects owners.

asp.net mvc - Being able to save (multiple) changes without affecting database - structural issue -

i'm developing business web application maintain database several tables. 1 of requirements 1 should able "save work" without affecting database , later pick , continue working. multiple "savings" must supported. this administration tool developed in asp.net mvc4 or microsoft's lightswitch, haven't decided yet. the problem have don't know how solve structurally, there known techniques problem? need point me in right direction, i'm stuck here.. edit: i'll try explain further scenario i make change 1 row , save, change should visible me (not affect main database). i realize change in 1. bad , choose start on changing data in same row, make change row. save these changes (but me) now have 2 savings (from step 1 , 2), change mind , changes made in 1. correct , open "savefile" , commit changes main databse. i'll delete "savefile" step 2. hope makes situation more clear. thanks the easiest way c

Best way to compare this simple ruby/rails Date -

i have object contains date timestamp such time = sat, 06 apr 2013 08:00:00 pdt -07:00 i trying compare object time, see if date matches day(month, day, year) tomorrow (not conerned time). check happen everyday. i trying things such as: time == date.tomorrow do: time.to_date == date.tomorrow

readfile - Python islice is reading the same lines -

i have big log-file (> 1gb) should analysed, wrote python-program. have used islice read file in chunks (10,000 lines) server won't run out of memory. i've looked islice solutions on stackoverflow , implemented one, program doesn't work expected because isclice reading same lines every time (but stops correctly after reading whole file...). can't use with open because comes python 2.5, have python 2.4... my code looks like: n = 100000; # n lines inf = open(fn, "r") while true: next_n_lines = list(islice(inf, n)) if not next_n_lines: break out_fn = produce_clean_logfile(next_n_lines) a, t = main(out_fn) send_log(a,t) do know what's wrong? thanks in advance. regards, john. from itertools import islice n = 2; # n lines fn = "myfile" inf = open(fn, "r") while true: next_n_lines = list(islice(inf, n)) if not next_n_lines: brea

asp.net - Asp redirects to Login even though Request.IsAuthenticated = true (using windows authentication) -

i have webapplication, have running in wan in lan. same code runs in separate web apps. in wan have configured use forms authentication. works seamlessly. lan app configured use windows authentication. what happens now, website says "hello domain\testuser" shows, that request.isauthenticated must true user.identity.name set correct user however : i'm finding myself on "account/login" page. clarification: login page using general layout-template performs 'request.isauthenticated' mentioned above. my question : why being redirected login page, when authentication evidently succeeded? , do make work? :) this, guess crucial part of configuration: <system.web> <authentication mode="windows"> <forms loginurl="~/account/login" timeout="2880" /> </authentication> <membership defaultprovider="simplemembershipprovider"> <providers> <c

android - Optimize an image for text recognition using tesseract -

i have user tesseract ocr android project recognize text image taken camera. results not accurate. want optimize image using opencv. want achieve following captured image decoded in bitmap.config.argb_8888 format: detect objects in resized image. once object identified, compute border w.r.t original image. (this removing camera angle effect) extract object original image, applying perspective transform. apply white balance remove lightening effects. in example provided tess_two api, using leptonica image manipulations drawing bounding boxes around words..but in case want use opencv ...your guidance highly appreciated... that's lot asking for, , depending on object may impossible. should check out tutorials on 2d feature detection , object detection ( http://docs.opencv.org/doc/tutorials/features2d/table_of_content_features2d/table_of_content_features2d.html , http://docs.opencv.org/doc/tutorials/objdetect/table_of_content_objdetect/table_of_content_objdetec

vb.net - Is XSD data validation reliable in .Net 4.0? -

i have written client public soap web service, using wsdl , several xsd files supplied service provider. wanted find easy way validate user data against xsd files, used standard example msdn, using xmlschemaset xsd files, xmlreader , validation routine catch error messages. (the code available @ http://msdn.microsoft.com/en-us/library/as3tta56.aspx ) works data elements, others not throw error when invalid. if include "validationflags = validationflags or xmlschemavalidationflags.reportvalidationwarnings", lot of warnings, e.g. "could not find schema information element 'myrequest'", "could not find schema information attribute 'thedate'", etc. can open xsd files in vs2010 ide, , xml schema explorer shows these elements , attributes. so main question familiar validating xml data in vs2010 in way is, there limits complexity of xsd files xmlreader validation can handle? prefixes target namespaces confuse xmlreader? there thousands of c

javascript - Value from a text field is not returning anything -

i'm trying build little app user enters store name become alt text image , url of store become h ref, generate copy , paste code use on website. the problem have when trying use vanilla javascript read value of store name nothing showing. please see fiddle: http://jsfiddle.net/willwebdesigner/gvccm/ $(document).ready(function() { // creates method , prototype array splicing words array.prototype.removebyvalue = function(val) { for(var i=0; i<this.length; i++) { if(this[i] == val) { this.splice(i, 1); break; } } } var mystore = { storename: document.getelementbyid("storename").value, url: document.getelementbyid("yoururl"), instructions: "<p>please copy code above , paste webpage display shop4support logo , link store.</p>", blacklogo: function() { return "&lt;img src=&quot;https:/

php - mysql parent id loop -

i heve 2 mysql tables participants id | name | lastname | ----------------------------- 1 | jon | bush | ----------------------------- 2 | stephen | eagle | and posts id | parentid | title | text -------------------------------------- 1 | 1 | title1 | text1 --------------------------------------- 2 | 1 | title3 | text2 --------------------------------------- 3 | 1 | title4 | text4 -------------------------------------- 4 | 2 | title | ttext and need out table -------------------------- id (1) | jon | title1, title3, title4 ------------------------------ id (2) | stephen | title i try with $result = mysql_query("select name, title, participants.id, parent aposts, participants paricipants.id = parent.parent group last_name order ......."); but in cas cant loop on parent out posts of parent... maybe can me.... i'm not sure if want. seeing example, want