简体   繁体   English

如何在MySQL数据库中存储SWF文件名和位置?

[英]How do i store a swf file name and location in mySQL database?

Problem, I cannot pre-view a flash movie in a php.page. 问题,我无法在php.page中预览Flash电影。 Question, How, where, do i store a swf file name and location in mySQL database and then use this data to call it in the application? 问题,如何将swf文件名和位置存储在mySQL数据库中,然后使用此数据在应用程序中调用它? Thanks for reading Sabby77 感谢您阅读Sabby77

Problem, I cannot pre-view a flash movie in a php.page - Why not? 问题,我无法在php.page中预览Flash电影-为什么不呢? Can you give more details? 您能提供更多细节吗?

How, where, do i store a swf file name and location in mySQL database and then use this data to call it in the application? 如何在哪里将swf文件名和位置存储在mySQL数据库中,然后使用此数据在应用程序中调用它? - I can't answer "where" as this depends on your app structure , but you could save both the name & file location in your database. -我无法回答“ where”,因为这取决于您的应用程序结构,但是您可以在数据库中保存名称和文件位置。 In your app, you can then get the values from the database & assign them to PHP variables. 然后,在您的应用程序中,您可以从数据库中获取值并将其分配给PHP变量。

If you're using SWFObject ,you could do something like this: 如果您使用的是SWFObject,则可以执行以下操作:

// $location = swf file location
// $name = swf file name
swfobject.embedSWF("(put your PHP tags here) echo $location./.$name; (put your PHP tags here)", "myContent", "300", "120", "9.0.115",    "expressInstall.swf");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用PHP在MySQL数据库中存储上载的swf文件? - How to store an uploaded swf file in a MySQL database using PHP? 如何在数据库中存储文件的名称和路径? - How do I store the name and the path of the file in my database? 如何获取数据库中字段名(名称)中的所有数据并将其存储在变量数组中? 在 PHP 和 MYSQL - HOw do i get all the data in a fieldname (Name) in database and store it in a variable array? in PHP and MYSQL 如何在MySQL数据库中存储包含引号的字符串? - How do I store a string containing quotes in a MySQL database? 如何在 MySql 数据库中将复选框值存储为是 - PHP - How do I store a checkbox value as yes in MySql Database - PHP 如何使用php将图像序列更改存储到mysql数据库 - How do I store image sequence changes to a mysql database with php 如何将 MySQL 数据库中的字段作为字符串存储在 PHP 中? - How do i store a field from a MySQL database as a string in PHP? 如何将 dwg 文件转换为 flash (swf) 文件? - how do i convert dwg file to flash (swf) file? 更改 mysql -joomla 中的文件名并存储在数据库中具有唯一名称? - change file name in mysql -joomla and store has a unique name in database? 如何检查 swf flash 文件是否实现了 clickTAG? - How do I check if an swf flash file implements clickTAG?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM