亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? sqllecture.html

?? a collection of mega hacking tools
?? HTML
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
<BR>&lt;d4J1nX> SELECT contact_name FROM people p,contact c WHERE p.contact_id=c.contact_id

AND forename = 'John'

<BR>&lt;d4J1nX> Notice the c and p used for an alias and to remove ambiguity

<BR>*** WishGenie has quit IRC (Quit: i gotta reboot)

<BR>*** cupelmen has quit IRC (Quit: time to sleep...)

<BR>&lt;d4J1nX> That statement will pull back the contact names for all

the people called John

<BR>&lt;d4J1nX> On an off note..

<BR>&lt;d4J1nX> Say we had a drop down/combo box on our webpage

<BR>&lt;d4J1nX> And we wanted the full details of a particular person

<BR>*** makzee has quit IRC (Ping timeout: 180 seconds)

<BR>*** SpiderMan has joined #bsrf

<BR>*** ChanServ sets mode: +o SpiderMan

<BR>&lt;d4J1nX> In the drop box we would have the details "John Woods"

or "Chris Simms"

<BR>*** bluehaze has quit IRC (Ping timeout: 180 seconds)

<BR>&lt;d4J1nX> But the actual value would be the corresponding id in the

table

<BR>&lt;Mikkkeee> hail spider

<BR>&lt;SpiderMan> hey

<BR>&lt;AZTEK> Spidey

<BR>*** ken has quit IRC (Quit: )

<BR>&lt;AZTEK> all hail SpiderMan

<BR>&lt;SpiderMan> hey AZTEK

<BR>*** Capt_InsaneO has joined #bsrf

<BR>&lt;d4J1nX> Depending on the langauge being used we loop through each

record brought back from the query and have a formselectOption for each

<BR>*** Mezzano has quit IRC (Read error: 113 (No route to host))

<BR>&lt;d4J1nX> SELECT people_id, forename FROM people;

<BR>&lt;d4J1nX> The forename would be in the dropdown

<BR>*** torpor has left #bsrf

<BR>&lt;d4J1nX> But behind the scenes the actual value for that selection

is the id

<BR>*** Capt_InsaneO has left #bsrf

<BR>*** mezzano has joined #bsrf

<BR>*** acid519 has joined #bsrf

<BR>&lt;Devil_Panther> oh... hi spidy

<BR>&lt;d4J1nX> This is moving on to front end languages though and since

php seems to be very popular at the moment, Aztek will take it form here

<BR>&lt;d4J1nX> Hey Spider :-)

<BR>&lt;SpiderMan> hi

<BR>&lt;SpiderMan> sorry to disturb

<BR>&lt;d4J1nX> np

<BR>&lt;AZTEK> ok i guess its php time

<BR>&lt;AZTEK> and we are going to php and not perl

<BR>&lt;SpiderMan> so soon?

<BR>&lt;AZTEK> lets hit it spidy\

<BR>&lt;AZTEK> yea

<BR>&lt;AZTEK> ok

<BR>&lt;SpiderMan> nothing more of SQL?

<BR>&lt;SpiderMan> WHERE clause

<BR>&lt;Mikkkeee> php now

<BR>&lt;SpiderMan> db normilization

<BR>&lt;SpiderMan> ok

<BR>&lt;Devil_Panther> AZTEK,,, i guess you preffer php on perl... huh?!

<BR>&lt;AZTEK> we did the WHERE

<BR>&lt;AZTEK> yea

<BR>&lt;d4J1nX> Thats already been done Spider

<BR>&lt;SpiderMan> ok

<BR>&lt;d4J1nX> Plus normalisation - although not alot

<BR>&lt;SpiderMan> ok then I guess it is php time :)

<BR>&lt;AZTEK> mysql is the prefered datbase engine of choice by us phpers

<BR>&lt;SpiderMan> because it's small, fast, and cheap

<BR>&lt;AZTEK> what make us choose mysql over any other

<BR>&lt;d4J1nX> You want me to go into normalisation more first Aztek?

<BR>&lt;AZTEK> exactly

<BR>&lt;AZTEK> cant beat free

<BR>&lt;SpiderMan> also it's avaliable on many platforms

<BR>&lt;Devil_Panther> ok ok...

<BR>&lt;Devil_Panther> LECTURE PLS

<BR>&lt;AZTEK> yea any platform apache and php run mysql does

<BR>&lt;Devil_Panther> lol

<BR>*** BaGeL has joined #bsrf

<BR>&lt;AZTEK> ok

<BR>&lt;AZTEK> mysql_connect();

<BR>&lt;AZTEK> you have to connect to the mysql host

<BR>&lt;d4J1nX> Can php use access databases Az?

<BR>&lt;AZTEK> usually localhost

<BR>&lt;AZTEK> d4J1nX: yes

<BR>&lt;AZTEK> actually i am waiting for spidy to give me the syntax since

i don't have my manual open

<BR>&lt;SpiderMan> for mysql_connect()?

<BR>&lt;SpiderMan> it's localhost, username, password

<BR>&lt;AZTEK> yea

<BR>&lt;SpiderMan> in strings

<BR>&lt;AZTEK> yea but port

<BR>&lt;AZTEK> and stuff

<BR>&lt;SpiderMan> if no port is given it uses the default

<BR>&lt;AZTEK> int mysql_connect ([string hostname [:port] [:/path/to/socket]

[, string username [, string password]]])

<BR>&lt;SpiderMan> you don't have to provide the port unless it's different

then the standard

<BR>&lt;AZTEK> yea

<BR>&lt;AZTEK> i was wanting the full atribs :)

<BR>&lt;SpiderMan> ah, I'll open my docs

<BR>&lt;AZTEK> ok mysql_connect() returns a database handle

<BR>&lt;AZTEK> that we will use later for other things

<BR>&lt;SpiderMan> you should always check for a valid handle

<BR>&lt;AZTEK> we use mysql_query();

<BR>&lt;AZTEK> te send a query which d4J1nX when over the standard querys

earlier

<BR>&lt;SpiderMan> $con= mysql_connect("localhost", "jared", "pass"); if(!$con)

{die("can't connect!");}

<BR>*** Shiva_Shanti has joined #bsrf

<BR>&lt;AZTEK> mysql_query("SELECT * FROM people");

<BR>&lt;SpiderMan> int mysql_query (string query [, int link_identifier])

<BR>*** d4J1nX has quit IRC (Ping timeout: 180 seconds)

<BR>&lt;AZTEK> $result = mysql_query("SELECT * FROM people");

<BR>&lt;AZTEK> thats will return what mysql said for the query

<BR>&lt;SpiderMan> then you can use functions such as mysql_fetch_array()

to get the results

<BR>&lt;AZTEK> yea

<BR>&lt;AZTEK> umm thats the reson php is popular for database use its

really easy :)

<BR>*** acid519 has quit IRC (Ping timeout: 180 seconds)

<BR>&lt;AZTEK> use mysql_drop_db("database name"); to delete a database

<BR>&lt;AZTEK> use mysql_create_db("database name"); to create a databse

<BR>&lt;AZTEK> anything else spidy

<BR>&lt;AZTEK> like i said its easy

<BR>&lt;SpiderMan> int mysql_create_db (string database name [, int link_identifier])

<BR>&lt;SpiderMan> let's give an example

<BR>&lt;AZTEK> ok

<BR>&lt;AZTEK> from the start

<BR>&lt;SpiderMan> how about something to pull news out of a db

<BR>*** d4J1nX has joined #bsrf

<BR>&lt;AZTEK> ok

<BR>&lt;SpiderMan> let's say a database is set up with an id field and

a news field

<BR>&lt;SpiderMan> to get the news out we could do this

<BR>&lt;SpiderMan> if (!mysql_connect("host", "user", "pass")) {die("error!");}

<BR>*** TCL has joined #bsrf

<BR>*** ChanServ sets mode: +v TCL

<BR>&lt;SpiderMan> mysql_select_db("db");

<BR>&lt;AZTEK> |ID|NEWS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

|

<BR>&lt;AZTEK> --------------------------

<BR>&lt;AZTEK> |1 |.....................|

<BR>&lt;AZTEK> |2 |.....................|

<BR>&lt;AZTEK> |3 |.....................|

<BR>&lt;AZTEK> |4 |.....................|

<BR>&lt;AZTEK> |5 |.....................|

<BR>&lt;SpiderMan> that's what the db table would look like

<BR>&lt;SpiderMan> $result= mysql_query("SELECT * FROM news ORDER BY id

DESC);

<BR>&lt;SpiderMan> we use that to select the news and id out

<BR>&lt;SpiderMan> then using a while loop fetch all the data

<BR>*** Shiva_Shanti has quit IRC (Quit: eat, bbl)

<BR>&lt;SpiderMan> while($row= mysql_fetch_array($result)) {

<BR>&lt;SpiderMan> $news= $row["NEWS"];

<BR>&lt;SpiderMan> $id= $row["ID"];

<BR>*** divinator has quit IRC (Ping timeout: 180 seconds)

<BR>&lt;SpiderMan> echo "id= $id&lt;br>";

<BR>*** N0_Nick has quit IRC (Ping timeout: 180 seconds)

<BR>&lt;SpiderMan> echo "news= $news&lt;br>";

<BR>&lt;SpiderMan> }

<BR>&lt;SpiderMan> and after that we close the connection to the database

<BR>&lt;AZTEK> ok i tought spidy was just pulling this out of one of his

scripts

<BR>&lt;AZTEK> never mind

<BR>&lt;SpiderMan> heh nope

<BR>&lt;SpiderMan> just wrote it up right now

<BR>&lt;AZTEK> ok

<BR>&lt;AZTEK> using my little impromtu database

<BR>&lt;SpiderMan> heh yup

<BR>&lt;SpiderMan> question time?

<BR>&lt;AZTEK> .mode #bsrf -m

<BR>*** AZTEK sets mode: -m

<BR>&lt;freakOVER[away]> whew

<BR>*** N0_Nick has joined #bsrf

<BR>&lt;UnHaFox> =)

<BR>&lt;freakOVER[away]> i felt so

<BR>&lt;freakOVER[away]> muzzled

<BR>&lt;SpiderMan> heh

<BR>*** acid519 has joined #bsrf

<BR>&lt;UnHaFox> ah got it one the log file;)

<BR>&lt;AZTEK> damn laptop

<BR>&lt;mezzano> we can talk again ;)

<BR>&lt;AZTEK> well its not over

<BR>&lt;d4J1nX> Explain each line of code Spider

<BR>&lt;AZTEK> d4J1nX

<BR>&lt;AZTEK> is about to do perl

<BR>&lt;UnHaFox> not over?

<BR>&lt;N0_Nick> hey i got disconnected

<BR>&lt;SpiderMan> ok

<BR>&lt;N0_Nick> man

<BR>&lt;freakOVER[away]> oo

<BR>&lt;SpiderMan> wait I want to give some tips before we go to perl

<BR>&lt;freakOVER[away]> perl

<BR>*** AZTEK sets mode: +m

<BR>&lt;SpiderMan> ok so first we connect to the database using mysql_connect()

<BR>*** acid519 is now known as _acid519-

<BR>*** pixel_chomp has joined #bsrf

<BR>&lt;SpiderMan> we test to make sure we could connect in the if clause

<BR>&lt;AZTEK> if (!mysql_connect("host", "user", "pass")) {die("error!");}

<BR>&lt;SpiderMan> if we can't connect we exit the script with the error

message

<BR>*** _ciR_ has joined #bsrf

<BR>&lt;SpiderMan> in a real script you would give a better error

<BR>&lt;AZTEK> yea like

<BR>&lt;AZTEK> "You fucked it up"

<BR>&lt;AZTEK> lol

<BR>&lt;AZTEK> $result= mysql_query("SELECT * FROM news ORDER BY id DESC);

<BR>&lt;SpiderMan> in fact if you want to get the error mysql gives you,

you can use the function mysql_error()

<BR>&lt;AZTEK> now we query the database asking for all info in the databse

news and we want it ordered by the id feild decending

<BR>&lt;AZTEK> you forgot your "

<BR>*** SySt3mShk has left #bsrf

<BR>&lt;AZTEK> $result= mysql_query("SELECT * FROM news ORDER BY id DESC");

<BR>*** SySt3mShk has joined #bsrf

<BR>&lt;SpiderMan> heh whoops

<BR>&lt;AZTEK> &lt;SpiderMan> while($row= mysql_fetch_array($result)) {

<BR>&lt;AZTEK> &lt;SpiderMan> $news= $row["NEWS"];

<BR>&lt;AZTEK> &lt;SpiderMan> $id= $row["ID"];

<BR>&lt;AZTEK> *** divinator (Oper@box.sk) Quit (Ping timeout: 180 seconds)

<BR>&lt;AZTEK> &lt;SpiderMan> echo "id= $id&lt;br>";

<BR>&lt;AZTEK> *** N0_Nick (hgfhf@202.179.171.BOX-24341) Quit (Ping timeout:

180 seconds)

<BR>&lt;AZTEK> &lt;SpiderMan> echo "news= $news&lt;br>";

<BR>&lt;AZTEK> &lt;SpiderMan> }

<BR>&lt;SpiderMan> that says while there are rows to fetch, get them

<BR>&lt;AZTEK> here we are looping

<BR>&lt;AZTEK> yea

<BR>-d4J1nX- I have to go here, going out, I will speak soon

<BR>*** UnHaFox has left #bsrf

<BR>&lt;AZTEK> $row becomes a hask array with the column names as identifiers

<BR>-d4J1nX- say bye for meeee

<BR>&lt;SpiderMan> hash array*

<BR>&lt;AZTEK> yea hash

<BR>*** d4J1nX has quit IRC (Quit: )

<BR>&lt;AZTEK> and echo is self explainatory

<BR>&lt;SpiderMan> yeah

<BR>&lt;SpiderMan> just print it out

<BR>*** UnHaFox has joined #bsrf

<BR>&lt;AZTEK> thats about it

<BR>&lt;SpiderMan> when the script finishes the connection to the db will

close

<BR>&lt;SpiderMan> also just a tip

<BR>&lt;AZTEK> now

<BR>&lt;SpiderMan> if you are using larger scripts

<BR>&lt;SpiderMan> use mysql_pconnect()

<BR>*** AZTEK sets mode: -m

<BR>&lt;SpiderMan> it will save memory

<BR>&lt;AZTEK> for persestant connection

<BR>&lt;UnHaFox> ah=)

