[英]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.