But the variable variable thing does not seem to be working, either with or without the $ for the 'counter' inside the brackets.
  ${$sLabel_ . $counter} = $row['short_label'];

${'sLabel_' . $count} = $row['short_label'];

Any reason you're not just doing

$data[] = $row['short_label'];

and loop through that?


$data['sLabel_' . $count] = $row['short_label'];

"variable variables" are just a poor man's array...

---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to