Hello, I'm new to PHP/MySQL. I am trying to create a website, been having a lot of problems, gone through 3 books (two of which were for dummies...and they didn't help much either lol). But when i came to the "PHP and MySQL For Dynamic Web Sites - Second Edition", i started to get some progress, but i kept getting error messages with the "An error occurred in script 'C:\xampp\htdocs\register.php' on line 20: mysqli_real_escape_string() expects parameter 1 to be mysqli, resource given". Now i don't know what it means when this error message comes on, let alone what to do to fix it. I have downloaded the codes from the third edition, and i got the same message. In one of the for dummies books, the author mentioned turning off the magic_quotes, in which case i did turn them off, but the code she had looked fine, but didn't work. I don't know if I should turn them back on? or not? but I need help with the PHP/MySQL codes. At the moment i am using the apache server (will be moving to a hosting service once it is finished, which will hopefully be soon.) But I am looking for someone who can help me throughout this entire process. I have tried to find other Forums over the internet for help, either they are not active or i don't get the help, answers, or advice that i need. Thank you in advance. Please reply soon.