Skip to content

Instantly share code, notes, and snippets.

Created December 28, 2014 08:40
Show Gist options
  • Save anonymous/f7a963873bf2ed98662c to your computer and use it in GitHub Desktop.
Save anonymous/f7a963873bf2ed98662c to your computer and use it in GitHub Desktop.
<?php
session_start();
include("connection.php");
$temp=$_POST['productUpdateId'];
$arr=explode(":-",$temp);
$pId=$arr[0];
$_SESSION['updateNeedPId']=$pId;
$sqlquery_get_name_details="SELECT * FROM p_details pD,p_name pN";
$nameDet_ref=mysqli_query($con,$sqlquery_get_name_details);
if($row=mysqli_fetch_array($nameDet_ref)){
$pName=$row["pN p_name"];
$pDet=$row["pD.p_det"];
$_SESSION['updateNeedPName']=$pName;
$_SESSION['updateNeedPDet']=$pDet;
}
?>
THE ERRORS ARE;
Notice: Undefined index: pN p_name in D:\wamp\dsdsd\updateSelect.php on line 12
Notice: Undefined index: pD.p_det in D:\wamp\wdsdsd\updateSelect.php on line 13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment