Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- all users notice here if they want to use tinymce and they get error like this so they must have to enter there table like this
- `mysql_real_escape_string($sql_table).
- `
- so my code is like this
- $query = 'INSERT into notes VALUES(NULL, "'.date("Y-m-d").'", "'.$note_title.'")
- so i just add mysql_realescape_string
- $query = 'INSERT into notes VALUES(NULL, "'.date("Y-m-d").'", mysql_real_escape_string($notetitle))
- and it works but it show me
- > Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established i
- so for that you have to add this in before that $query thing :)
- $con = mysql_pconnect("localhost","users","password");
- if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
- and you'r done ..... thanks for all help
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement