Question about how PHP calls the image address of a database to achieve Wheel Display & lt ;? Php & nbsp; include_once & quot; connect. php & quot; connect to the database & nbsp; $ jdz_picmysql_query (& quot; select * fromjdz_imageswherefiletypeimagepjp the question about how PHP calls the image address of the database to achieve wheel display
Include_once "connect. php"; // connect to the database
$ Jdz_pic = mysql_query ("select * from jdz_images where filetype = 'image/pjpeg 'order by aid desc limit"); // find attachments in JPG format
For ($ I = 0; $ I <5; $ I ++)
{
$ Pic = mysql_fetch_array ($ jdz_pic );
$ Jdz_picshow [I] = $ pic [path]. $ pic [filename]; // connect the image address and name
}
?>
// The following is the FLASH call
Var swf_width = 250
Var swf_height = 230
Var config = '5 | 0xffffff | 0x0099ff | 50 | 0xffffff | 0x0099ff | 0x000000'
// Config settings: automatic playback time (seconds) | text color | text background transparency | key digital color | current key color | normal key color
Var files =' '
Var links =' '
Var texts =' '
Document. write (' ');
Document. write ('');
Document. write ('');
Document. write ('');
Document. write ('');
Document. write ('');
Document. write ('');
Document. write ('');
Let's take a look !!! FLASH is not displayed !!!!
------ Solution --------------------
This is not necessarily a problem of reading the database. you should first write the following image links and other variables into a fixed test to test whether the output can be made. if this is not the case, it will be the problem of FLASH.
------ Solution --------------------
Discussion
I changed it to a fixed address and it is not displayed !! So how ???
------ Solution --------------------
If you think there is a problem with the image for data reading, print the data read from the database to see if the image address is correct. if so, it is the problem of Flash.
However, the above are just the ideas for solving the problem ,:-)