Note that there are some explanatory texts on larger screens.

plurals
  1. POloading images and data from mysql into Flash using PHP?
    primarykey
    data
    text
    <p>I have a mysql database where the name of the products and prices and details get saved on there. This is done using PHP. and it works fine.</p> <p>I just need to load the images of the products and their details into flash using AS3.</p> <p>This is my PHP code:</p> <pre><code>&lt;?php // Script Error Reporting error_reporting(E_ALL); ini_set('display_errors', '1'); ?&gt; &lt;?php // Run a select query to get my letest 6 items // Connect to the MySQL database include "../config/connect_to_mysql.php"; $dynamicList = ""; $sql = mysql_query("SELECT * FROM products ORDER BY date_added DESC LIMIT 6"); $productCount = mysql_num_rows($sql); // count the output amount if ($productCount &gt; 0) { while($row = mysql_fetch_array($sql)){ $id = $row["id"]; $product_name = $row["product_name"]; $price = $row["price"]; $date_added = strftime("%b %d, %Y", strtotime($row["date_added"])); $dynamicList .= '&lt;table width="100%" border="0" cellspacing="0" cellpadding="6"&gt; &lt;tr&gt; &lt;td width="17%" valign="top"&gt;&lt;a href="../product.php?id=' . $id . '"&gt;&lt;img style="border:#666 1px solid;" src="../inventory_images/' . $id . '.jpg" alt="' . $product_name . '" width="77" height="102" border="1" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td width="83%" valign="top"&gt;' . $product_name . '&lt;br /&gt; $' . $price . '&lt;br /&gt; &lt;a href="../product.php?id=' . $id . '"&gt;View Product Details&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;'; } } else { $dynamicList = "We have no products listed in our store yet"; } mysql_close(); ?&gt; &lt;?php echo $dynamicList; ?&gt; </code></pre> <p>any help would be appreciated.</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload