I followed this tutorial: http://php.about.com/od/finishedphp1/ss/rating_script.htm
but when i run it i get
Notice: Undefined variable: mode in C:\xampp\htdocs\xxxx\index.php on line 7.
Does anyone know what could possibly be wrong?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are copying their script exactly, the issue is found on step 3 – http://php.about.com/od/finishedphp1/ss/rating_script_3.htm
You are checking an undefined variable –
$mode. You need to define it first, with something like –Note: I agree
@azizpunjani, this code is outdated, and has many issues. You should look for a script that is usingmysqli_orPDO, notmysql_functions.