# Reloading Variables from Database

**URL:** https://forum.kirupa.com/t/reloading-variables-from-database/77204
**Category:** flash
**Created:** [January 25, 2005, 2:22pm UTC](https://forum.kirupa.com/t/reloading-variables-from-database/77204 "2005-01-25T14:22:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ghjr](https://avatars.discourse-cdn.com/v4/letter/g/dec6dc/32.png) [@ghjr](https://forum.kirupa.com/u/ghjr)
#### Post date: [January 25, 2005, 2:22pm UTC](https://forum.kirupa.com/t/reloading-variables-from-database/77204/1 "2005-01-25T14:22:06Z")

</div>

I have a flash header that receives random text from a database through a PHP page. I’m using the loadVariables function to bring in the first random text and that works fine. I then have a button that should access the PHP again and retrieve another random text set from the database (once again using the loadVariables function).

Whenever I use the loadVariables function on the button to renew the random text, it brings up the same text over and over again. When I use loadVariablesNum it works, but opens up a blank page with the output of the variables (getURL also works, opening up a blank page).

Is there a way for me to use the loadVariablesNum without having the page popup with the variables printed out? Or better yet, is there a way to just use the loadVariables to renew the info?

Cheers! :pleased:
