Jump to content

variable value


fareedreg

Recommended Posts

have a look at first.php

 

$idval=1;

 

include('connect.php'); 

 

$Tb = "mem_depo";

 

mysql_select_db($Db, $link);

                           

$query = "select id from mem_depo order by id";

 

$result= mysql_query($query,$link);

 

while ($row=mysql_fetch_array($result))

    {

    $f1=$row["id"]; 

    }                       

 

  if ($f1>=1)

  {

    $idval=$f1+1;    ''''''''''''''''''''''''''''variable which i would like to access in second.php

  }

 

  mysql_close($link);

 

  include('style.php');

     

  $val=$_POST["itemmem"];

 

  include('balance.php');

 

?>

 

 

 

 

 

second.php

 

$depid = $_POST['idval']; '''''''''''''''''this is coming null

$memid = $_POST["txtmemid"];

$depamt = $_POST["txtdepamt"];

$tmy = $_POST["txtdepyy"];

$tmm = $_POST["txtdepmm"];

$tmd = $_POST["txtdepdd"];

$tstamp = ("$tmy-"."$tmm-"."$tmd");

Link to comment
https://forums.phpfreaks.com/topic/189639-variable-value/#findComment-1000867
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.