Hi All
Sorry if I am posting this in the wrong place but I have been having a bit of a problem with php on SME 7.3. I have a script that inserts data into my MYSQL database on the SME server. All appears to be going ok and the data is saving, however when I try to redirect a user back to the cms_referencetables.php page I get the following error
Warning: Cannot modify header information - headers already sent by (output started at /home/e-smith/files/ibays/phptest/html/cms/scripts/proc_referencetables_insert.php:14) in /home/e-smith/files/ibays/phptest/html/cms/scripts/proc_referencetables_insert.php on line 22
My script is as below:
<?php require_once('Connections/IntanetDev.php'); ?>
<?php
$query_insert_referencetables = "INSERT INTO ReferenceTables (TableDesc, URLPage, ActiveInd) VALUES ('".$_POST['TableDesc']."', '".$_POST['URLPage']."', '".$_POST['ActiveInd']."');" ;
$rs_insertreferencetables = mysql_query($query_insert_referencetables);
header("Location: cms_referencetables.php
?>
I have been searching through google and php forums and have found a lot of solutions for people running Micro$oft and II$ solutions and have tried some of them all to no avail, but don't really know where to start next (new to PHP, MYSQL and Linux, sorry all)!
If anybody could point me in the right direction that would be greatly appreciated.
Thanks