var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: public variable
how can i save and read a public variable to be used for my whole php website?
I am currently using this but it's useless..
The best and quickest operating way to have unique variables for each visitor that are available on all the pages on your web site is to use the $_SESSION variables.
So, it is best to troubleshoot why these are not working in your code. What about them don't work, what symptoms do you have, what error messages do you get?
i am not getting any error but when i read the session value it's blank.. can you please post a step-by-step example on how to write and how to read a session variable?
i wanted to ask you..
is this the right way to use $_SESSION in the SQL statement?
$str_sql = "SELECT customer_id, first_name, last_name, e_mail, login_name, login_password, company, local_phone FROM customers where login_name = '$_SESSION[login_name]' and login_password = '$_SESSION[login_password]'";
Your session variable keys should be in quotes. Like this: