I am getting an error message was has never happened before, i am using same code but i hae updated my xampp Heres the code
<?php
session_start();
// Get the variable
$op = $_REQUEST['op'];
$content = $_REQUEST['content'];
$id = $_REQUEST['id'];
$status = $_REQUEST['status'];
// Choose the operation
switch ($op){
case "getList":
$dbObj = new DBAccess();
$dbObj->getList();
break;
case "addList":
$dbObj = new DBAccess();
$dbObj->addList($content);
break;
case "updateList":
$dbObj = new DBAccess();
$dbObj->updateList($id, $content);
break;
case "removeList":
$dbObj = new DBAccess();
$dbObj->removeList($id);
break;
case "removeAllList":
$dbObj = new DBAccess();
$dbObj->removeAllList();
break;
}
I am getting the error for the op, content, id and status, but this has always worked before. Any ideas?
May Be Your error_reporting was off before update .. You can ignore this error by following code but still you gotta find where is for it happend
$op = isset($_REQUEST['op'])?$_REQUEST['op']:'getList';
$content = isset($_REQUEST['content'])?$_REQUEST['content']:'';
$id = isset($_REQUEST['id'])?$_REQUEST['id']:'';
$status = isset($_REQUEST['status'])?$_REQUEST['status']:'';
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments