Create Session variables out of everything in a mysql table
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=doXcC8g08zU
Scenario: Your making a website that uses user logins. Pretty common. When the user logs in you want to store all their mysql data in session variables so that while they are logged in you can access things like their email, products, names, address and anything else you put in the user table of your database. You could pick and choose which rows of mysql you wish to turn into Session variables and hard code them in. But with the foreach loop and some trickery we are able to turn everything from the user table about a particular user into session data.","styleRuns":[{"startIndex":0,"length":563,"styleRunExtensions":{"styleRunColorMapExtension":{"colorMap":[{"key":"USER_INTERFACE_THEME_DARK","value":4294967295},{"key":"USER_INTERFACE_THEME_LIGHT","value":4279440147}]}},"fontFamilyName":"Roboto"}]},"headerRuns":[{"startIndex":0,"length":563,"headerMapping":"ATTRIBUTED_STRING_HEADER_MAPPING_UNSPECIFIED"}]}},{"itemSectionRenderer":{"contents":[{"continuationItemRenderer":{"trigger":"CONTINUATION_TRIGGER_ON_ITEM_SHOWN","continuationEndpoint":{"clickTrackingParams":"COMBELsvGAIiEwie_M7j64CKAxXDcHoFHZNXPCA=","commandMetadata":{"webCommandMetadata":{"sendPost":true,"apiUrl":"/youtubei/v1/next"}},"continuationCommand":{"token":"Eg0SC2RvWGNDOGcwOHpVGAYyJSIRIgtkb1hjQzhnMDh6VTAAeAJCEGNvbW1lbnRzLXNlY3Rpb24%3D","request":"CONTINUATION_REQUEST_TYPE_WATCH_NEXT"}}}}],"trackingParams":"COMBELsvGAIiEwie_M7j64CKAxXDcHoFHZNXPCA=","sectionIdentifier":"comment-item-section","targetId":"comments-section"}}],"trackingParams":"COIBELovIhMInvzO4-uAigMVw3B6BR2TVzwg"}},"secondaryResults":{"secondaryResults":{"results":[{"lockupViewModel":{"contentImage":{"thumbnailViewModel":{"image":{"sources":[{"url":"https://i.ytimg.com/vi/KMAvESQAcbw/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG rs=AOn4CLAZE2N4VHSYKxRHEBW8p53yqGL77A","width":168,"height":94},{"url":"https://i.ytimg.com/vi/KMAvESQAcbw/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg== rs=AOn4CLBjaBHtbH2zkmPayC60L5X8uIAapQ","width":336,"height":188}]},"overlays":[{"thumbnailOverlayBadgeViewModel":{"thumbnailBadges":[{"thumbnailBadgeViewModel":{"text":"22:09","badgeStyle":"THUMBNAIL_OVERLAY_BADGE_STYLE_DEFAULT","animationActivationTargetId":"KMAvESQAcbw","animationActivationEntityKey":"Eh8veW91dHViZS9hcHAvd2F0Y2gvcGxheWVyX3N0YXRlIMMCKAE%3D","lottieData":{"url":"https://www.gstatic.com/youtube/img/lottie/audio_indicator/audio_indicator_v2.json","settings":{"loop":true,"autoplay":true}},"animatedText":"Wordt nu afgespeeld","animationActivationEntitySelectorType":"THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE","rendererContext":{"accessibilityContext":{"label":"22 minuten en 9 seconden"}}}}],"position":"THUMBNAIL_OVERLAY_BADGE_POSITION_BOTTOM_END"}},{"animatedThumbnailOverlayViewModel":{"thumbnail":{"sources":[{"url":"https://i.ytimg.com/an_webp/KMAvESQAcbw/mqdefault_6s.webp?du=3000 sqp=CID8pLoG rs=AOn4CLBB6wGivuyp1J-F1dOlXXhxetEZVw","width":320,"height":180}]}}},{"thumbnailHoverOverlayToggleActionsViewModel":{"buttons":[{"toggleButtonViewModel":{"defaultButtonViewModel":{"buttonViewModel":{"iconName":"WATCH_LATER","onTap":{"innertubeCommand":{"clickTrackingParams":"COEBEPBbIhMInvzO4-uAigMVw3B6BR2TVzwg","commandMetadata":{"webCommandMetadata":{"sendPost":true,"apiUrl":"/youtubei/v1/browse/edit_playlist"}},"playlistEditEndpoint":{"playlistId":"WL","actions":[{"addedVideoId":"KMAvESQAcbw","action":"ACTION_ADD_VIDEO"}]}}},"accessibilityText":"Later bekijken","style":"BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK","trackingParams":"COEBEPBbIhMInvzO4-uAigMVw3B6BR2TVzwg","type":"BUTTON_VIEW_MODEL_TYPE_TONAL","buttonSize":"BUTTON_VIEW_MODEL_SIZE_COMPACT","state":"BUTTON_VIEW_MODEL_STATE_ACTIVE"}},"toggledButtonViewModel":{"buttonViewModel":{"iconName":"CHECK","onTap":{"innertubeCommand":{"clickTrackingParams":"COABEPBbIhMInvzO4-uAigMVw3B6BR2TVzwg","commandMetadata":{"webCommandMetadata":{"sendPost":true,"apiUrl":"/youtubei/v1/browse/edit_playlist"}},"playlistEditEndpoint":{"playlistId":"WL","actions":[{"action":"ACTION_REMOVE_VIDEO_BY_VIDEO_ID","removedVideoId":"KMAvESQAcbw"}]}}},"accessibilityText":"Toegevoegd","style":"BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK","trackingParams":"COABEPBbIhMInvzO4-uAigMVw3B6BR2TVzwg","type":"BUTTON_VIEW_MODEL_TYPE_TONAL","buttonSize":"BUTTON_VIEW_MODEL_SIZE_COMPACT","state":"BUTTON_VIEW_MODEL_STATE_ACTIVE"}},"isToggled":false,"trackingParams":"CNoBENTEDBgAIhMInvzO4-uAigMVw3B6BR2TVzwg"}},{"toggleButtonViewModel":{"defaultButtonViewModel":{"buttonViewModel":{"iconName":"ADD_TO_QUEUE_TAIL","onTap":{"innertubeCommand":{"clickTrackingParams":"CN8BEPBbIhMInvzO4-uAigMVw3B6BR2TVzwg","commandMetadata":{"webCommandMetadata":{"sendPost":true}},"signalServiceEndpoint":{"signal":"CLIENT_SIGNAL","actions":[{"clickTrackingParams":"CN8BEPBbIhMInvzO4-uAigMVw3B6BR2TVzwg","addToPlaylistCommand":{"openMiniplayer":false,"openListPanel":true,"videoId":"KMAvESQAcbw","listType":"PLAYLIST_EDIT_LIST_TYPE_QUEUE","onCreateListCommand":{"clickTrackingParams":"CN8BEPBbIhMInvzO4-uAigMVw3B6BR2TVzwg","commandMetadata":{"webCommandMetadata":{"sendPost":true,"apiUrl":"/youtubei/v1/playlist/create"}},"createPlaylistServiceEndpoint":{"videoIds":["KMAvESQAcbw"],"params":"CAQ%3D"}},"videoIds":["KMAvESQAcbw"],"videoCommand":{"clickTrackingParams":"CN8BEPBbIhMInvzO4-uAigMVw3B6BR2TVzwg","commandMetadata":{"webCommandMetadata":{"url":"/watch?v=KMAvESQAcbw","webPageType":"WEB_PAGE_TYPE_WATCH","rootVe":3832}},"watchEndpoint":{"videoId":"KMAvESQAcbw","watchEndpointSupportedOnesieConfig":{"html5PlaybackOnesieConfig":{"commonConfig":{"url":"https://rr1---sn-5hne6nzy.googlevideo.com/initplayback?source=youtube oeis=1 c=WEB oad=3200 ovd=3200 oaad=11000 oavd=11000 ocs=700 oewis=1 oputc=1 ofpcc=1 msp=1 odepv=1 id=28c02f11240071bc ip=5.34.180.93 initcwndbps=433750 mt=1732858872 oweuc="}}}}}}}]}}},"accessibilityText":"Toevoegen aan wachtrij","style":"BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK","trackingParams":"CN8BEPBbIhMInvzO4-uAigMVw3B6BR2TVzwg","type":"BUTTON_VIEW_MODEL_TYPE_TONAL","buttonSize":"BUTTON_VIEW_MODEL_SIZE_COMPACT","state":"BUTTON_VIEW_MODEL_STATE_ACTIVE"}},"toggledButtonViewModel":{"buttonViewModel":{"iconName":"CHECK","accessibilityText":"Toegevoegd","style":"BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK","trackingParams":"CN4BEPBbIhMInvzO4-uAigMVw3B6BR2TVzwg","type":"BUTTON_VIEW_MODEL_TYPE_TONAL","buttonSize":"BUTTON_VIEW_MODEL_SIZE_COMPACT","state":"BUTTON_VIEW_MODEL_STATE_ACTIVE"}},"isToggled":false,"trackingParams":"CNoBENTEDBgAIhMInvzO4-uAigMVw3B6BR2TVzwg"}}]}}]}},"metadata":{"lockupMetadataViewModel":{"title":{"content":"PHP - $SESSION Variables"},"image":{"decoratedAvatarViewModel":{"avatar":{"avatarViewModel":{"image":{"sources":[{"url":"https://yt3.ggpht.com/ytc/AIdro_lM5W3wqm6h4nVB3fSfM3Y0Uj6TQnd2d98R31RmozcC9AM=s68-c-k-c0x00ffffff-no-rj","width":68,"height":68}]},"avatarImageSize":"AVATAR_SIZE_M"}},"a11yLabel":"Naar kanaal gaan","rendererContext":{"commandContext":{"onTap":{"innertubeCommand":{"clickTrackingParams":"CNoBENTEDBgAIhMInvzO4-uAigMVw3B6BR2TVzwg","commandMetadata":{"webCommandMetadata":{"url":"/@elithecomputerguy","webPageType":"WEB_PAGE_TYPE_CHANNEL","rootVe":3611,"apiUrl":"/youtubei/v1/browse"}},"browseEndpoint":{"browseId":"UCD4EOyXKjfDUhCI6jlOZZYQ","canonicalBaseUrl":"/@elithecomputerguy"}}}}}}},"metadata":{"contentMetadataViewModel":{"metadataRows":[{"metadataParts":[{"text":{"content":"Eli the Computer Guy
#############################