K
Kenny
Guest
I'm currently working on a PHP script that lists the entries in a database. Since this will be maintained by people unfamiliar with PHP I am trying to allow everything to be configured by a collection of variables and arrays at the top. Here's my dilemma: How can I set a variable at the beginning to reference a row in a MySQL table.
This is what they should be able to configure:
$UniqueID = "NameOfSomeRow";
To allow a check box in the list to receive the appropriate value.
$counter = 0;
while ($row = mysql_fetch_array($QueryResult))
{
extract($row);
$UniqueID = ??? (Where I'm stuck)
echo "<tr onclick='CheckBoxComponent('CheckBoxComponent".$UniqueID." ');'> \n <td> ";
foreach($AllFieldsARR as $key=>$value) ...
Hoping this is something simple that I haven't thought of yet. Thanks in advance.
This is what they should be able to configure:
$UniqueID = "NameOfSomeRow";
To allow a check box in the list to receive the appropriate value.
$counter = 0;
while ($row = mysql_fetch_array($QueryResult))
{
extract($row);
$UniqueID = ??? (Where I'm stuck)
echo "<tr onclick='CheckBoxComponent('CheckBoxComponent".$UniqueID." ');'> \n <td> ";
foreach($AllFieldsARR as $key=>$value) ...
Hoping this is something simple that I haven't thought of yet. Thanks in advance.