Trouble with $options after upgrade

2 posts by 2 authors in: Forums > CMS Builder
Last Post: October 30, 2008   (RSS)

By aev - October 29, 2008

Hi!

After upgrading a site from 1.08 to 1.22 this code no longer works
<?php echo $options['tableName'] ?>
It gives this error:
Notice: Undefined variable: options in /home/mysite/www/index.php on line 52

-aev-

Re: [aev] Trouble with $options after upgrade

By Dave - October 30, 2008

It should work as long as you've defined $options higher up in the page.

Can you attach your viewer page or post the relevant code?

If you've replaced the old code with the new code from the generator and just need to hardcode that one field you can do that like this:

<?php $options['tableName'] = "yourTable" ?>
Dave Edis - Senior Developer
interactivetools.com