FLEX 3 PHP TCPDF QUESTION
If i make a Datagrid with PHP i have this code:
<h2>Submitted forms</h2>
<table>
<tr>
<th>Date</th>
<th>Order ID</th>
<th>Store ID</th>
<th>Route ID</th>
<th>Tech ID</th>
<th>Download PDF</th>
</tr>
<?php
// Start row counter
$iRow = 0;
// Loop through all the rows in the database
while ($orders = mysql_fetch_array($result)) {
$iRow++; // Increase counter
$rowColor = ($iRow % 2) ? "" : "class=\"even\""; // If the row is even, put a CSS class on it
?>
<tr <?php echo $rowColor; // actually put the rowColor class name ?>>
<td><?php echo $orders["date"]; ?></td>
<td><?php echo $orders["id"]; ?></td>
<td><?php echo $orders["store_id"]; ?></td>
<td><?php echo $orders["route_id"]; ?></td>
<td><?php echo $orders["tech_id"]; ?></td>
<td><a href="getorder.php?id=<?php echo $orders['id']; //Download page in this case uses the primary key of the row to select the data to create the pdf. ?>">Download</a></td>
</tr>
<?php
// Close loop
}
?>
I have a column named Download that has a link that runs a php that builds a PDF File and gives it to the user. It works great as above, but I would love to use flex to build an app to do this.
Problem is, I don't understand where I need to add this code in FLEX3. I have just done a simple project where I bult a datagrid that pulls from the MYSQL Database. I am able to add a column with header DOWNLOAD and I see the place where it builds an array, I guess I don't know the syntax to add the link into the array.
I can add more script if needed and greatly apprecite any help ![]()
