Article View: cn.bbs.comp.database
Article #1976���һ��php��mysql���ӵ�����
From: Ҫ��ʲô���鶼����ͨ�Ļ��Ͳ�����Ҫ��ѧ�
Date: Tue, 23 Aug 2005 13:37
Date: Tue, 23 Aug 2005 13:37
16 lines
1458 bytes
1458 bytes
���ѳɹ���װmysql,֮����һ��վ���phpҳ��,ҳ���������:
<?
$connect=mysql_connect("localhost","root","");
mysql_select_db("jjgl",$connect);
$result=mysql_query("select * from admin",$connect);
prinf("ID: %s<br>\n",mysql_result($result,0,"name"));
?>
֮��Ԥ����ʱ��:
Fatal error: Call to undefined function mysql_connect() in C:\Inetpub\wwwroot\
EMI\Untitled-2.php on line 3
���λ֪������취��ggjj���ߴͽ�,���¸м�����!
--
[m[35m�� ��Դ:�����Ļ����� http://bbs.cqupt.edu.cn��[FROM: bbs.cqupt.edu.cn][m
Technical Details
Message-ID:
<4JgaDL$ceu@bbs.cqupt.edu.cn>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!202.194.15.150.MISMATCH!bbsnews.sdu.edu.cn!news.uestc.edu.cn!CQUPTShow Full Headers
Complete Article Headers
X-Google-Thread: 101948,74a5318962ed2ed2,start X-Google-Attributes: gid101948,public X-Google-Language: Chinese,GB Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!202.194.15.150.MISMATCH!bbsnews.sdu.edu.cn!news.uestc.edu.cn!CQUPT From: leoqq@bbs.cqupt.edu.cn-SPAM.no (Ҫ��ʲô���鶼����ͨ�Ļ��Ͳ�����Ҫ��ѧ�) Newsgroups: cn.bbs.comp.database Subject: ���һ��php��mysql���ӵ����� Date: 23 Aug 2005 13:37:10 GMT Organization: ���Ļ����� Message-ID: <4JgaDL$ceu@bbs.cqupt.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: DataBase/M.1124804229.m0