Hi everyone,
I have just started using PHP and MySQL for a project, and whilst i have plenty of coding and web design experience in HTML, javascript, actionscript and lingo, this is my first jump into dynamic content using a database and server side scripting language, so bear with me please!! 🙂 thanks guys!!
I am having a few problems getting sessions to persist at present but am clueless as to why. I am using PHP4 with MySQL, and refering to the book - PHP and MYSQL web dev by Luke Welling, which seems to be revised for 4.3.
It tells me to use the commands :
session_start();
$HTTP_SESSION_VARS['lang'] = "ENG";
but this renders the error :
Warning: session_start(): Cannot send session cookie - headers already sent
What i am trying to do is make a site multilanguage, pulling articles in the relevant language off the DB. For this though i need the $lang variable to remain reachable throughout the session. I have double / triple checked the documentation and i cant get anything to work. Any ideas??
Thanks in advance!!
Ciaran