Jump to content

jerryrowe

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jerryrowe's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. My users have search pages that have dozens of variables. I thought it would be easiest to somehow just jam the whole lot into the database as a huge text string, and then just retrieve that one database entry as a giant string and echo it all to set all the variables in one big chunk, instead of working with an array. The problem is that I don't think it is possible to declare a variable when you are echoing, and this vexes me. For instance, I would LIKE to be able to store this, exactly as you see it, as a database entry: echo $username='MrCool'; echo $superpower='Awesomeness'; But see, those variables have already been declared, and so you wind up actually getting this, instead: MrCoolMrCool AwesomenessAwesomeness So, I am scratching my head, and am not even sure that what I am trying to do is possible. I want to declare variables IN an echo, and I don't think it is possible. I tried doing the $$var and ${$var} thing, but that didn't work, either. So... [*]Am I trying to do the impossible? [*]Is there something *like* what I am trying to do, where I can just store a huge chunk at once and not worry about a complex function? Thanks for reading, and I hope someone can help!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.