How to get variable value on next page


Posted on 16th Feb 2014 07:03 pm by admin

Hello friends
i am working on payentry page ..there i have this code.........

Code: $str="select MAX(PSRN) from paymajor";
$result=mysql_query($str) or die(mysql_error());
while($row=mysql_fetch_assoc($result))
{
$psrn=$row['MAX(PSRN)']+1;
}
i need to print $psrn value in the success page......for that i am using
header ('Location: http://localhost/bitssap/success.php');

but after success its showing this meassage
Data entered successfully. The PSRN generated is $psrn

i am not able to print the value of psrn on success page
can anybody suggest me how to do this...

No comments posted yet

Your Answer:

Login to answer
218 Like 32 Dislike
Previous forums Next forums
Other forums

Add "width" check when upload
Hi!

Can someone add a function that is checking if picture witdh is bigger then 800px whwn up

Give me all your tricks for minimizing jar file size

Hi, I'm coming close to releasing my J2ME game... I am kicking up against the 64k size barrier w

mysql query with single quotes in a variable
$sitedetails = "INSERT INTO vars (address, sitename, description, ownername, theme) VALUES ('$u

Get value from Select menu
Hi!

Have tried to find the solution on the web. Don't know if there is an easy one. A descrip

PHP Error
On my .php page I have a drop down box that has several names in it. When a user clicks the name &am

HELP with mysql_real_escape_string
I'm looking to remove apostrophes completely when someone enters lyrics but don't have a clue how to

php/mysql problem
Hey all,

Problem: im trying to setup a shop where people can use a drop-down list to select t

fwrite error
Hi All,
Does anyone know what is causing the error in this code?

Code: <?
$error

RFQ Configuration - can you make PLANT field an optional field in ME42
Is there a way to make the plant field on an RFQ optional in change mode (ME42)?

Is it possible to stop reservation creation in PM Order?
Hi All,

Is it possible to stop reservation creation in PM Order?

Thanks in adv

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash