第一步:
创建服务器连接
resource mysql_connect(server,user,pwd)
第二步:
连接数据库
bool mysql_select_db(dbname)
第三步:
查询操作(包括插入等)
resource mysql_query(string)
第四步:
获取查询结果
mysql_fetch_array(resource)
mysql_fetch_row(resource)
mysql_fetch_object(resource)
----
mysql_num_rows(resource) -- 返回查询结果集中的行数
mysql_affected_rows() --返回上次查询受影响的行数
mysql_close(resource) --关闭连接
没有合适的资源?快使用搜索试试~ 我知道了~
PHP 入门基础练习源码打包
共121个文件
php:108个
gif:5个
tpl:2个
需积分: 0 0 下载量 186 浏览量
2023-05-05
15:23:25
上传
评论 1
收藏 68KB 7Z 举报
温馨提示
PHP(外文名:PHP: Hypertext Preprocessor,中文名:“超文本预处理器”)是一种通用开源脚本语言。语法吸收了C语言、Java和Perl的特点,利于学习,使用广泛,主要适用于Web开发领域。 这仅仅是PHP基础的练习源码。 比较适合新手练手与学习参考。了解下php的一些功能函数。
资源推荐
资源详情
资源评论
收起资源包目录
PHP 入门基础练习源码打包 (121个子文件)
common.css 3KB
serialize.data 380B
logo.gif 578B
site_header_line.gif 387B
left_bg.gif 156B
ui-bg.gif 65B
submenu.gif 60B
index.html 3KB
counter.inc 1B
common.js 1KB
Smarty_Compiler.class.php 90KB
Smarty.class.php 62KB
Config_File.class.php 12KB
function.html_select_date.php 12KB
function.fetch.php 9KB
function.html_select_time.php 7KB
function.config_load.php 6KB
function.html_table.php 5KB
function.mailto.php 5KB
function.html_radios.php 5KB
function.html_image.php 5KB
core.load_plugins.php 4KB
function.html_checkboxes.php 4KB
function.html_options.php 4KB
core.write_cache_file.php 4KB
core.read_cache_file.php 4KB
function.popup.php 3KB
function.cycle.php 3KB
core.write_compiled_include.php 3KB
modifier.debug_print_var.php 3KB
block.textformat.php 3KB
modifier.escape.php 3KB
outputfilter.trimwhitespace.php 3KB
core.run_insert_handler.php 3KB
function.math.php 3KB
core.create_dir_structure.php 2KB
core.get_php_resource.php 2KB
core.process_cached_inserts.php 2KB
core.rm_auto.php 2KB
core.load_resource_plugin.php 2KB
file_cache.php 2KB
core.assemble_plugin_filepath.php 2KB
数组.php 2KB
字符串.php 2KB
modifier.date_format.php 2KB
function.counter.php 2KB
core.is_secure.php 2KB
mysql_fetch_array.php 2KB
基本类型serialize.php 2KB
core.smarty_include_php.php 2KB
core.display_debug_console.php 2KB
core.write_file.php 1KB
core.rmdir.php 1KB
type.php 1KB
modifier.truncate.php 1KB
core.is_trusted.php 1KB
抽象类.php 1KB
core.assign_smarty_interface.php 1KB
modifier.regex_replace.php 1KB
overriding.php 1KB
shared.make_timestamp.php 1KB
function.assign_debug_info.php 1KB
compiler.assign.php 1KB
core.write_compiled_resource.php 1KB
变量范围.php 1KB
modifier.capitalize.php 1KB
core.process_compiled_include.php 1KB
类的继承.php 1024B
function.eval.php 1014B
对象序列化.php 1011B
core.get_include_path.php 1002B
布尔型.php 991B
function.popup_init.php 979B
mysql_fetch_row.php 898B
this说明.php 881B
PCRE-Preg.php 861B
function.debug.php 835B
shared.escape_special_chars.php 774B
访问控制.php 765B
modifier.count_words.php 751B
modifier.count_characters.php 743B
modifier.strip.php 742B
static关键字.php 732B
modifier.nl2br.php 717B
简单定义.php 676B
modifier.strip_tags.php 676B
mysql_fetch_object.php 658B
modifier.count_sentences.php 653B
modifier.spacify.php 644B
modifier.default.php 635B
modifier.count_paragraphs.php 630B
静态变量.php 626B
modifier.cat.php 623B
modifier.wordwrap.php 613B
整型.php 608B
modifier.replace.php 585B
modifier.string_format.php 579B
计数器.php 568B
modifier.indent.php 567B
插入一行记录.php 522B
共 121 条
- 1
- 2
资源评论
Rocky006
- 粉丝: 5596
- 资源: 1330
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功