03-21-2017, 05:12 PM
Thank you for replying!
I should have added, init.php is of course included in "mypage.php".
The way I thought things worked, was that init took care of the mysql magic, and I could simply add:
on any page where I wanted the information from that column to appear. I may very well have misunderstood how this works completely.
I'm afraid I haven't done a query at all I guess. I stole that piece of code from the "account.php" and simply changed the column name to fit my needs I works until I put it inside the URL in file_get_contents in combination with a javascript reload.
I should have added, init.php is of course included in "mypage.php".
The way I thought things worked, was that init took care of the mysql magic, and I could simply add:
Code:
"$user->data()->MyOwnColumn"
on any page where I wanted the information from that column to appear. I may very well have misunderstood how this works completely.
I'm afraid I haven't done a query at all I guess. I stole that piece of code from the "account.php" and simply changed the column name to fit my needs I works until I put it inside the URL in file_get_contents in combination with a javascript reload.