下一篇 » « 上一篇

msql_field_seek

作者:semirock    时间:2009-02-08    来源:http://444p.com    点击:35221    本文共1篇文章 字体:[ ]

msql_field_seek

<HTML>
<HEAD>
<TITLE>msql_field_seek</TITLE>
</HEAD>
<BODY>
<?
$database_link = msql_connect("msql.clearink.com");
msql_select_db("store", $database_link);
$query = "SELECT * FROM item i, SKU s ";
$query .= "WHERE i.SKU = s.ID ";
$result = msql_query($query, $database_link);

// get description of each field
// starting with the third
msql_field_seek($result, 2);
while($field = msql_fetch_field)
{
print("Name: " . $field->name . "<BR>\n");
print("Table: " . $field->table . "<BR>\n");
print("Not Null: " . $field->not_null .
"<BR>\n");
print("Primary Key: " .
$field->primary_key "<BR>\n");
print("Unique: " . $field->unique . "<BR>\n");

php学习之家


print("Type: " . $field->type . "<BR>\n<BR>\n");
}
msql_close($database_link);
?>
</BODY>
</HTML>
发表评论
密码: (游客不需要密码)
记住我【Alt+S 或 Ctrl+Enter 快速提交】

搜索工具


《PHP函数》点击排行