Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Joining Tables (http://www.mysidiaadoptables.com/forum/showthread.php?t=3574)

SilverDragonTears 04-10-2012 01:40 AM

If I did it right
echo '<p>Adoptables have been rearranged'.$_COOKIE->mysuid.'</p>';

then it only printed Adoptables have been rearranged.

Hall of Famer 04-10-2012 01:41 AM

Oh nope, the $COOKIE is a superglobal array, its not an object. You need to use {$COOKIES['mysuid']} here, if you need me to explain to you what are the differences of objects and arrays I am glad to help.

SilverDragonTears 04-10-2012 01:46 AM

It's not echoing anything still

Hall of Famer 04-10-2012 01:53 AM

I see, then guess what? Do not use $_COOKIE at all, try to select uid from table prefix.users and it will work this way. In next release I will enable $_SESSION to store uid and username for almost every page, so you will be using sessions instead of cookies. For now, you have to write a code to fetch uid from database.

SilverDragonTears 04-10-2012 01:54 AM

How do I do that? Sorry very tired here :(


All times are GMT -5. The time now is 08:23 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.