Forum Moderators: coopster
I have included a PHP script from my admin panel (removed some irrelevant code) below which doesn't work anymore. I also tried replacing "mysql" with "mysqli" in the code without success.
Can anyone help me with this?
Thanks in advance,
Stefan
<?php
include_once ("database.php");
include_once ("asecurity_header.php");
include("wysiwyg.php");
mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db($dbname) or die(mysql_error());
if ($_GET['page'] == "update") {
$title = $_POST['titel'];
$content = $_POST['content'];
$activated = $_POST['active'];
$sql = "UPDATE mp_site_info_bottom SET title='$title', content='$content', activated='$activated' WHERE ID=1";
$query = mysql_query($sql);
}
?>
$query = mysql_query($sql) [b]or die(mysql_error())[/b];
Give us the error that this produces.
Edit: Found the problem. Apparently, my editors (openWYSIWYG) don't work properly under the new server when I add,update or delete rows without www in the address bar (for example website.com instead of www.website.com). When I do add www it does work.
Thanks for trying to help.
Stefan