PClib demo site

Using pclib database layer

(Look at the source code for short tutorial)

TEST-1 db->query()/db->fetch()

HTML table generated by db->export() function:
IDNAMESURNAMEBIRTHDATEPROFESSIONMONEY
3LinusTorvalds1969-12-28 00:00:00bigboss10000000
4JohnCarmack1970-08-20 00:00:00programmer1000000000
5BrianKernighan1942-10-20 00:00:00programmer1000
6DennisRitchie1941-04-03 00:00:00programmer1000

TEST-2 db->select*()

IDNAMESURNAMEBIRTHDATEPROFESSIONMONEY
1BillGates1955-11-28 00:00:00bigboss1000000000000
2SteveJobs1955-02-24 00:00:00bigboss100000000
3LinusTorvalds1969-12-28 00:00:00bigboss10000000
4JohnCarmack1970-08-20 00:00:00programmer1000000000
5BrianKernighan1942-10-20 00:00:00programmer1000
6DennisRitchie1941-04-03 00:00:00programmer1000
Number of rows in last query: 6

Show last executed query

select * from PEOPLE where ID='1' and MONEY>'1000'
select * from A where X='Xval' and Y='Yval'
select * from A where X='Xval' and Y='Yval'
select * from A where X='Xval' and Y='Yval'
select * from A where X='0' and Y='0'
select * from A where X='100' and Y='200'
select * from A where X='100' and Y='20'
select * from A where X in ('Xval','Yval')
select * from A where X in ('Xval','Yval')
select * from A where X in (0,0)
select * from A where X in (100,200)
select * from A where X='Xval'
select * from A where X='Xval'
select * from A where X='Xval' and Y='Yval'
INSERT INTO A (`X`,`Y`) VALUES ('Xval','Yval')
UPDATE A set `X`='Xval',`Y`='Yval' WHERE `X`='Xval' AND `Y`='Yval'
DELETE FROM A WHERE `X`='Xval' AND `Y`='Yval'
Elapsed time: 46.76 ms