look here:

http://www.mywebgenius.net/purestaff/client_view.php

then click on the edit icon and you will see the notice errors.

how can i remove notice errors. I am using this:

$ebits = ini_get(‘error_reporting’)

;

error_reporting($ebits ^ E_NOTICE);

but it doesn’t seem to work consistently

"; print_r($_POST); // or var_dump() echo "

“; echo “

"; print_r($_SESSION); // or var_dump() echo "

“; //($_SERVER, $_ENV, $_REQUEST, $_COOKIE, $_GET, $_POST, $_SESSION) //if delete set active flag to no $qry = (“update clients set clientName = ‘$client_name’ where id=$_SESSION[client_id]”)or die(“the qry didn’t work”); echo $qry; $result = mysql_query($qry, $connection) or die; echo $result.”

“; if ($result !=1) { echo “Update not complete, contact webmaster.”; exit; } else { echo “update successful”; echo ““; } } if ($_POST[‘Delete’] == “Delete”) { include(“includes/dbconn_ps.inc”); echo “Delete button Pressed”; echo “

"; print_r($_POST); // or var_dump() echo "

“; //if delete set active flag to no $qry =(“update clients set client_active =’No’ where id=$_SESSION[client_id]”)or die(“the Delete qry didn’t work”); echo $qry; $result = mysql_query($qry, $connection) or die(“result not working”); echo “result equals :”.$result.”

“; if ($result ==1) { echo “Client record set to inactive”; exit; } else { echo “Error, nothing entered in db.”; exit; } } $ebits = ini_get(‘error_reporting’); error_reporting($ebits ^ E_NOTICE); //echo “_POST[txt_id] passed: “.$_POST[‘client_id’]; echo “Edit Clients”; $_SESSION[‘client_id’] = $_POST[‘client_id’]; include(“includes/dbconn_ps.inc”); $qryCID = “Select * from clients where id=”.$_POST[‘client_id’]; $result = mysql_query($qryCID, $connection); $row = mysql_fetch_array($result); echo $row[client_name]; echo “

“; echo “

Client:

“; echo “

“; echo “

“;

Open in new window

Source

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Comment moderation is enabled. Your comment may take some time to appear.