<BR>&lt;AZTEK> so they wont keep connecting with each user

<BR>*** divinator has joined #bsrf

<BR>&lt;reptile> ;)

<BR>&lt;UnHaFox> ?

<BR>&lt;SpiderMan> so questions?

<BR>&lt;freakOVER[away]> lol rep

<BR>&lt;_ciR_> oh

<BR>&lt;_ciR_> lets kill reptile

<BR>&lt;_ciR_> lol

<BR>&lt;divinator> yo

<BR>&lt;AZTEK> now i guess Mikkkeee will cover hacking sql

<BR>&lt;BaGeL> sup div

<BR>&lt;_ciR_> he didnt show up

<BR>&lt;UnHaFox> yes i have one, but this one doent concern this subject,

so can i ask it?

<BR>&lt;Mikkkeee> you guys are done?

<BR>&lt;AZTEK> yea

<BR>&lt;reptile> ;()

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
不卡的av在线播放| 国产日韩欧美在线一区| 91视频在线看| 成人精品在线视频观看| 国产精品99久| 国产黄色精品视频| 成人国产一区二区三区精品| 成人性生交大片免费看中文| 国产成人综合在线观看| 成人美女视频在线观看| 99re这里只有精品6| 日本乱人伦一区| 欧美日韩成人综合天天影院| 4438x亚洲最大成人网| 欧美一区二区三区男人的天堂| 91精品国产综合久久久久久漫画| 欧美日韩精品一区视频| 制服丝袜中文字幕一区| 欧美v日韩v国产v| 久久午夜羞羞影院免费观看| 国产午夜精品久久久久久免费视 | 欧美mv和日韩mv国产网站| 精品乱人伦一区二区三区| 国产视频一区二区三区在线观看| 中文字幕永久在线不卡| 一区二区三区在线播放| 天天影视色香欲综合网老头| 另类专区欧美蜜桃臀第一页| 国产福利一区二区三区视频 | 91.麻豆视频| 日韩精品中文字幕一区| 国产欧美日韩不卡| 一区二区三区高清在线| 日本欧美久久久久免费播放网| 国产一区二区看久久| 99久久亚洲一区二区三区青草| 欧美日韩一区二区欧美激情| 欧美精品一区二区精品网| 国产精品嫩草影院com| 亚洲成人av中文| 国产一本一道久久香蕉| 色综合天天综合| 欧美一区二区在线看| 欧美激情一二三区| 亚洲成av人片一区二区梦乃| 国产精品自在在线| 色94色欧美sute亚洲线路一久| 91精品欧美久久久久久动漫| 国产欧美日韩亚州综合| 亚洲综合免费观看高清完整版| 日韩高清国产一区在线| 粗大黑人巨茎大战欧美成人| 欧美日韩免费观看一区三区| 久久久久一区二区三区四区| 亚洲综合色视频| 国产激情偷乱视频一区二区三区| 欧美亚洲一区二区在线| 久久久久久久一区| 婷婷中文字幕综合| 99久久久精品| 久久久久国产精品厨房| 天堂成人国产精品一区| youjizz久久| 欧美r级在线观看| 亚洲乱码一区二区三区在线观看| 久久99九九99精品| 欧美日韩一级二级三级| 国产精品午夜在线| 久久精品99国产精品日本| 欧美在线|欧美| 国产精品福利一区二区三区| 久久国产夜色精品鲁鲁99| 欧美在线一二三| 国产精品少妇自拍| 精品一区精品二区高清| 欧美日韩国产bt| 亚洲精品v日韩精品| 国产ts人妖一区二区| 欧美mv日韩mv国产网站app| 亚洲成人av免费| 日本道色综合久久| 国产精品短视频| 国产激情视频一区二区三区欧美 | 日韩欧美成人午夜| 亚洲综合色网站| 91美女福利视频| 国产精品美日韩| 国产精品77777竹菊影视小说| 欧美成人艳星乳罩| 蜜臀精品一区二区三区在线观看| 欧美女孩性生活视频| 亚洲综合色在线| 在线看国产一区二区| 亚洲免费观看视频| 91麻豆免费看| 亚洲人成在线观看一区二区| 成人短视频下载| 中国色在线观看另类| 成人午夜又粗又硬又大| 国产三级欧美三级日产三级99| 精品一二三四区| 精品国产乱码久久久久久久| 久久 天天综合| www国产成人免费观看视频 深夜成人网| 日韩一区精品字幕| 欧美丰满美乳xxx高潮www| 丝袜诱惑亚洲看片| 欧美一区二区在线视频| 久久成人综合网| 精品日产卡一卡二卡麻豆| 黄色小说综合网站| 精品播放一区二区| 国产精品一区二区在线播放| 久久久五月婷婷| 成人av午夜电影| 综合久久给合久久狠狠狠97色| 一本一本久久a久久精品综合麻豆| 日韩久久一区二区| 欧美日韩综合在线免费观看| 亚洲第一成年网| 日韩午夜精品视频| 国产美女在线观看一区| 中文字幕色av一区二区三区| 欧洲亚洲国产日韩| 免费成人结看片| 久久久午夜精品理论片中文字幕| 成人深夜视频在线观看| 亚洲精品乱码久久久久久久久| 欧美日韩在线播放三区四区| 美女视频黄免费的久久 | 韩国三级中文字幕hd久久精品| 久久色在线视频| caoporn国产一区二区| 亚洲影视在线播放| 欧美成人猛片aaaaaaa| 成人亚洲一区二区一| 亚洲第一二三四区| 精品国精品国产| 成人18精品视频| 丝袜亚洲另类欧美综合| 久久免费午夜影院| 色拍拍在线精品视频8848| 蜜臀91精品一区二区三区| 亚洲国产精品高清| 欧美精品 国产精品| 国产成人av一区二区三区在线观看| 亚洲欧洲综合另类| 91精品在线免费| 波多野结衣精品在线| 日韩精品欧美精品| 中文字幕不卡在线观看| 欧美色图天堂网| 国产一区二区福利视频| 亚洲一区免费观看| 久久精品视频一区二区| 91极品美女在线| 国模无码大尺度一区二区三区| 亚洲综合久久久| 国产精品午夜在线观看| 欧美一区二区在线播放| 91网站在线播放| 激情欧美一区二区| 亚洲最新在线观看| 中文字幕av一区二区三区免费看| 欧美人伦禁忌dvd放荡欲情| 国产成人精品影院| 日韩av一区二| 一区二区三区四区视频精品免费 | 午夜欧美大尺度福利影院在线看| 国产欧美精品在线观看| 欧美日韩高清一区二区不卡| 99久久国产综合色|国产精品| 国内偷窥港台综合视频在线播放| 香蕉加勒比综合久久| 国产精品久久久一区麻豆最新章节| 欧美一区二区免费视频| 在线视频综合导航| 成人18视频日本| 国产精品一级二级三级| 美国毛片一区二区三区| 午夜视频在线观看一区二区| 最新国产の精品合集bt伙计| 国产情人综合久久777777| 日韩精品一区二区三区视频在线观看 | 国产精品小仙女| 日韩av不卡一区二区| 夜夜揉揉日日人人青青一国产精品| 国产精品毛片久久久久久| 欧美精品一区男女天堂| 91精品国产日韩91久久久久久| 91久久线看在观草草青青 | 国产视频一区在线播放| 日韩欧美一二区| 91精品国产福利| 欧美精品乱码久久久久久按摩| 91福利社在线观看| 94色蜜桃网一区二区三区| 成人美女在线视频| 成人深夜福利app| 成人蜜臀av电影|