Hi all, I made a very simple cms with just two functions ( addContent and editContent), but on the client's computer it doesn't seem to worK??? And I don't get it. My client says they run a firewall, could this be problem???And how could i resolve this??? regards
what do u mean it doesnt work ? you gave him a url where the cms is installed and he can't open it ? you installed the cms on his local machine ?
A couple of more questions. Did you develope this on a local machine? Is it now on a local machince or web sever? Did you compare the php settings on both machines?
oh, sorry I made a simple webbased php/mysql cms with just plain textfields (no tinymce) I gave him the url and he's able - to login - see the old content in a simple text field - make changes but when he hits the submit button, The data isn't being stored in the mysql db. So somehow the changed data isn't being sent to the server, right????
@colbyt, it's on a web server. I developed it under their url. [assumptions] Don't know if i need to check the php settings, because - i am able to make changes from different locations without any problems - it has to do with the client specific pc
If it's so simple, how about you upload the code? It'll be a lot easier to do that than try and guess at what you've done...
@twistMyArm sure this is function addContent function addContent(){ global $database_connDB, $connDB; $sql = "INSERT INTO tblContent(contentText) VALUES ('".$_POST['contentText']."' )"; $result = mysql_query($sql, $connDB) or die(mysql_error()); if($result) { $msg = '<meta http-equiv="refresh" content="1" />'; } else { $msg = "Oops, something went wrong"; } return $msg; } Code (markup): but why do you need the code as i told you the code works (except for the most important pc in this case: the client's pc)
Unless the server config changed between the time you set it up and now, it is not a server issue. Simple test is can you edit and create content today while the client can not. That would also exclude php settings. If client is using Norton or has has high security settings in IE6-7 it might be that he needs to add the site to the approved list. Though generally this is more of a problem viewing than posting content. Beyond that the firewall is the only thing I can think of.
tx, for thinking along Colbyt. Server config hasn't changed and i have edit and created content without any problems. I am really thinking it's the firewall, but it never happens to me before The client doesn't know which firewall they have/use, but he knows they are running one. I am really curious if anyone else has encountered this problem
@123GoToAndPlay: 'we' mainly ask for code as sometimes there's some simple things that are obviously server-specific when you see them. I've re-read the thread and it would seem as though it's not related to that, so for that I apologise. You never know, though So just to be absolutely clear: when you access the same installation of the code on the server it works, though not when your user tries on the exact same installation? Have they tried different browsers?
well guys, I turned on error_reporting(E_ALL) and these error(s) came up. Notice: Undefined index: Code (markup): So i have changed if($_POST['submit']){ echo "Updating....".editContent($_REQUEST['id']); } with if(isset($_POST['submit'])){ echo "Updating....".editContent($_REQUEST['id']); } Code (markup): I have added isset() where necessary. As i haven't spoken to my client yet i don't know if this is the solution. I will let you know. If it is, it's code related and i should apologise for excluding that. Hope to get in contact with the client today.