Jump to content

HarrySeah

Members
  • Posts

    17
  • Joined

  • Last visited

Posts posted by HarrySeah

  1. hi , im try to do the java web to connect with managed bean and connect to the javaDB (entity) class

     

    i trying to insert the record in the database but ....fail....

     

    public void createUser(){

     

    Booking book = new Booking();
    book.setLessonno(this.l_id);
    book.setCustomername(strName);
    book.setCustomerphone(strPhone);
    try {
    utx.begin();
    em.persist(book);
    utx.commit();
    } catch (Exception e) {
    throw new RuntimeException(e);
    }

     

    }

     

    this come out a error ....

    java.lang.UnsupportedOperationException: Not supported yet.

     

     

    public void updateDB(){

    EntityManagerFactory emfactory = Persistence.createEntityManagerFactory("testTrainingPU");
    EntityManager entitymanager = emfactory.createEntityManager();
    entitymanager.getTransaction().begin();
    Lesson lesson = entitymanager.find(Lesson.class, this.l_id);
    lesson.setQuantity(lesson.getQuantity()-1);
    entitymanager.getTransaction().commit();
    Booking book = new Booking();
    book.setCustomername(strName);
    book.setCustomerphone(strPhone);
    book.setLessonno(this.l_id);
    entitymanager.persist(book);
    entitymanager.getTransaction().commit();
    entitymanager.close();
    emfactory.close();
    }
    this way also same
    so how i need to solve it ...thanks
  2. hi,

     

    sorry, i have a question to do...but i know how to write in sql query ....however the answer need to write on relational algebra

     

    in query is like :

     

    SELECT * FROM operation
    where r='broken'
    group by pc
    having count(pc) >1 ;
    π id,pc,result ( σ r = 'broken' (operation))
    like group by and having clasue...i no idea ...
    i searched on internet still @@ ....
    isnt the answer like that, i using split/step by step method to do
    rel 1 = σ r = 'broken' (operation)
    rel 2 = σ count(pc)>1 γ pc,count(pc) (rel 1))
    rel 3 = π id,pc,result (rel 2 )
    thanks
  3. To: dsonesuk

     

    Thank you so much

    Thanks for given me the example and explanation

    Thanks for helping

    i will try next time

     

    but what i seen people php page before was whole php code and not embed any html code and especially not write it on echo to print out

    just like declare a variable and assign the value too ,if not mistaken

     

    so how to run it ... if run it ... how to connect and the page may re-design again @@

    ahaha

    thanks again :good:

  4. To: dsonesuk

     

    Thank you so much for reply and the answer too

    That mean, PHP page in the end also need to insert the HTML content like nav bar ,footer all that (copy from the previous page design code)

    Okok,i get it , but what i saw other people of PHP code , they dont have any html content , just start as <?php ...?>

    so how they work and connected all the code,cause if dont have any html content for design when running the page , the result will show it but the design will gone all ....

    no way to maintain the design or page and run other php page ...

    isnt ajax will work like that ?

    im sorry for my english not well...hope you understand what i mean ...

     

    Thanks for helping , once again :good:

  5. Hi

    i am new for the PHP, i had the experienced before to do a login system page but what i want it is HTML and PHP file to separate

    i dont want PHP with HTML together to 1 file , cause professional people will more likely to use 2 file rather than 1 file

    easy to maintain and edit

     

    how to use the external PHP file coding without re-design whole page cause normally what i tested before was link or turn to other new page and result will come out but the design was totally gone

     

    so have any ways and suggestion to do that ...

     

    in the end, im sorry i not well in english and my knowledge of PHP still quite new , thanks you so much

     

  6. HI

    i trying to create a website of forum

    textarea editor are necessary too

    for recommendation which editor are best for textarea

    such as summernote, wysihtml5 ....

     

    and how is work to store the data/value/text in mysql database ?

    Thanks all of you

     

  7. HI,

    i have no good enough of the knowledge about the CSS design,

    i try to making the effect like Facebook, when mouse enter the people name will pop-up a small box , displaying like the people name,profile image,background image , and other 3 button in footer.

    i try to made it but still fail .... i dont have idea how to make a picture in-between the background image and some simple description.

    is not mistaken been using the CSS change the profile image position to absolute, and i guess the z-index also need higher of number ....

    but those of the design ... i not design similar like the facebook....or else other webpage same as the effect but the profile image show in center instead on the left side ....

    have any one can make a example or sample to teaching me how to do that ...

    thanks all for you help and in the end ...sorry for my english are not very well, i hope you understand what i mean

    Thanks

  8. HI there,

    first i apology my english not too well, hope you may understand what i mean ,Thanks

     

    Im try to using the Bootstrap one of the function is popover similar like tooltips, but i facing the problem

     

    For example :

     

    <div id="all">

    <div id="a" class="circle_ball" data-user-id="2">●</div>
    <div id="b" class="circle_ball" data-user-id="1">●</div>
    </div>
    and my Jquery code is :
    $('#all').on('mouseenter','div',function(){
    $(this).popover({
    title: 'Jun Hoo',
    content: $(this).attr('data-user-id'),
    trigger:'hover',
    html:true
    });
    });
    but the result on the code will showing delay and at least need to hover the target more than 2 time ...
    any ways to figure out? thanks you so much
    i found ways to solve the delay speed, but will keep popover the content when mouse pointer hover the first popover body
    the ways is add one more code ---
    $('#all').popover({title: 'Loading', content: '...',selector: 'div',trigger:'hover',html:true});
    Thanks for helping

     

    post-190618-0-10666900-1473175730_thumb.png

×
×
  • Create New...