How to access PHP session variables from another PHP page

​​ One of my subscribers sent me an email asking me about problems he was having with sessions. He had already created a session variable in one PHP file. Now he had a second PHP and wanted to access the session variable in it. However he was struggling to access his session variable. He found […]

What’s better for newbies to learn first PHP or MySQL?

It’s a good question for newbies to have, where to start? What comes first PHP or MySQL?  The chicken or the egg? You can learn both independently, but if you have no experience with either, I think it’s best to start with PHP.   Pretty quickly as you work through tutorials you will encounter MySQL. […]

How do you include frequently used code in another PHP file?

Q. How do you include PHP files in other PHP files? – Useful for including your database connection across all pages that need it. – If you have written some functions once and want to reference them in other pages. – Also commonly used to keep consistent header and footer parts of your pages, by […]