0% found this document useful (0 votes)
9 views

Connected

project

Uploaded by

karansahu1594
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Connected

project

Uploaded by

karansahu1594
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Connected

----------------------------------------

Library Management System

----------------------------------------

LOGIN

Enter User Name : Anjali

Enter Password : abc123

--------------------------------------------------

Access Granted !!!

--------------------------------------------------

--------------------------------------------------

CHOOSE AN OPERATION

--------------------------------------------------

Press 1 - Add a New Member

Press 2 - Delete an Existing Member

Press 3 - Show all Members

Press 4 - Add a New Book

Press 5 - Delete an Existing Book

Press 6 - Show all Books

Press 7 - Issue a Book

Press 8 - Return a Book

Press 9 - Show Issued Books

Press 10 - Show Returned Books

Press 11 - Quit

Enter Your Choice : 6

--------------------------------------------------

BOOK DETAILS

--------------------------------------------------

Id Title Author Publisher Cost

--------------------------------------------------
CHOOSE AN OPERATION

--------------------------------------------------

Press 1 - Add a New Member

Press 2 - Delete an Existing Member

Press 3 - Show all Members

Press 4 - Add a New Book

Press 5 - Delete an Existing Book

Press 6 - Show all Books

Press 7 - Issue a Book

Press 8 - Return a Book

Press 9 - Show Issued Books

Press 10 - Show Returned Books

Press 11 - Quit

Enter Your Choice : 7

Enter the book id to be issued :

= RESTART: C:/Users/karan/AppData/Local/Programs/Python/Python312/hyygy.py

Connected

----------------------------------------

Library Management System

----------------------------------------

LOGIN

Enter User Name : anjali

Enter Password : abc123

--------------------------------------------------

Access Granted !!!

--------------------------------------------------

--------------------------------------------------

CHOOSE AN OPERATION

--------------------------------------------------

Press 1 - Add a New Member

Press 2 - Delete an Existing Member


Press 3 - Show all Members

Press 4 - Add a New Book

Press 5 - Delete an Existing Book

Press 6 - Show all Books

Press 7 - Issue a Book

Press 8 - Return a Book

Press 9 - Show Issued Books

Press 10 - Show Returned Books

Press 11 - Quit

Enter Your Choice : 1

--------------------------------------------------

ADDING A NEW MEMBER

--------------------------------------------------

Enter Member Id : 22

Enter Member Name : karan

Enter Phone Number : 958455

Enter Email :kjsjd

Member Added Successfully

--------------------------------------------------

CHOOSE AN OPERATION

--------------------------------------------------

Press 1 - Add a New Member

Press 2 - Delete an Existing Member

Press 3 - Show all Members

Press 4 - Add a New Book

Press 5 - Delete an Existing Book

Press 6 - Show all Books

Press 7 - Issue a Book

Press 8 - Return a Book

Press 9 - Show Issued Books

Press 10 - Show Returned Books


Press 11 - Quit

Enter Your Choice : 4

--------------------------------------------------

ADDING A NEW BOOK

--------------------------------------------------

Enter Book Id : 2255

Enter Book Title : coordinate geometry

Enter Author name : a das

Enter Publisher :hdd

Enter Cost of the book :22

Book Added Successfully

--------------------------------------------------

CHOOSE AN OPERATION

--------------------------------------------------

Press 1 - Add a New Member

Press 2 - Delete an Existing Member

Press 3 - Show all Members

Press 4 - Add a New Book

Press 5 - Delete an Existing Book

Press 6 - Show all Books

Press 7 - Issue a Book

Press 8 - Return a Book

Press 9 - Show Issued Books

Press 10 - Show Returned Books

Press 11 - Quit

Enter Your Choice : 7

Enter the book id to be issued : 2255

Enter the member id : 22

Enter the date of issue : 02/10/2006

Traceback (most recent call last):


File "C:\Users\karan\AppData\Local\Programs\Python\Python312\Lib\site-packages\mysql\
connector\connection_cext.py", line 705, in cmd_query

