Home » Source Code » Library management system Sql PHP

Library management system Sql PHP

shaomengjing
2014-01-04 01:10:25
The author
View(s):
Download(s): 11
Point (s): 3 
Category Category:
SQL ServerSQL Server PHPPHP

Description

<?php
define ("hostname" ,"127.0.0.1");


define ("username" ,"root");


define ("password" ,"123456");


function connect_database($hostname,$username,$password)
{
$link = mysql_pconnect($hostname,$username, $password)
or die("Could not connect: " . mysql_error());

$usedb= "use LibraryManagement";

$sql1 = "SET character_set_client=GBK;";


$sql2 = "SET character_set_connection=GBK; ";


$sql3 = "SET character_set_database=GBK; ";


$sql4 = "SET character_set_filesystem=GBK;";


$sql5 = "SET character_set_results=GBK; ";


$sql6 = "SET character_set_server=GBK; ";

$sql ="SET names GBK;";

mysql_query( $sql );


mysql_query($usedb);


mysql_query($sql1);


mysql_query($sql2);


mysql_query($sql3);


mysql_query($sql3);


mysql_query($sql4);


mysql_query($sql5);

mysql_query($sql6);

mysql_query($usedb);

return $link;
}
?>
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
01.97 kB
.project396.00 B2013-03-18 17:49
book.php3.06 kB2013-03-26 11:18
bookBack.php6.32 kB2013-03-18 17:49
bookBack_ok.php374.00 B2013-03-18 17:49
bookBorrow.php9.91 kB2013-03-18 17:49
bookcase.php2.45 kB2013-03-26 12:43
bookcase_add.php1.60 kB2013-03-18 17:49
bookcase_add_ok.php421.00 B2013-03-18 17:49
bookcase_del.php401.00 B2013-03-18 17:49
bookQuery.php4.54 kB2013-03-18 17:49
bookRenew.php6.61 kB2013-03-18 17:49
book_add.php4.29 kB2013-03-18 17:49
book_del.php221.00 B2013-03-18 17:49
book_look.php3.56 kB2013-03-18 17:49
book_Modify.php5.38 kB2013-03-18 17:49
book_modify_ok.php806.00 B2013-03-18 17:49
book_ok.php769.00 B2013-03-18 17:49
borrowQuery.php6.36 kB2013-03-18 17:49
borrow_oncemore.php568.00 B2013-03-18 17:49
bremind.php2.71 kB2013-03-18 17:49
check_login.php182.00 B2013-03-18 17:54
chklogin.php1.15 kB2013-03-19 09:37
01.97 kB
conn.php231.00 B2013-03-18 17:49
copyright.php651.00 B2013-03-23 10:10
01.97 kB
style.css2.95 kB2013-03-18 17:49
01.97 kB
01.97 kB
db.opt65.00 B2013-03-18 17:49
tb_bookcase.frm8.38 kB2013-03-18 17:49
tb_bookcase.MYD180.00 B2013-03-18 17:49
tb_bookcase.MYI2.00 kB2013-03-18 17:49
tb_bookinfo.frm8.79 kB2013-03-18 17:49
tb_bookinfo.MYD580.00 B2013-03-18 17:49
tb_bookinfo.MYI2.00 kB2013-03-18 17:49
tb_booktype.frm8.42 kB2013-03-18 17:49
tb_booktype.MYD104.00 B2013-03-18 17:49
tb_booktype.MYI2.00 kB2013-03-18 17:49
tb_borrow.frm8.57 kB2013-03-18 17:49
tb_borrow.MYD448.00 B2013-03-18 17:49
tb_borrow.MYI2.00 kB2013-03-18 17:49
tb_library.frm8.63 kB2013-03-18 17:49
tb_library.MYD148.00 B2013-03-18 17:49
tb_library.MYI2.00 kB2013-03-18 17:49
tb_manager.frm8.41 kB2013-03-18 17:49
tb_manager.MYD208.00 B2013-03-18 17:49
tb_manager.MYI2.00 kB2013-03-18 17:49
tb_parameter.frm8.42 kB2013-03-18 17:49
tb_parameter.MYD13.00 B2013-03-18 17:49
tb_parameter.MYI2.00 kB2013-03-18 17:49
tb_publishing.frm8.39 kB2013-03-18 17:49
tb_publishing.MYD76.00 B2013-03-18 17:49
tb_publishing.MYI1.00 kB2013-03-18 17:49
tb_purview.frm8.54 kB2013-03-18 17:49
tb_purview.MYD50.00 B2013-03-18 17:49
tb_purview.MYI2.00 kB2013-03-18 17:49
tb_reader.frm8.80 kB2013-03-18 17:49
tb_reader.MYD1.01 kB2013-03-18 17:49
tb_reader.MYI2.00 kB2013-03-18 17:49
tb_readertype.frm8.42 kB2013-03-18 17:49
tb_readertype.MYD168.00 B2013-03-18 17:49
tb_readertype.MYI2.00 kB2013-03-18 17:49
01.97 kB
banner.jpg29.91 kB2013-03-21 13:47
bg.jpg32.28 kB2013-03-21 13:42
bg_line.gif1.74 kB2013-03-18 17:49
bookborr.gif5.50 kB2013-03-18 17:49
bookborrow.gif3.82 kB2013-03-18 17:49
bookgh.gif5.50 kB2013-03-18 17:49
bookxj.gif5.54 kB2013-03-18 17:49
borrow_fg.gif959.00 B2013-03-18 17:49
dangan.gif3.93 kB2013-03-18 17:49
item_out.gif1.78 kB2013-03-18 17:49
item_over.gif1.97 kB2013-03-18 17:49
line.gif1.69 kB2013-03-18 17:49
line2.gif678.00 B2013-03-18 17:49
main_booksort.gif7.72 kB2013-03-18 17:49
main_booksort_1.gif179.00 B2013-03-18 17:49
main_booksort_2.gif674.00 B2013-03-18 17:49
menu_line.gif1.20 kB2013-03-18 17:49
menu_line1.gif1.18 kB2013-03-18 17:49
navigation_bg.gif133.00 B2013-03-18 17:49
reader_checkbg.jpg15.22 kB2013-03-18 17:49
search.gif1.34 kB2013-03-18 17:49
subBG.jpg31.22 kB2013-03-18 17:49
Thumbs.db53.00 kB2013-03-18 17:49
Top_flag.gif48.00 B2013-03-18 17:49
index.php3.33 kB2013-03-18 17:49
01.97 kB
function.js1.41 kB2013-03-18 17:49
menu.JS8.07 kB2013-03-18 17:49
library_modify.php3.76 kB2013-03-18 17:49
library_ok.php772.00 B2013-03-18 17:49
login.php2.98 kB2013-03-26 12:49
manager.php3.67 kB2013-03-18 17:49
manager_add.php2.29 kB2013-03-18 17:49
manager_del.php402.00 B2013-03-18 17:49
manager_modify.php3.06 kB2013-03-18 17:49
manager_modifyok.php893.00 B2013-03-18 17:49
manager_ok.php457.00 B2013-03-18 17:49
navigation.php2.45 kB2013-03-21 13:48
parameterModify_ok.php521.00 B2013-03-18 17:49
parameter_modify.php2.24 kB2013-03-18 17:49
pwd_Modify.php3.32 kB2013-03-18 17:49
pwd_ok.php275.00 B2013-03-18 17:49
reader.php3.06 kB2013-03-18 17:49
readerType.php2.30 kB2013-03-18 17:49
readerType_add.php1.96 kB2013-03-18 17:49
readerType_del.php641.00 B2013-03-18 17:49
readerType_ok.php457.00 B2013-03-18 17:49
reader_add.php4.43 kB2013-03-18 17:49
reader_del.php357.00 B2013-03-18 17:49
reader_info.php3.93 kB2013-03-18 17:49
reader_modify.php5.26 kB2013-03-18 17:49
reader_modifyok.php714.00 B2013-03-18 17:49
reader_ok.php954.00 B2013-03-18 17:49
safequit.php96.00 B2013-03-18 17:49
...
Sponsored links

Comments

(Add your comment, get 0.1 Point)
Minimum:15 words, Maximum:160 words
jiushijian
2015-05-29

这个黄安工大嘎哈kgad高讲啊就能够耐干那的看

klzoozoo
2015-06-27

这个不错,以后可以参考一下。感谢分享

花吹
2015-06-30

主要研究不适用web容器就行web应用的开发,同时提高通讯效率,目前只能实现json数据返回,普通页面解析还没有完成.

lily233
2016-06-30

这个不错,以后可以参考一下。感谢分享

  • 1
  • Page 1
  • Total 1

Library management system Sql PHP (215.36 kB)

Need 3 Point(s)
Your Point (s)

Your Point isn't enough.

Get 22 Point immediately by PayPal

Point will be added to your account automatically after the transaction.

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more Points

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D