Jump to content

random help ...


2millionways

Recommended Posts

Hello,

 

This is part of my php code:

 

<?php
$sql = "SELECT * FROM `table_tickets` ORDER BY `step_status1`, `step_status2`";
$options='';
$i=1;

{

echo <<<EOC
<tr>
<td>Ticket status: $ticket[step_status1]</td>

<td>Ticket status: $ticket[step_status2]</td>
</tr>

EOC;
} // End while
?>

 

My question is: can I create code that will automatically take number of  step_status fields, so when someone adds another "step", let's say step_staus3 (through a form) the rest script will read it from database.

 

Sorry for lame language :) Thank for help.

Link to comment
https://forums.phpfreaks.com/topic/137366-random-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.