self._cmysql.query(

_mysql_connector.MySQLInterfaceError: Incorrect date value: '02/10/2006' for column 'dateofissue'


at row 1

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "C:/Users/karan/AppData/Local/Programs/Python/Python312/hyygy.py", line 226, in <module>

issueBook()

File "C:/Users/karan/AppData/Local/Programs/Python/Python312/hyygy.py", line 159, in issueBook

cursor1.execute(q,data)

File "C:\Users\karan\AppData\Local\Programs\Python\Python312\Lib\site-packages\mysql\
connector\cursor_cext.py", line 357, in execute

result = self._connection.cmd_query(

File "C:\Users\karan\AppData\Local\Programs\Python\Python312\Lib\site-packages\mysql\
connector\opentelemetry\context_propagation.py", line 97, in wrapper

return method(cnx, *args, **kwargs)

File "C:\Users\karan\AppData\Local\Programs\Python\Python312\Lib\site-packages\mysql\
connector\connection_cext.py", line 713, in cmd_query

raise get_mysql_exception(

mysql.connector.errors.DataError: 1292 (22007): Incorrect date value: '02/10/2006' for column


'dateofissue' at row 1

= RESTART: C:/Users/karan/AppData/Local/Programs/Python/Python312/hyygy.py

Connected

----------------------------------------

Library Management System

----------------------------------------

LOGIN

Enter User Name : anjali

Enter Password : abc123


--------------------------------------------------

Access Granted !!!

--------------------------------------------------

--------------------------------------------------

CHOOSE AN OPERATION

--------------------------------------------------

Press 1 - Add a New Member

Press 2 - Delete an Existing Member

Press 3 - Show all Members

Press 4 - Add a New Book

Press 5 - Delete an Existing Book

Press 6 - Show all Books

Press 7 - Issue a Book

Press 8 - Return a Book

Press 9 - Show Issued Books

Press 10 - Show Returned Books

Press 11 - Quit

Enter Your Choice : 6

--------------------------------------------------

BOOK DETAILS

--------------------------------------------------

Id Title Author Publisher Cost

2255 coordinate geometry a das hdd 22

--------------------------------------------------

CHOOSE AN OPERATION

--------------------------------------------------

Press 1 - Add a New Member

Press 2 - Delete an Existing Member

Press 3 - Show all Members

Press 4 - Add a New Book

Press 5 - Delete an Existing Book


Press 6 - Show all Books

Press 7 - Issue a Book

Press 8 - Return a Book

Press 9 - Show Issued Books

Press 10 - Show Returned Books

Press 11 - Quit

Enter Your Choice : 7

Enter the book id to be issued : 22

Enter the member id : 2255

Enter the date of issue : 2006/10/10

----------------------------------------

Book Issued Successfully

----------------------------------------

--------------------------------------------------

CHOOSE AN OPERATION

--------------------------------------------------

Press 1 - Add a New Member

Press 2 - Delete an Existing Member

Press 3 - Show all Members

Press 4 - Add a New Book

Press 5 - Delete an Existing Book

Press 6 - Show all Books

Press 7 - Issue a Book

Press 8 - Return a Book

Press 9 - Show Issued Books

Press 10 - Show Returned Books

Press 11 - Quit

Enter Your Choice : 9

LIST OF ISSUED BOOKS

----------------------------------------

Member Bookid Issue Date


2255 22 2006-10-10

----------------------------------------

--------------------------------------------------

CHOOSE AN OPERATION

--------------------------------------------------

Press 1 - Add a New Member

Press 2 - Delete an Existing Member

Press 3 - Show all Members

Press 4 - Add a New Book

Press 5 - Delete an Existing Book

Press 6 - Show all Books

Press 7 - Issue a Book

Press 8 - Return a Book

Press 9 - Show Issued Books

Press 10 - Show Returned Books

Press 11 - Quit

Enter Your Choice : 8

Enter the book id to be returned : 22

Enter the Member id : 2255

Enter the date of return : 2007/11/10

Book Returned !!!

--------------------------------------------------

CHOOSE AN OPERATION

--------------------------------------------------

Press 1 - Add a New Member

Press 2 - Delete an Existing Member

Press 3 - Show all Members

Press 4 - Add a New Book

Press 5 - Delete an Existing Book

Press 6 - Show all Books

Press 7 - Issue a Book


Press 8 - Return a Book

Press 9 - Show Issued Books

Press 10 - Show Returned Books

Press 11 - Quit

Enter Your Choice : 10

LIST OF RETURNED BOOKS

--------------------------------------------------

Member Bbokid Issue Date Return Date

2255 22 2006-10-10 2007-11-10

--------------------------------------------------

--------------------------------------------------

CHOOSE AN OPERATION

--------------------------------------------------

Press 1 - Add a New Member

Press 2 - Delete an Existing Member

Press 3 - Show all Members

Press 4 - Add a New Book

Press 5 - Delete an Existing Book

Press 6 - Show all Books

Press 7 - Issue a Book

Press 8 - Return a Book

Press 9 - Show Issued Books

Press 10 - Show Returned Books

Press 11 - Quit

Enter Your Choice :

You might also like