Questions about PHP calling database Image addresses to achieve round-display-php Tutorial

Source: Internet
Author: User
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 ,:-)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.