Jump to content

Is this a compatibility problem?


crazylegseddie

Recommended Posts

Hi i currently created a site in php 5 and am using a php 4 server. Everything works fine except one thing. I have set a form in my script to delete an order. When i process this form I have set as action 'processOrder2.php' and the following script in this file:

[code=php:0]
<?php
require_once '../../library/config.php';
               
        $orderId=$_POST['od_id'];
        $sql2 = "delete from tbl_order where od_id='$orderId'";
        $result = @mysql_query($sql2);

        header('Location: ' . WEB_ROOT . 'adminbackdoor/order/index.php');

?>
[/code]
On my server using php 5 this deletes the order and directs me back to the order page but on the server using php 4 this just opens as 'adminbackdoor/order/ProcessOrder2.php' and i receive a page cannot be found message. Is the header part not compatible with php4. Any advise on this will be cool.
Link to comment
https://forums.phpfreaks.com/topic/18575-is-this-a-compatibility-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.