1、mysql_connect()-建立数据库连接格式:resource mysql_connect([string hostname [:port] [:/path/to/socket] [, string username] [, string password]])例:$c......
例: $query = “select id, name from MyTable order by name”; $result = mysql_query($query); $row = mysql_fetch_row($result); echo mysql_field_type($result, 0); // Result: int
25、mysql_field_table()-获取字段所在表名 格式: string mysql_field_table (resource result_set, int field_offset) 例: $query = “select id as PKID, name from MyTable order by name”; $result = mysql_query($query); $row = mysql_fetch_row($result); echo mysql_field_table($result, 0); // Result: MyTable
5/5 首页 上一页 3 4 5 |