In php, I want to renew the borrowed book for 5 days, however, it only on today's date Updates, how do I update my borrowing book? Select the book from the book $ sql_renewal = "book. Student's where B.B.D. = BD. BOROBDI and BSSSSSISIISIIIID and BD.BOOK_IBID = BK.BIDIDS S S_email = ''. $ _ Session ['sss_USERN']. '' $) QueryResult = mysqli_query ($ connection, $ sql_renewal); $ row = mysqli_fetch_array ($ query reset); $ return_date = $ row ['bk.returnDate' ]; Counterpart $ return_date; $ return_date1 = s tr_replace ('-', '/', $ return_date); $ updated_return_date = date ('MD-Y', strotom ($ return_data. "+5 days")); echo "& lt; Td> $ Update_return_date & lt; / td> "; You create SQL queries this way or similar $ Sql = Sprintf ('Update bu KSET return date = return date + interval 5 days where booked =% d', $ line ['booked']) After that, simply execute it.
Get link
Facebook
X
Pinterest
Email
Other Apps
Comments
Post a Comment
Popular posts from this blog
python - Writing Greek in matplotlib labels, titles -
-
June 15, 2015
I'm trying to write some text for labels, shape titles etc. with my plots, but no benefit till now Has not happened . I do not want to print specific characters (I know how to use special characters), I want to write the entire text in Greek (maybe Unicode and text ' ?). , suggesting that I would like to mention that for some reason I can not get matplotlib to cooperate with Tex (using IPython notebook from Anaconda in Ubuntu 14.10) so that there really is an option Will not be the first. I tried loading the Arial font and it loads successfully but again I get square blocks instead of characters. I import matplotlib.font_manager FM PROP = FM Font Properties (fname = '/ usr / share / fonts / truetype / msttcorefonts / Arial.ttf') And then to display the string I u'Î? ? I ?? Î¿Ï ?? ÎμÎ »second ?? μΠ± i ?? I ± i ?? I ?? Used ο किया? ? Î¿Î¼Î¿Î¯Ï ?? I ?? I · I ?? ' . Ariel is considered to be fully presented to Greek and I have used it many times ...
Read more
c# - LINQ to Entities does not recognize the method 'Int32
IndexOf(System.String, System.StringComparison)' method -
-
September 15, 2014
I have performed a linq query using Entityframework as below GroupMaster getGroup = Null; GetGroup = DataContext.Groups.FirstOrDefault (item = & gt; keyword.IndexOf (item.Keywords, StringComparison.OrdinalIgnoreCase)> = 0 & amp; amp; item.ISNAmd) I found an exception like the method when executing it LINQ units do not recognize the 'Inter 32 index of (system string, system. String compromise)' method, and This method can not be translated to Store expression. Includes () method is sensitive by default, then I need to convert to minimize. Is there any method in which a string match match is examined and whether there is any method to solve the index question of the method? You actually have four options Databases globally Change the colon of it can be done in many ways, a simple Google search should reveal to them. Change the mix of individual tables or columns. Use a stored procedure and specify the call statement on your query Perform...
Read more
Pygame memory leak with transform.flip -
-
May 15, 2010
Today I came across an interesting issue which, by writing a small side scroller, instead of a sprite sheet, I was planning to use because I lacked a good "packer" for making phantom sheets (and honestly with patience and passion as it is only a test project). Anyway, I showed the animation running on the right of 8 PNG (with transparency). I considered it a good idea to prepare the flipped images to run on the left in the consultant, and the frame is not framed when the game is running (Flip actually consumes a lot of CPU like I Was measured). > To get access to the loop, I get the memory leak self.move_l = [# 8 PNG images with transparency to the right] For the self in IMG. Move_l: self.move_r.append (pygame.transform.flip (img, true, false) error traceback: traceback (most recent Call final): The file "D: \ Python 34 \ _Projects \ efg \ efg.py", in line 196, in the & lt; module & gt; main = master program ((1024, 680)) "D: \ Python ...
Read more
Powered by Blogger
Theme images by Michael Elkan
Szoka
Visit profile
Archive
September 2015673
August 2015642
July 2015638
June 2015645
May 2015677
April 2015654
March 2015625
February 2015643
January 2015611
September 2014679
August 2014584
July 2014593
June 2014626
May 2014616
April 2014658
March 2014597
February 2014650
January 2014649
September 2013677
August 2013624
July 2013646
June 2013659
May 2013660
April 2013653
March 2013632
February 2013706
January 2013605
September 2012628
August 2012648
July 2012657
June 2012618
May 2012636
April 2012655
March 2012674
February 2012613
January 2012608
September 2011580
August 2011569
July 2011646
June 2011642
May 2011638
April 2011655
March 2011661
February 2011653
January 2011640
September 2010666
August 2010665
July 2010667
June 2010649
May 2010605
April 2010659
March 2010633
February 2010594
January 2010616
Show more
Show less
Report Abuse