Reply to this topicStart new topic

> test
Csikszentmihalyi
  發表於: Aug 17 2004, 05:24 PM
Quote Post




Administrator
***************

所屬群組: Admin
發表總數: 1,313
會員編號: 1
註冊日期: 11-February 04



tongue.gif
CODE

function isexisttable($tbname,$dbname) {
opendb($dbname);
$result=mysql_list_tables($dbname);
for($i=0;$i<mysql_num_rows($result);$i++) {
&nbsp;if(mysql_tablename($result, $i)==$tbname) {
&nbsp; $check = 1;
&nbsp; break;
&nbsp;}
}
return $check;
}

}

biggrin.gif
HTML
function isexisttable($tbname,$dbname) {
opendb($dbname);
$result=mysql_list_tables($dbname);
for($i=0;$i<mysql_num_rows($result);$i++) {
if(mysql_tablename($result, $i)==$tbname) {
$check = 1;
break;
}
}
return $check;
}


laugh.gif
SQL
function isexisttable($tbname,$dbname) {
opendb($dbname);
$result=mysql_list_tables($dbname);
for($i=0;$i<mysql_num_rows($result);$i++) {
if(mysql_tablename($result, $i)==$tbname) {
$check = 1;
break;
}
}
return $check;
}


--------------------
- Tough ain't Enough -
PMEmail Poster
Top
Csikszentmihalyi
  發表於: Aug 17 2004, 05:26 PM
Quote Post




Administrator
***************

所屬群組: Admin
發表總數: 1,313
會員編號: 1
註冊日期: 11-February 04



QUOTE (Csikszentmihalyi @ Aug 17 2004, 05:24 PM)
tongue.gif
CODE

function isexisttable($tbname,$dbname) {
opendb($dbname);
$result=mysql_list_tables($dbname);
for($i=0;$i<mysql_num_rows($result);$i++) {
&nbsp;if(mysql_tablename($result, $i)==$tbname) {
&nbsp; $check = 1;
&nbsp; break;
&nbsp;}
}
return $check;
}

}

test reply


not good...

本篇文章已被 Csikszentmihalyi 於 Aug 18 2004, 12:13 AM 編輯過


--------------------
- Tough ain't Enough -
PMEmail Poster
Top
1 位使用者正在閱讀本主題 (1 位訪客及 0 位匿名使用者)
0 位會員:

Topic Options Reply to this topicStart new topic

 



[ Script Execution time: 0.0041 ]   [ 14 queries used ]   [ GZIP 啟用 ]