1.PHP和Mysql怎样连接,毕业设计选的PHP,可是一点都没有学
1.PHP 连接 mysql数据库 用connect 语句:$link=mysql_connect('localhost','用户名','密码');通常新安装的官方版mysql,用户名为root或 sa,密码为空;变量$link用来判断连接结果是否成功;2.选择数据库用:mysql_select_db($link); 变量$link 就是连接数据库的变量;3.查询库:$que="select * from 数据库名";$result=mysql_query($que);是两句才能查询,只有第一句就没有查询结果;4.查询结果:$rows=mysql_num_rows($result); 用echo输出 总共 $rows 条记录。
$arra=mysql_num_array($result); 用数组存放查询结果;。
2.我的毕业设计要用PHP开发个网站,谁能推荐个这方面的书
我推荐你买这本,,黄色的面的,爽死了,我本来是ASP的但因为数据量大和空间问题(UNIX的空间便宜很多)被迫要使用MYSQL和PHP,谁知道,我去了书店,一本PHP的书都没有,结果,我求他们查询下库存记录,发现,整个库就只剩下一本,我也没得挑了买了这,谁知道,真的爽死了,这书的最大特点是,他首先用一半讲了PHP,用一半讲了MYSQL,还有几个很有代表能力的实力,爽死,记得很多书都忽略了MYSQL,但这本PHP的书就恰到好处。爽。
PS:为什么不能忽略MYSQL呢,因为,脱离了MYSQL,PHP就会失去任何意义,很好的书,推荐.
3.求一篇php方面的英文论文,最好带中文翻译的
The DEVELOPMENT of PHP PHP began life as a way to manage a small personal website and was imagined and realized by just one man, Ramsus Lerdorf. Originally dubbed Personal Home Page Tools, PHP quickly evolved over the years from the basic scripting engine for a personal website into a highly competitive, extremely robust code engine that is deployed on millions of websites across the globe. PHP's fast, effective engine; its widespread, open-source developer base; and its platform flexibility have all come together to create one of the world's most effective online scripting languages.Throughout the years PHP has continued to improve on its foundations, providing increased functionality and scalability. Because of PHP's standard of listening to the community, fresh functionality is consistently added to every new release, allowing for more versatile code and upgrades to its already substantial library of built-in methods. For years, people have been using the PHP 4 series of code to create robust and powerful applications.There is always room for improvement, however. Although PHP 4 is considered to be an object-oriented programming (OOP) language, the class functionality found within it was not entirely as flexible as some developers wanted it to be. Older OOP languages that have had more time to grow have some strong functionality that PHP simply was not able to roll out in its PHP 4 releases.But that was then, and this is now. A very exciting occasion occurred for PHP developers everywhere on July 13, 2004: PHP released its long-anticipated version 5. Sporting a new object model powered by the already superb Zend II engine, PHP was ready to bring OOP to a new level with this release.On top of new, more powerful class structures and functionality, PHP 5 has introduced many exciting features, some of which the community has been clamoring about for ages.Say “hello (world)” to proper exception handling; new, simple-to-implement XML support;more verbose Simple Object Access Protocol (SOAP) functionality for web services; and much,much more.As the Internet continues to evolve, so too does the necessity for a language that addresses the functionality needs of the Internet's web viewers. Over time, some programming languages have come and gone, and others have continued to evolve. Several languages have moved into the lead in the race for supremacy. Although languages such as ColdFusion,ASP.NET, and CGI certainly have their advantages, PHP seems to be the developer's choice for a versatile, open-source solution.PHP最初只是为了管理一个小小的个人网站,而且它的构想和实现都是由一个人完成的,他就是Ramsus Lerdorf。
PHP最初称为俱主页工具(Personal Home Page Tools),但经过多年的发展,它很快从最早面向个人网站的基本脚本引擎演变成为一个有很强竞争力、相当健壮的编码引擎,目前全世界已经有数百万的网站部署了这个引擎。PHP有很多优点,它是一个快速、有效的引擎,拥有广泛的开源开发人员群体,而且具有平台灵活性,所有这些使得PHP成为世界上最有效的在线脚本语言之一。
多年来,PHP在其原有基本之上还在继续发展,不断提供更丰富的功能和更大的伸缩性。由于PHP的宗旨是以开发群体为本,所以每一个新版本中都会增加全新的功能,从而支持开发功能更强大的代码,并对原本就已经很丰富的内置方法库不断升级。
人们早在多年前就已经开始使用PHP4系列的代码创建健壮而强大的应用程序。不过,总是还有改进的余地。
尽管PHP4被认为是一种面向对象的程序设计语言,但它提供的类功能还不是太灵活,尚未达到一些开发人员的期望。相比之下,较早的OOP语言发展时间比较长,因此具备一些强大的功能,而这些功能对于PHP4版本来说还力不能及。
但那是很早以前的事情了,如今情况已经大不相同了,对于世界各地的PHP开发人员来说。2004年7月13日是一个让人激动的日子:PHP发布了人们翘首以待的PHP5.通过提出一个新的对象模型,再加上高级ZendII引擎更使之如虎添翼,PHP蓄势待发,要通过这个版本将OOP推向一个全新的高度。
在更新、更强大的类结构和功能基本上,PHP5引入了许多令人兴奋的特性,其中一些是开发人员渴望已久的。比如,适当的异常处理;全新的、易于实现的XML支持;面对WEB服务的更全面的对象访问协议(Simple Object Protocol,SOAP)功能等,当然还远不止这些。
随着互联网的不断发展,必须有一种语言来解决互联网的网站中观众需求的必要性。随着时间的推移,已经出现了一些编程语言,和其他语言继续发展。
几种语言都已经进入了在一场激烈的竞争导致。虽然例如ColdFusion,ASP.NET语言,和CGI,固然有其优势,但PHP的似乎是一个多功能,开放源码的解决方案开发人员的选。