Settings | Sign in | Sign up

The author has 1 post.

function db_field_value($TABLE_NAME,$FIELD_NAME,$D

Floor 1 产品的注销 12/26/10 21:22
function db_field_value($TABLE_NAME,$FIELD_NAME,$DATABASE_NAME=''){
 if ($DATABASE_NAME!="") $DATABASE_NAME.=".";
 $sql="show create table ".$DATABASE_NAME.$TABLE_NAME;
 $rs=db_query($sql);
 $dl=mysql_fetch_row($rs);
 $sour=explode($FIELD_NAME,$dl[1]);
 $sour=explode("DEFAULT '",$sour[1]);
 $sour=explode("',",$sour[1]);
 return $sour[0];
}

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
©2010-2025 Purasbar Ver3.0 [Mobile] [Desktop]
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported license.