mysql_fetch_row
发表于|更新于|php
mysql_fetch_row() 函数从结果集中取得一行作为数字数组。
文章作者: developer
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Dev!
相关推荐
2015-09-10
mysql_insert_id
mysql_insert_id获得mysql查询后的自增主键的id
2015-09-10
mysql_fetch_array
mysql_fetch_array从mysql_query的执行结果中取出一行结果放在2个数组中, MYSQL_ASSOC - 关联数组(键名和键值)MYSQL_NUM - 数字数组MYSQL_BOTH - 默认。同时产生关联和数字数组
2021-01-14
php excel PhpSpreadsheet 处理大量数据 读取
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566use PhpOffice\PhpSpreadsheet\IOFactory;use PhpOffice\PhpSpreadsheet\Spreadsheet;class Xlsx{ public static function load($filePath) { $inputFileType = IOFactory::identify($filePath); $excelReader = IOFactory::createReader($inputFileType); $PHPExcel = $excelReader->load($filePath); return $PHPExcel; } /** * 迭代每一行...
2017-09-02
php apache 配置 https ssl phpstudy 开启 Forward Secrecy 前向保密
SSL HTTPS检测获得A+的方法 检测地址 https://www.ssllabs.com/ssltest/ apache版本 2.4 开启php的openssl模块 开启apache的ssl模块 一般大家是用apache虚拟机的增加如下配置 1234567891011121314151617181920212223242526272829Listen 443<VirtualHost *:443> DocumentRoot "C:\php\www" ServerName iguojin.com ServerAlias # 开启HSTS长期有效 Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains; preload" # 开启SSL SSLEngine on # 添加SSL协议支持协议 SSLProtocol all -SSLv2 -SSLv3 # 服务器...
2019-09-06
PHP 数组 内部指针 操作函数 current end prev reset next
12345current() # 返回数组中的当前单元end() # 将数组的内部指针指向最后一个单元prev() # 将数组的内部指针倒回一位reset() # 将数组的内部指针指向第一个单元next() # 将数组中的内部指针向前移动一位 这些函数都会改变当前数组内部指针所指向的元素 注意unset一个元素的时候,内部指针会自动指向下一个有效元素如果在最后一个元素时,使用unset,会导致后面没有有效元素所以调用key会出现null,需要手动reset到数组头部
2020-04-13
mysql 管理
创建数据库1CREATE DATABASE IF NOT EXISTS yourdbname DEFAULT CHARSET utf8mb4 COLLATE utf8mb4_general_ci; 创建用户1create user 'user'@'%' identified by '123'; 授权用户1grant all privileges on db.* to 'user'@'%'; 查看用户1show grants for 'user'@'%'; 修改密码123use mysql; update user set password=password('123') where user='root' and host='localhost'; flush privileges; mysql8密码问题1ALTER USER 'native'@&...
公告
This is my Blog