You say eether and I say eyether,
You say neether and I say nyther;
Eether, eyether, neether, nyther -
Let's call the whole thing off !
You like potato and I like po-tah-to,
You like tomato and I like to-mah-to;
Potato, po-tah-to, tomato, to-mah-to -
Let's call the whole thing off !
我爱听这首歌,特别是由Louis Armstrong 及 Ella 的二重唱版本。它显示出两个爱情中人的彼此竞争有多辛劳,也是关于相互让步并追求共通的地方的过程。
PHP可以用起码的精神和最多的乐趣来创立静态的网站,要创立静态网站咱们需求利用数据库来撷取登入账号信息、宣布静态旧事、贮存会商区的文章。就以利用最通用的 MySQL 数据来讲,你们公司已完成了如斯奇异的任务,让你们的网站比你们所能想象的还要知名。接着你们也发明MySQL没法敷衍实践的任务量了,是该改换数据库体系的时分了。
不幸地,在PHP中一切数据库的存取都有些纤细的分歧。与MySQL保持你要利用 mysql_connect(),当你决意晋级到 Oracle 或 Microsoft SQL Server 时,你必需分离改用 ocilogon() 或 mssql_connect()。更糟的是分歧保持所利用的参数也都纷歧样,有的数据库说 po-tato(土豆的发音),其余数据库又说 pota-to(土豆的另外一个发音),喔…..天啊。
include('adodb.inc.php');
include('tohtml.inc.php'); /* includes the rs2html function */
$conn = &ADONewConnection('mysql');
$conn->PConnect('localhost','userid','password','database');
$rs = $conn->Execute('select * from table');
rs2html($rs); /* recordset to html table */
还有很多其它有效的函数列示在文件当中,可从以下网址查得 http://php.weblogs.com/adodb_manual
进阶题材
新增及更新
假定你要新增以下数据到数据库中。
ID = 3
TheDate=mktime(0,0,0,8,31,2001) /* 31st August 2001 */
Note= sugar why don't we call it off
C: character and varchar types
X: text or long character (eg. more than 255 bytes wide).
B: blob or binary image
D: date
T: timestamp
L: logical (boolean)
I: integer
N: numeric (float, double, money)
为了感激你看完这篇文章,上面就是 let's call the whole thing off 的完全歌词。
Refrain
You say eether and I say eyether,
You say neether and I say nyther;
Eether, eyether, neether, nyther -
Let's call the whole thing off !
You like potato and I like po-tah-to,
You like tomato and I like to-mah-to;
Potato, po-tah-to, tomato, to-mah-to -
Let's call the whole thing off !
But oh, if we call the whole thing off, then we must part.
And oh, if we ever part, then that might break my heart.
So, if you like pajamas and I like pa-jah-mas,
I'll wear pajamas and give up pa-jah-mas.
For we know we
Need each other, so we
Better call the calling off off.
Let's call the whole thing off !
Second Refrain
You say laughter and I say lawfter,
You say after and I say awfter;
Laughter, lawfter, after, awfter -
Let's call the whole thing off !
You like vanilla and I like vanella,
You, sa's'parilla and I sa's'parella;
Vanilla, vanella, choc'late, strawb'ry -
Let's call the whole thing off !
But oh, if we call the whole thing off, then we must part.
And oh, if we ever part, then that might break my heart.
So, if you go for oysters and I go for ersters,
I'll order oysters and cancel the ersters.
For we know we
Need each other, so we
Better call the calling off off.
Let's call the whole thing off !
Song and lyrics by George and Ira Gershwin, introduced by Fred Astaire and Ginger Rogers in the film "Shall We Dance?"