# Flash&PHP Help please?

**URL:** <https://forum.kirupa.com/t/flash-php-help-please/269413>\
**Category:** flash\
**Created:** [August 27, 2008, 8:54am UTC](https://forum.kirupa.com/t/flash-php-help-please/269413 "2008-08-27T08:54:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![siephe](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@siephe](https://forum.kirupa.com/u/siephe)\
**Post date:** [August 27, 2008, 8:54am UTC](https://forum.kirupa.com/t/flash-php-help-please/269413/1 "2008-08-27T08:54:08Z")

</div>

If I wanted to display my PHP content in Flash, how would I do it? Currently, my site is coded in XHTML/CSS/PHP and I want to convert it to Flash. However, I want to be able to easily input new information without having to go through the .fla file. Is there a way to do that?

And is there a way I’d be able to display my information in my PHP Database so that it resembles vaguely to the way it is displayed right now? Here’s the current code to what I’m using to access my database to display my content:

\<?php

$user="----";  
$host="----";  
$database="----";  
$table="----";  
$pass="----";

$connection = mysql\_connect($host,$user,$pass)  
or die (“couldn’t connect to server”); $db = mysql\_select\_db($database,$connection)  
or die (“Couldn’t select database”);

$query = "select \* from `Regular` order by ID desc ";  
$result = mysql\_query($query, $connection) or die  
(“Could not execute query : $query .” . mysql\_error());  
$rows = mysql\_num\_rows($result);

if ($rows==“0”) { echo “No wallpapers found.”; }

$screen = $\_GET[‘screen’];  
$PHP\_SELF = $\_SERVER[‘PHP\_SELF’];  
$rows\_per\_page=5;  
$total\_records=mysql\_num\_rows($result);  
$pages = ceil($total\_records / $rows\_per\_page);

if (!isset($screen))  
$screen=0;  
$start = $screen \* $rows\_per\_page;  
$query .= “LIMIT $start, $rows\_per\_page”;  
$result= mysql\_query($query) or die  
(“Could not execute query : $query .” . mysql\_error());  
while ($row=mysql\_fetch\_array($result))

{

$display=$row[“display”];  
$series=$row[“series”];  
$id=$row[“id”];  
$date=$row[“date”];  
$small=$row[“small”];  
$big=$row[“big”];

echo "  
\<table class=“content”\>  
\<tr\>  
\<td align=“center”\>\<img src="$display" /\>\</td\>  
\<td\>  
\<b\>Series:\</b\>&nbsp;$series\<br /\>  
\<b\>ID:\</b\>&nbsp;$id\<br /\>  
\<b\>Added on:\</b\>&nbsp;$date\<br /\>\<br /\>  
\<center\>  
\<a href="$small" target=“new”\>800x600\</a\>&nbsp;.&nbsp;\<a href="$big" target=“new”\>1024x768\</a\>  
\</center\>  
\</td\>\</tr\>  
\</table\>  
";  
}  
?\>

Thanks!  
(I hope I posted this in the right place… I’m currently using Flash 8)
