Home Database Mysql Tutorial PHP+MYSQL+Flash 做留言本(3)[组图]_MySQL

PHP+MYSQL+Flash 做留言本(3)[组图]_MySQL

Jun 01, 2016 pm 01:57 PM
flash use

   开始制作(做好上面的准备工作,下面的会很好理解):

PHP+MYSQL+Flash 做留言本(3)[组图]_MySQL

1、SWF读取数据
①和②MySQl→PHP→SWF
PHP用“SELECT”从MySQl那里取,再写成xml给SWF读。

PHP+MYSQL+Flash 做留言本(3)[组图]_MySQL

2、SWF储存数据
③和④SWF→PHP→MySQl
SWF用“sendAndLoad”给PHP,PHP用“INSERT”给MySQl。

PHP+MYSQL+Flash 做留言本(3)[组图]_MySQL

完成后的截图:

PHP+MYSQL+Flash 做留言本(3)[组图]_MySQL

其他注意事项:

解决乱码(解决数据库中的中文读出来是"????"):
在用PhpAdmin建立数据库的时候选择“utf8-geeral-ci”编码。
在php文件的查询语句前,加上:mysql_query("set names 'utf8'");
php模块化(便于以后修改):
连接数据库的语句写在单独的文件中,如connectdb.php。
则写数据(datatosql.php)和读数据(datatoxml.php)的文件中加上:require "connectdb.php"即可。
MySQL排错函数(如操作有错,根据提示会很方便修改):
mysql_errno(出错号);mysql_error(出错原因)。
php的日期函数(更详细的可参考其他帮助):
data("Ymd,l,H:i");  //20080608,Sunday,09:28
SWF实时刷新(保证读取最新数据):
swf发送并获取实时变量:data_lv.sendAndLoad("datatosql.php?n="+random(9999), data_lv, "post");
swf读取实时xml:myXML.load("datatoxml.php?n="+random(9999));

Statement of this Website
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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

what is flash what is flash Aug 10, 2023 am 10:16 AM

Flash is a software used to create multimedia and interactive content, with features such as vector graphics, timeline animation, interactivity, and multimedia processing capabilities. Although once very popular, Flash was gradually phased out with the rise of new technologies, and official support ceased in 2020.

Which mouse linker software is recommended for better results? Which mouse linker software is recommended for better results? Jan 02, 2024 pm 07:54 PM

Which mouse point connector is better? For the point connector, I recommend using AutoClicker. It is a simple and easy-to-use mouse connection software that can help you click the mouse automatically. The reason is that AutoClicker has the following advantages: 1. The interface is simple and intuitive, the operation is simple, and it is suitable for beginners to use. 2. Support custom click interval time, and click speed can be adjusted as needed. 3. You can set the number of clicks or continuous clicks to meet different needs. 4. Free software, no need to pay to purchase. If you want to use a dot connector, try AutoClicker. How to set up Logitech mouse macros in Sniper 2: The following are the steps to set up Logitech mouse macros in Sniper 2: 1. First, make sure you have purchased and installed Logitech

Installing Flash on Debian: Detailed Guide and Sharing Linux Tips Installing Flash on Debian: Detailed Guide and Sharing Linux Tips Feb 15, 2024 pm 01:00 PM

Flash used to be the king of online multimedia. Although its use has been greatly reduced now, in some old websites or specific applications, we still need Flash plug-ins. We will introduce in detail how to install Flash in Debian systems. What we need to be clear about is that Adobe has officially stopped supporting Flash Player on December 31, 2020. Therefore, the Flash version we recommend is the open source PepperFlash. PepperFlash is a Flash version developed by Google and specially used by the Chrome browser. Installation steps: 1. Open the terminal and update your package list: ````sqlsudoapt-getupdat

Using the docking station to transfer files, which one is faster, T470s or T450s? Using the docking station to transfer files, which one is faster, T470s or T450s? Jan 03, 2024 pm 05:54 PM

Is it fast for t470s to transfer files using the docking station? 1 It is relatively fast 2 Because t470s can perform multiple tasks at the same time using the docking station to transfer files, supports high-speed data transmission, and can quickly complete file transfers. 3 Of course, the transmission speed will also be affected by other factors, such as file size, transmission distance, transmission content, etc., which need to be measured according to specific circumstances. But in general, using the docking station to transfer files is relatively fast and convenient. Relatively fast. Because the T470s uses the docking station to connect to more peripherals, including external hard drives, mice, keyboards, etc., and the docking station has a faster transfer speed, so compared to other transfer methods, using the docking station to transfer files is faster. At the same time, the specific transfer speed also needs to consider factors such as file size and hardware configuration. therefore

Edge browser flash is not enabled solution Edge browser flash is not enabled solution Dec 24, 2023 pm 06:05 PM

When watching videos in a browser, it cannot be started without flash. Many friends have encountered the problem of flash not starting, which has caused trouble. Today I have brought you a detailed solution to take a look. Edge browser flash is not enabled: 1. Enter the browser, click the three dots in the upper right corner, and select "Settings". 2. Click "Advanced" on the left. 3. Find "Use Adobe Flash Player" in "Website Settings" on the right. 4. Turn on the switch to enable it normally.

Does flash plug-in affect the computer? Does flash plug-in affect the computer? Mar 03, 2023 pm 01:49 PM

The flash plug-in has no impact on the computer; flash is installed so that users can play SWF files on the browser. It used to be a necessary plug-in for computers and does not occupy much memory. However, now flash has been eliminated and many websites have begun to use it. I use h5, and the win10 system comes with a flash plug-in.

Solution: How to fix the problem that flash cannot be used in edge browser Solution: How to fix the problem that flash cannot be used in edge browser Jan 06, 2024 pm 06:45 PM

Many friends have encountered problems recently when browsing videos. Flash has been turned on but still cannot be used. So what is going on? Let’s take a look at the solutions below. Edge browser flash cannot be used: 1. Go to the browser homepage and click the three dots in the upper right corner to select "More Tools". 2. Select "Open with Internet Explorer" in the new window. 3. Click the gear in the upper right corner of the IE web page. 4. Open "Internet Options". 5. Select "Advanced" and check "Use software rendering instead of GPU rendering" in "Accelerated Graphics".

What to do if flash is blocked What to do if flash is blocked Jan 13, 2021 am 10:32 AM

Solution to flash being blocked: 1. Open the browser and click the [red icon] on the right side of the URL line; 2. Click [Manage] to enter the flash management page; 3. Click the [Open button] on the right side of the prohibited website to run flash. Can.

See all articles