search
Homephp教程php手册文章类客户端服务端

适合新手:读取自己MYSQL数据库数据,文章类客户端服务端
适合新手:获取自己MYSQL数据库数据,我测试用一个icms的数据库数据。。客户端网站是:news.yongzihao.cn 上面的数据

我做的的第一个客户端。
APP之路:从去年的时候就想弄一个区域性类似陌陌+微信+O2O合并功能性质的客户端运营,后来想着复杂,就想弄个O2O,,最后,,咨询过做APP的一些公司和一些技术员,费用都不是我创业阶段可以承受的,然后本着懂一点HTML代码的基础想自己学习开发,几十岁的老男人了,不容易。从Eclipse到APPcan到APICLOUD,最后选择了APICLOUD。。除了APICLOUD上手比较合适我,还因为论坛和群里的朋友都很热情。。谢谢这些帮助过我的所有人。。
看了CC的数据库链接,huguoba,土龙列表获取,蝈蝈的内容页ID传值•••••

文件frame*.html有ajax获取数据的例子。。
附加一个JOsN数据链接,列表的。。


内容页的:

mysql_connect('localhost',' ',' ');
//连接mysql
mysql_select_db(' ');
//选择test数据库
mysql_query("SET NAMES utf8");

$name=$_POST['ID'];
//把文本域的值保存为变量,name是文本域的名字

$query=mysql_query("SELECT a.id,a.cid,a.title,a.author,a.pic,a.description,a.pubdate,a.hits, b.body FROM icms_article a LEFT JOIN icms_article_data b ON a.id = b.id WHERE a.id ='$name'");
//执行查询,查询test表中name是变量name的所有记录
$num=mysql_num_rows($query);
//取出结果的行数

$row=mysql_fetch_array($query);
//把结果保存位数组
echo json_encode($row);
$fp = fopen("absc.log", "a+");
fwrite($fp,'"发送代码'.$_POST['ID'].'"');
fclose($fp);

?>

复制代码

文章类客户端服务端文章类客户端服务端文章类客户端服务端文章类客户端服务端

原文链接: http://community.apicloud.com/bbs/forum.php?mod=viewthread&tid=3289

附件 HelloApp.rar ( 397.24 KB 下载:46 次 )

AD:真正免费,域名+虚机+企业邮箱=0元

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.