Form and MySQL problem. No, not register_globals-related :)

Codes here !

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 80
Joined: Fri Jan 31, 2003 4:18 pm

Sun Mar 02, 2003 11:24 pm

you can't insert every kind of character :) Some chars you have to escape before inserting into yur database :)

Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Sun Mar 02, 2003 11:30 pm

little corections... can you tell us what do get when run thi script?

Code: Select all

        mysql_query("INSERT INTO forum (name,contents,user,mid) VALUES ('$p_name','$p_contents','$p_user','$p_mid')") or die(mysql_error());
      header("Location: $PHP_SELF");

Post Reply