Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Dynamic Text Fields not Working

Community Beginner ,
Jan 03, 2012 Jan 03, 2012

Ok so here is the deal. I have a website, where users can login, and I want them to have a personalized welcome page that shows their info (name, email bio, etc.) that is all stored in a MySQL database.

In order to not mess up that functioning log in on my site, I created a test log in and test userpage that should display their information, but it never shows up. On my login page, I set the server behavior for log in to redirct to the testprofile on success, and to a dummy page on failure. I checked and saw that my sesison variable was MM_Username. I then went to my testprofile page, created a server binding for Recordset (Query), set it up for username=Session Variable MM_Username. I set it to look into the right table in the database, and then tested it, and it worked.

I went back to my testprofile page, and added "session_start();" (minus quotes) as I was told might work, but still nothing.

I put both the files to my server, go to test it, and nothing pops up the boxes. What am I doing it wrong?  Does anyone have a great step by step, nothing skipped, tutorial on this? Or would someone out there be willing to trade emails with me and check out my code and see what is going wrong and where?

Thanks,

Tyler White

TOPICS
Server side applications
758
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 03, 2012 Jan 03, 2012

If someone can just link me a tutorial or something that would be great.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 03, 2012 Jan 03, 2012

It is probably because I ate too many peanut butter cookies today.  But your question doesn't make entire sense to me.

You said

I then went to my testprofile page, created a server binding for Recordset (Query), set it up for username=Session Variable MM_Username. I set it to look into the right table in the database, and then tested it, and it worked.

I went back to my testprofile page, and added "session_start();" (minus quotes) as I was told might work, but still nothing.

So you got it to work on page x and then changed page x and it won't work?  Why not just keep it the way you had it in the first part?

I know I am probably not understanding.  Anyways, here are some tutorials that may or may not help you:

http://cookbooks.adobe.com/post_Display_user_s_name_and_other_details_after_login-16672.html

http://kb2.adobe.com/cps/165/tn_16563.html

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 03, 2012 Jan 03, 2012

The Recordset binding has a test function to make sure it works, and it works in there, but when I put the files to the server, and run it from there, no dice.

In the Recordset binding dialogue, it works, wonderfully, something just isn't translating it to when it is live on the web.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 03, 2012 Jan 03, 2012
LATEST

Well, its apparent now that I am a 'tard.

I had a little typo and was telling the server to look for a session variable, but had $_GET instead of $_SESSION. Not sure why I did, but I did...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines