Jump to content

error when saving tutorial to mysql database


Rizla

Recommended Posts

Hi,

 

I wrote a tutorial management system for my site.

When i add a normal tutorial with just html, then there's no problem.

But when i add a tutorial with php code it goes wrong and i get an error.

This error occurs when i submit the form.

 

 

This is the error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's a spambot and then we can terminate the code so our script stops there. We ' at line 1

 

I attached 3 files, the tutorial that i insert into the form.

The php file where i enter the tutorial into the form.

And an export file with info about the mysql table.

 

Has anyone had the same trouble???

And what am i doing wrong?

Greetings Rizl4

 

[attachment deleted by admin]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.