1.Ajax使用(HTML XHTML XML CSS JavaScript Jquery DOM Dhtml)

從事重慶服務(wù)器托管,服務(wù)器租用,云主機(jī),網(wǎng)站空間,域名注冊,CDN,網(wǎng)絡(luò)代維等服務(wù)。
函數(shù)/數(shù)組/字符串
2.文件操作(生成html)
圖像處理
3.數(shù)據(jù)庫操作
4.類和對象
5.正則表達(dá)式
cookiesession
6.php函數(shù)庫
smarty模板引擎
7.ZendFramwork框架
要說難點(diǎn),我覺得是JavaScript、數(shù)據(jù)庫設(shè)計(jì)、面向?qū)ο笤O(shè)計(jì)。
PHP肯定值得,它能快速解決問題,適宜中小型企業(yè)應(yīng)用的開發(fā)。
一下是PHP對數(shù)據(jù)庫的一些基本操作,樓主你看看吧。看完就上機(jī)實(shí)踐加深一下印象。懂得這些后再學(xué)PHP就容易很多的了。
Conn.php //連接mysql數(shù)據(jù)庫
?php
$id=mysql_connect("127.0.0.1","root","") or die('連接失敗:'.mysql_error());
if(mysql_select_db("test_moonlitshiny ",$id))
echo"";
else
echo('數(shù)據(jù)庫連接失敗:'.mysql_error());
mysql_query("set names utf8");
?
Select.php //搜索數(shù)據(jù)庫
?php
$id=mysql_connect("127.0.0.1","root","") or die('連接失敗:'.mysql_error());
if(mysql_select_db("test_moonlitshiny ",$id))
echo"";
else
echo('數(shù)據(jù)庫連接失敗:'.mysql_error());
mysql_query("set names utf8");
$lineid=1;
$query=mysql_query("select * from test_moonlitshiny where ID='$lineid'");
if($query==true)
{
while($myrow=mysql_fetch_array($query))
{
$helloworld=$myrow[q1];
$hello=$myrow[q2];
Echo $helloworld;
Echo $hello;
}
}
insert.php //插入數(shù)據(jù)
?php
$id=mysql_connect("127.0.0.1","root","") or die('連接失敗:'.mysql_error());
if(mysql_select_db("test_moonlitshiny ",$id))
echo"";
else
echo('數(shù)據(jù)庫連接失敗:'.mysql_error());
mysql_query("set names utf8");
$n1=”hello”;
$n2=”world”;
$n3=”helloworld”;
$query="insert into test_moonlitshiny(q1,q2,q3)values('$n1','$n2','$n3')";
$result=mysql_query($query);
if($result==true)
{
Echo “HELLO ~WORLD!”;
}
Else
{
Echo “oh~~thx~~~”;
}
?
Update //更新
?php
$id=mysql_connect("127.0.0.1","root","") or die('連接失敗:'.mysql_error());
if(mysql_select_db("test_moonlitshiny ",$id))
echo"";
else
echo('數(shù)據(jù)庫連接失敗:'.mysql_error());
mysql_query("set names utf8");
$id=1;
$n1=”hello”;
$n2=”world”;
$n3=”helloworld”;
$query=mysql_query("update test_moonlitshiny set q1='$n1',q2='$n2',q3='$n3' where ID='$id'");
if($query==true)
{
Echo “HELLO ~WORLD!”;
}
Else
{
Echo “oh~~thx~~~”;
}
?
Delete.php //刪除
?php
$id=mysql_connect("127.0.0.1","root","") or die('連接失敗:'.mysql_error());
if(mysql_select_db("test_moonlitshiny",$id))
echo"";
else
echo('數(shù)據(jù)庫連接失敗:'.mysql_error());
mysql_query("set names utf8");
$id=1;
$query=mysql_query(“delete from test_moonlitshiny where ID=’$id’”);
If($query==true)
{
Echo “刪除成功”;
}
Else
{
Echo “刪除失敗”;
}
如果你不需要記錄每次訪問的詳細(xì)信息,可以不用記錄每一次訪問,那樣數(shù)據(jù)庫會非常龐大,而且統(tǒng)計(jì)也會很慢。
簡單的方法是就是只要一條記錄,用四個(gè)字段分別累計(jì)本日、本周、本月、本年、總共的訪問數(shù),每次訪問的時(shí)侯對這些字段加1,另外一個(gè)字段記錄最后一次更新的日期,如果最后更新日期不是本日,就在加1前把本日字段設(shè)置為0,本周、本月、本年字段類似處理即可。
,我現(xiàn)在也正在學(xué)習(xí)LAMP
下面是我整理的一點(diǎn)東西,等吧這些東西學(xué)好后,
估計(jì)你能夠成為一個(gè)高手了
★Ajax使用(HTML XHTML XML CSS JavaScript Jquery DOM Dhtml)
函數(shù)/數(shù)組/字符串
★文件操作(生成html)
圖像處理
★數(shù)據(jù)庫操作
★類和對象
★正則表達(dá)式
cookiesession
★php函數(shù)庫
smarty模板引擎
★ZendFramwork框架
我不明白你說的 值得不值得學(xué)php是什么意思,是從技術(shù) 還是 從錢途來說呢
要說難點(diǎn),我覺得是
JavaScript
數(shù)據(jù)庫設(shè)計(jì)
面向?qū)ο笤O(shè)計(jì)
名稱欄目:php統(tǒng)計(jì)數(shù)據(jù)庫難點(diǎn),php統(tǒng)計(jì)數(shù)據(jù)庫難點(diǎn)問題
文章路徑:http://chinadenli.net/article20/dsiodco.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站內(nèi)鏈、網(wǎng)站營銷、網(wǎng)站排名、移動網(wǎng)站建設(shè)、網(wǎng)站制作、搜索引擎優(yōu)化
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)