i have the following code in PHP:
case 'modifica':
$cerere_sql='UPDATE `pages` SET continut="'.$_POST['scris'].'" WHERE sectiune="'.$_POST['page'].'"';
//$cerere_sql='INSERT INTO `pages` (`Contact`) VALUES ("'.$_POST['scris'].'")';
mysql_query($cerere_sql);
echo '
Pagina a fost modificata cu Succes!';
break;
everithing works greate, except that wen I try to write " this won't get modified in my database. (when scris...from $_POST['scris'] has " in the text)why? and how can I write that?
2006-08-30
12:19:47
·
2 answers
·
asked by
Pazvanti
2