Jump to content

HarrySeah

Members
  • Content count

    17
  • Joined

  • Last visited

Community Reputation

0 Neutral

About HarrySeah

  • Rank
    Newbie
  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. relational algebra

    To: justsomeguy thank you so much for help, yes that page i was viewed before ...but that answer quite ... some confusing .. by the way , thanks
  3. relational algebra

    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
  4. how to use other PHP file and remind the same design page

    To: dsonesuk Thanks again for you reply and helping Thanks to sharing me different idea and concept of the code I will try next time, and sharing which the best way to solve that thank you so much once again
  5. how to use other PHP file and remind the same design page

    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
  6. how to use other PHP file and remind the same design page

    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
  7. 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
  8. How to store textarea value in database by using PHP ?

    To: Ingolme Thanks you reply and answer the question what i was confused Thanks you once again , i will try it out
  9. To: Ingolme Thanks you reply and answer the question what i was confused Thanks you once again , i will try it out
  10. To: Ingolme Thanks for you reply and helping, but if not mistaken when our using PHP with MySQL right will try to remove the html or javascript syntax/keyword to prevent people hacking our system right and what is meant of BBcode ? isnt binary code @@ thanks you so much
  11. How to store textarea value in database by using PHP ?

    To: thescientist Thanks for you reply and helping, but if not mistaken when our using PHP with MySQL right will try to remove the html or javascript syntax/keyword to prevent people hacking our system right
  12. 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 with styling effect in mysql database ? Thanks all of you
  13. 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
  14. textarea editor

    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
  15. 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
×