Kenny
2009-02-05 17:52:59 UTC
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 "
foreach($AllFieldsARR as $key=>$value) ...
Hoping this is something simple that I haven't thought of yet. Thanks in advance.
Three answers:
CompanionCube
2009-02-05 22:54:02 UTC
Make $UniqueID = $$UniqueID (note the 2 dollar signs)
That will set the variable UniqueID equal to a new variable named with the text value of the UniqueID defined above.
Could probably also just enter $$UniqueID into the OnClick function which is where I presume this goes?
Good luck though.
ChrisS
2009-02-05 21:56:42 UTC
is it that you are trying to make $UniqueID be the value of the auto increment field in the mysql table?
$UniqueID = $row['fieldname'];
whenever you're in doubt as to what is in an array, use print_r($array);
hodnett
2016-11-14 13:32:58 UTC
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...