PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
[color=#800000]<?php
$content_num_x = $_POST['frm_content_num'];
$content_heading_x = $_POST['frm_content_heading'];
mysql_query("UPDATE listings SET content_heading='$content_heading_x' WHERE content_num ='$content_num_x' ");
echo "<br><br>";
echo "<div align=center><h1>content updated</h1></div>";
mysql_close($con);
?>[/color]
and also why is it that data that i added ' shows with \ for example [b]season\'s should be season's [/b]
[color=#800000]<?php
$content_num_x = $_POST['frm_content_num'];
$content_heading_x = $_POST['frm_content_heading'];
mysql_query("UPDATE listings SET content_heading='$content_heading_x' WHERE content_num ='$content_num_x' ");
echo "<br><br>";
echo "<div align=center><h1>content updated</h1></div>";
mysql_close($con);
?>[/color]
and also why is it that data that i added ' shows with \ for example [b]season\'s should be season's [/b]
any help would be useful
If it's adding a backspace(\) to apostrophe's automatically without you doing it, it's because you have magic_quotes turned on in your php.ini file.